Version Description
- Fix: Issue with conditionals now using new give_is_setting_enabled() function. #1498
- Fix: Function is_single_price_mode() was not using the correct metakey and returning incorrectly. #1500
Download this release
Release Info
Developer | dlocc |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.8.1
- give.php +2 -2
- includes/class-give-donate-form.php +1 -1
- includes/class-give-email-access.php +1 -1
- includes/post-types.php +1 -1
- includes/scripts.php +1 -1
- includes/shortcodes.php +3 -3
- readme.txt +5 -1
- uninstall.php +1 -1
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: https://wordimpress.com
|
8 |
-
* Version: 1.8
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
* GitHub Plugin URI: https://github.com/WordImpress/Give
|
@@ -260,7 +260,7 @@ if ( ! class_exists( 'Give' ) ) :
|
|
260 |
|
261 |
// Plugin version
|
262 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
263 |
-
define( 'GIVE_VERSION', '1.8' );
|
264 |
}
|
265 |
|
266 |
// Plugin Folder Path
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: https://wordimpress.com
|
8 |
+
* Version: 1.8.1
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
* GitHub Plugin URI: https://github.com/WordImpress/Give
|
260 |
|
261 |
// Plugin version
|
262 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
263 |
+
define( 'GIVE_VERSION', '1.8.1' );
|
264 |
}
|
265 |
|
266 |
// Plugin Folder Path
|
includes/class-give-donate-form.php
CHANGED
@@ -615,7 +615,7 @@ class Give_Donate_Form {
|
|
615 |
*/
|
616 |
public function is_single_price_mode() {
|
617 |
|
618 |
-
$option = get_post_meta( $this->ID, '
|
619 |
$ret = 0;
|
620 |
|
621 |
if ( empty( $option ) || $option === 'set' ) {
|
615 |
*/
|
616 |
public function is_single_price_mode() {
|
617 |
|
618 |
+
$option = get_post_meta( $this->ID, '_give_price_option', true );
|
619 |
$ret = 0;
|
620 |
|
621 |
if ( empty( $option ) || $option === 'set' ) {
|
includes/class-give-email-access.php
CHANGED
@@ -114,7 +114,7 @@ class Give_Email_Access {
|
|
114 |
$is_enabled = give_get_option( 'email_access' );
|
115 |
|
116 |
//Non-logged in users only
|
117 |
-
if ( is_user_logged_in() || $is_enabled
|
118 |
return;
|
119 |
}
|
120 |
|
114 |
$is_enabled = give_get_option( 'email_access' );
|
115 |
|
116 |
//Non-logged in users only
|
117 |
+
if ( is_user_logged_in() || give_is_setting_enabled( $is_enabled ) || is_admin() ) {
|
118 |
return;
|
119 |
}
|
120 |
|
includes/post-types.php
CHANGED
@@ -355,7 +355,7 @@ add_action( 'init', 'give_register_post_type_statuses' );
|
|
355 |
function give_updated_messages( $messages ) {
|
356 |
global $post, $post_ID;
|
357 |
|
358 |
-
if ( give_get_option( '
|
359 |
|
360 |
$messages['give_forms'] = array(
|
361 |
1 => esc_html__( 'Form updated.', 'give' ),
|
355 |
function give_updated_messages( $messages ) {
|
356 |
global $post, $post_ID;
|
357 |
|
358 |
+
if ( give_is_setting_enabled( give_get_option( 'forms_singular' ) ) ) {
|
359 |
|
360 |
$messages['give_forms'] = array(
|
361 |
1 => esc_html__( 'Form updated.', 'give' ),
|
includes/scripts.php
CHANGED
@@ -27,7 +27,7 @@ function give_load_scripts() {
|
|
27 |
|
28 |
$js_dir = GIVE_PLUGIN_URL . 'assets/js/frontend/';
|
29 |
$js_plugins = GIVE_PLUGIN_URL . 'assets/js/plugins/';
|
30 |
-
$scripts_footer = ( give_get_option( 'scripts_footer' )
|
31 |
|
32 |
// Use minified libraries if SCRIPT_DEBUG is turned off.
|
33 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
27 |
|
28 |
$js_dir = GIVE_PLUGIN_URL . 'assets/js/frontend/';
|
29 |
$js_plugins = GIVE_PLUGIN_URL . 'assets/js/plugins/';
|
30 |
+
$scripts_footer = ( give_is_setting_enabled( give_get_option( 'scripts_footer' ) ) ) ? true : false;
|
31 |
|
32 |
// Use minified libraries if SCRIPT_DEBUG is turned off.
|
33 |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
|
includes/shortcodes.php
CHANGED
@@ -43,7 +43,7 @@ function give_donation_history() {
|
|
43 |
|
44 |
return ob_get_clean();
|
45 |
} //Is Email-based access enabled?
|
46 |
-
elseif ( $email_access
|
47 |
|
48 |
ob_start();
|
49 |
give_get_template_part( 'email', 'login-form' );
|
@@ -232,7 +232,7 @@ function give_receipt_shortcode( $atts ) {
|
|
232 |
$email_access = give_get_option( 'email_access' );
|
233 |
|
234 |
// No payment_key found & Email Access is Turned on:
|
235 |
-
if ( ! isset( $payment_key ) && $email_access
|
236 |
|
237 |
ob_start();
|
238 |
|
@@ -250,7 +250,7 @@ function give_receipt_shortcode( $atts ) {
|
|
250 |
$user_can_view = give_can_view_receipt( $payment_key );
|
251 |
|
252 |
// Key was provided, but user is logged out. Offer them the ability to login and view the receipt.
|
253 |
-
if ( ! $user_can_view && $email_access
|
254 |
|
255 |
ob_start();
|
256 |
|
43 |
|
44 |
return ob_get_clean();
|
45 |
} //Is Email-based access enabled?
|
46 |
+
elseif ( give_is_setting_enabled( $email_access ) ) {
|
47 |
|
48 |
ob_start();
|
49 |
give_get_template_part( 'email', 'login-form' );
|
232 |
$email_access = give_get_option( 'email_access' );
|
233 |
|
234 |
// No payment_key found & Email Access is Turned on:
|
235 |
+
if ( ! isset( $payment_key ) && give_is_setting_enabled( $email_access ) && ! Give()->email_access->token_exists ) {
|
236 |
|
237 |
ob_start();
|
238 |
|
250 |
$user_can_view = give_can_view_receipt( $payment_key );
|
251 |
|
252 |
// Key was provided, but user is logged out. Offer them the ability to login and view the receipt.
|
253 |
+
if ( ! $user_can_view && give_is_setting_enabled( $email_access ) && ! Give()->email_access->token_exists ) {
|
254 |
|
255 |
ob_start();
|
256 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://givewp.com/
|
|
4 |
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
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 1.8
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -164,6 +164,10 @@ We also really like WooCommerce. It's hands-down the most robust eCommerce platf
|
|
164 |
|
165 |
== Changelog ==
|
166 |
|
|
|
|
|
|
|
|
|
167 |
= 1.8 =
|
168 |
* New: Enhanced admin UI provides easier donation form creation and settings organization overview. [#281](https://github.com/WordImpress/Give/issues/281), [#668](https://github.com/WordImpress/Give/issues/668)
|
169 |
* New: Display "Donate Now" buttons that open donation forms with the click of a button with the new button display mode. [#520](https://github.com/WordImpress/Give/issues/520)
|
4 |
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
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.8.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
164 |
|
165 |
== Changelog ==
|
166 |
|
167 |
+
= 1.8.1 =
|
168 |
+
* Fix: Issue with conditionals now using new give_is_setting_enabled() function. [#1498](https://github.com/WordImpress/Give/issues/1498)
|
169 |
+
* Fix: Function is_single_price_mode() was not using the correct metakey and returning incorrectly. [#1500](https://github.com/WordImpress/Give/pull/1500)
|
170 |
+
|
171 |
= 1.8 =
|
172 |
* New: Enhanced admin UI provides easier donation form creation and settings organization overview. [#281](https://github.com/WordImpress/Give/issues/281), [#668](https://github.com/WordImpress/Give/issues/668)
|
173 |
* New: Display "Donate Now" buttons that open donation forms with the click of a button with the new button display mode. [#520](https://github.com/WordImpress/Give/issues/520)
|
uninstall.php
CHANGED
@@ -20,7 +20,7 @@ include_once( 'give.php' );
|
|
20 |
global $wpdb, $wp_roles;
|
21 |
|
22 |
|
23 |
-
if ( give_get_option( 'uninstall_on_delete' )
|
24 |
|
25 |
// Delete All the Custom Post Types.
|
26 |
$give_taxonomies = array( 'form_category', 'form_tag', 'give_log_type' );
|
20 |
global $wpdb, $wp_roles;
|
21 |
|
22 |
|
23 |
+
if ( give_is_setting_enabled( give_get_option( 'uninstall_on_delete' ) ) ) {
|
24 |
|
25 |
// Delete All the Custom Post Types.
|
26 |
$give_taxonomies = array( 'form_category', 'form_tag', 'give_log_type' );
|