Skip to content

Commit

Permalink
Fix fatal error: Call to undefined method give_donors
Browse files Browse the repository at this point in the history
  • Loading branch information
devin committed Jul 14, 2015
1 parent 65e47ad commit 3413971
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
* Author: WordImpress
* Author URI: http://wordimpress.com
* Version: 1.0 beta
* Version: 1.0.1 beta
* Text Domain: give
* Domain Path: /languages
*
Expand Down Expand Up @@ -200,7 +200,7 @@ private function setup_constants() {

// Plugin version
if ( ! defined( 'GIVE_VERSION' ) ) {
define( 'GIVE_VERSION', '1.0' );
define( 'GIVE_VERSION', '1.0.1' );
}

// Plugin Folder Path
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reporting/class-donor-reports-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function reports_data() {
$args['id'] = $search;
}

$donors = Give()->customers->get_donors( $args );
$donors = Give()->customers->get_customers( $args );

if ( $donors ) {

Expand Down
2 changes: 1 addition & 1 deletion includes/admin/reporting/class-export-customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function get_data() {
} else {

// Export all donors
$donors = Give()->customers->get_donors( array( 'number' => - 1 ) );
$donors = Give()->customers->get_customers( array( 'number' => - 1 ) );

$i = 0;

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://givewp.com/
Tags: donation, donations, donation plugin, wordpress donation plugin, wp donation, ecommerce, e-commerce, fundraising, fundraiser, crowdfunding, wordpress donations, commerce, wordpress ecommerce, giving, charity, donate, gifts, non-profit, paypal, stripe, churches, nonprofit, paypal donations, paypal donate, stripe donations, stripe donate, authorize.net, authorize.net donations
Requires at least: 3.8
Tested up to: 4.2.2
Stable tag: 1.0
Stable tag: 1.0.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -128,6 +128,9 @@ We also really like WooCommerce. It's hands-down the most robust eCommerce platf

== Changelog ==

= 1.0.1 =
* Fix: Admin fatal error call to undefined method "get_donors" when it should've actually been "get_customers"

= 1.0 =
* New: Donors overview page that provides a searchable list of your donors and relevant information
* New: Initial PHPunit testing in place for post types, script and style loading, and includes
Expand Down

0 comments on commit 3413971

Please sign in to comment.