Version Description
Bug fixes release.
=
Download this release
Release Info
Developer | wpexpertsio |
Plugin | myCRED |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- addons/sell-content/myCRED-addon-sell-content.php +1 -1
- includes/mycred-functions.php +12 -3
- includes/shortcodes/mycred_best_user.php +1 -1
- mycred.php +2 -2
- readme.txt +13 -5
addons/sell-content/myCRED-addon-sell-content.php
CHANGED
@@ -1051,7 +1051,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
|
|
1051 |
'status' => 'disabled',
|
1052 |
'price' => 0,
|
1053 |
'expire' => 0
|
1054 |
-
), $sale_setup );
|
1055 |
|
1056 |
$expiration_description = __( 'Never expires', 'mycred' );
|
1057 |
if ( absint( $sale_setup['expire'] ) > 0 )
|
1051 |
'status' => 'disabled',
|
1052 |
'price' => 0,
|
1053 |
'expire' => 0
|
1054 |
+
), $sale_setup[0] );
|
1055 |
|
1056 |
$expiration_description = __( 'Never expires', 'mycred' );
|
1057 |
if ( absint( $sale_setup['expire'] ) > 0 )
|
includes/mycred-functions.php
CHANGED
@@ -157,9 +157,18 @@ if ( ! class_exists( 'myCRED_Settings' ) ) :
|
|
157 |
global $wpdb;
|
158 |
|
159 |
if ( $this->is_multisite && $this->use_central_logging )
|
160 |
-
$
|
161 |
else
|
162 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
if ( defined( 'MYCRED_LOG_TABLE' ) )
|
165 |
$table_name = MYCRED_LOG_TABLE;
|
@@ -512,7 +521,7 @@ if ( ! class_exists( 'myCRED_Settings' ) ) :
|
|
512 |
$post_url = '#item-has-been-deleted';
|
513 |
|
514 |
// Post does not exist - see if we can re-construct
|
515 |
-
if ( isset( $post->ID ) ) {
|
516 |
|
517 |
// Nope, no backup, bye
|
518 |
if ( ! is_array( $data ) || ! array_key_exists( 'ID', $data ) ) return $content;
|
157 |
global $wpdb;
|
158 |
|
159 |
if ( $this->is_multisite && $this->use_central_logging )
|
160 |
+
$wp_prefix = $wpdb->base_prefix;
|
161 |
else
|
162 |
+
$wp_prefix = $wpdb->prefix;
|
163 |
+
|
164 |
+
$table_name = $wpdb->get_var( $wpdb->prepare( "SHOW TABLES LIKE %s", $wp_prefix . 'myCRED_log' ) );
|
165 |
+
|
166 |
+
if( $table_name == NULL ) {
|
167 |
+
$table_name = $wpdb->get_var( $wpdb->prepare( "SHOW TABLES LIKE %s", $wp_prefix . 'mycred_log' ) );
|
168 |
+
|
169 |
+
if( $table_name == NULL )
|
170 |
+
$table_name = $wp_prefix . 'myCRED_log';
|
171 |
+
}
|
172 |
|
173 |
if ( defined( 'MYCRED_LOG_TABLE' ) )
|
174 |
$table_name = MYCRED_LOG_TABLE;
|
521 |
$post_url = '#item-has-been-deleted';
|
522 |
|
523 |
// Post does not exist - see if we can re-construct
|
524 |
+
if ( !isset( $post->ID ) ) {
|
525 |
|
526 |
// Nope, no backup, bye
|
527 |
if ( ! is_array( $data ) || ! array_key_exists( 'ID', $data ) ) return $content;
|
includes/shortcodes/mycred_best_user.php
CHANGED
@@ -12,7 +12,7 @@ if ( ! function_exists( 'mycred_render_shortcode_best_user' ) ) :
|
|
12 |
function mycred_render_shortcode_best_user( $attr, $content = '' ) {
|
13 |
|
14 |
extract( shortcode_atts( array(
|
15 |
-
'ref' => '',
|
16 |
'from' => '',
|
17 |
'until' => '',
|
18 |
'types' => MYCRED_DEFAULT_TYPE_KEY,
|
12 |
function mycred_render_shortcode_best_user( $attr, $content = '' ) {
|
13 |
|
14 |
extract( shortcode_atts( array(
|
15 |
+
'ref' => 'balance',
|
16 |
'from' => '',
|
17 |
'until' => '',
|
18 |
'types' => MYCRED_DEFAULT_TYPE_KEY,
|
mycred.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: myCRED
|
4 |
* Plugin URI: https://mycred.me
|
5 |
* Description: An adaptive points management system for WordPress powered websites.
|
6 |
-
* Version: 1.8.
|
7 |
* Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
|
8 |
* Author: myCRED
|
9 |
* Author URI: https://mycred.me
|
@@ -19,7 +19,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
|
|
19 |
final class myCRED_Core {
|
20 |
|
21 |
// Plugin Version
|
22 |
-
public $version = '1.8.
|
23 |
|
24 |
// Instnace
|
25 |
protected static $_instance = NULL;
|
3 |
* Plugin Name: myCRED
|
4 |
* Plugin URI: https://mycred.me
|
5 |
* Description: An adaptive points management system for WordPress powered websites.
|
6 |
+
* Version: 1.8.2
|
7 |
* Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
|
8 |
* Author: myCRED
|
9 |
* Author URI: https://mycred.me
|
19 |
final class myCRED_Core {
|
20 |
|
21 |
// Plugin Version
|
22 |
+
public $version = '1.8.2';
|
23 |
|
24 |
// Instnace
|
25 |
protected static $_instance = NULL;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: mycred,wpexpertsio
|
|
3 |
Tags: point, credit, loyalty program, engagement, reward
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.1
|
6 |
-
Stable tag: 1.8.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -97,6 +97,9 @@ Major release(Make sure to take backup before updating)
|
|
97 |
= 1.8.1 =
|
98 |
Bug fixes.
|
99 |
|
|
|
|
|
|
|
100 |
|
101 |
== Other Notes ==
|
102 |
|
@@ -119,11 +122,16 @@ Bug fixes.
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
= 1.8.1 =
|
123 |
-
FIX - [mycred_my_balance] shortcode
|
124 |
-
FIX - [mycred_total_balance] shortcode
|
125 |
-
FIX - rank related issues
|
126 |
-
Remove unwanted files
|
127 |
|
128 |
= 1.8 =
|
129 |
NEW - Added new mycred_over_hook_limit filter for adjusting hook limit checks.
|
3 |
Tags: point, credit, loyalty program, engagement, reward
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.1
|
6 |
+
Stable tag: 1.8.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
97 |
= 1.8.1 =
|
98 |
Bug fixes.
|
99 |
|
100 |
+
= 1.8.2 =
|
101 |
+
Bug fixes release.
|
102 |
+
|
103 |
|
104 |
== Other Notes ==
|
105 |
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 1.8.2 =
|
126 |
+
FIX - [mycred_best_user] shortcode fixed.
|
127 |
+
FIX - Post related template tags fixed.
|
128 |
+
FIX - Sell content related issue fixed.
|
129 |
+
IMPROVEMENT - Added check for existing logs getting disappeared.
|
130 |
+
|
131 |
= 1.8.1 =
|
132 |
+
FIX - [mycred_my_balance] shortcode fixed.
|
133 |
+
FIX - [mycred_total_balance] shortcode fixed.
|
134 |
+
FIX - rank related issues fixed.
|
|
|
135 |
|
136 |
= 1.8 =
|
137 |
NEW - Added new mycred_over_hook_limit filter for adjusting hook limit checks.
|