From 341397163996a7f33e751e9a0f418557fb872091 Mon Sep 17 00:00:00 2001 From: devin Date: Tue, 14 Jul 2015 13:17:34 -0700 Subject: [PATCH] Fix fatal error: Call to undefined method give_donors --- give.php | 4 ++-- includes/admin/reporting/class-donor-reports-table.php | 2 +- includes/admin/reporting/class-export-customers.php | 2 +- readme.txt | 5 ++++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/give.php b/give.php index 026f7cbac8..07ce2ec609 100644 --- a/give.php +++ b/give.php @@ -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 * @@ -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 diff --git a/includes/admin/reporting/class-donor-reports-table.php b/includes/admin/reporting/class-donor-reports-table.php index 2ad8d85536..3c731a8a78 100644 --- a/includes/admin/reporting/class-donor-reports-table.php +++ b/includes/admin/reporting/class-donor-reports-table.php @@ -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 ) { diff --git a/includes/admin/reporting/class-export-customers.php b/includes/admin/reporting/class-export-customers.php index cfccf08399..b2ea6c08dd 100644 --- a/includes/admin/reporting/class-export-customers.php +++ b/includes/admin/reporting/class-export-customers.php @@ -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; diff --git a/readme.txt b/readme.txt index 9d08636af9..69a36139f3 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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