myCRED - Version 1.8.1

Version Description

Bug fixes.

=

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 myCRED
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8 to 1.8.1

addons/ranks/includes/mycred-rank-shortcodes.php CHANGED
@@ -30,7 +30,7 @@ if ( ! function_exists( 'mycred_render_my_rank' ) ) :
30
  if ( $user_id === false ) return;
31
 
32
  $account_object = mycred_get_account( $user_id );
33
- $rank_object = $account_object->balance[ $point_type ]->rank;
34
 
35
  if ( $rank_object !== false ) {
36
 
@@ -48,7 +48,7 @@ if ( ! function_exists( 'mycred_render_my_rank' ) ) :
48
  if ( ! empty( $show ) )
49
  $content = '<div class="mycred-my-rank">' . implode( ' ', $show ) . '</div>';
50
 
51
- return apply_filters( 'mycred_my_rank', $content, $user_id, $rank );
52
 
53
  }
54
  endif;
30
  if ( $user_id === false ) return;
31
 
32
  $account_object = mycred_get_account( $user_id );
33
+ $rank_object = $account_object->balance[ $ctype ]->rank;
34
 
35
  if ( $rank_object !== false ) {
36
 
48
  if ( ! empty( $show ) )
49
  $content = '<div class="mycred-my-rank">' . implode( ' ', $show ) . '</div>';
50
 
51
+ return apply_filters( 'mycred_my_rank', $content, $user_id, $rank_object );
52
 
53
  }
54
  endif;
includes/shortcodes/mycred_my_balance.php CHANGED
@@ -62,9 +62,9 @@ if ( ! function_exists( 'mycred_render_shortcode_my_balance' ) ) :
62
  $output .= '<' . $balance_el . '>';
63
 
64
  if ( $formatted )
65
- $output .= $balance->type->format( $balance->current );
66
  else
67
- $output .= $balance->type->number( $balance->current );
68
 
69
  if ( ! empty( $balance_el ) )
70
  $output .= '</' . $balance_el . '>';
62
  $output .= '<' . $balance_el . '>';
63
 
64
  if ( $formatted )
65
+ $output .= $balance->point_type->format( $balance->current );
66
  else
67
+ $output .= $balance->point_type->number( $balance->current );
68
 
69
  if ( ! empty( $balance_el ) )
70
  $output .= '</' . $balance_el . '>';
includes/shortcodes/mycred_total_balance.php CHANGED
@@ -43,7 +43,7 @@ if ( ! function_exists( 'mycred_render_shortcode_total' ) ) :
43
  foreach ( explode( ',', $types ) as $type_key ) {
44
 
45
  $type_key = sanitize_text_field( $type_key );
46
- if ( ! array_key_exists( $type_key, $this->balance ) ) continue;
47
 
48
  if ( ! in_array( $type_key, $types_to_addup ) )
49
  $types_to_addup[] = $type_key;
43
  foreach ( explode( ',', $types ) as $type_key ) {
44
 
45
  $type_key = sanitize_text_field( $type_key );
46
+ if ( ! array_key_exists( $type_key, $account->balance ) ) continue;
47
 
48
  if ( ! in_array( $type_key, $types_to_addup ) )
49
  $types_to_addup[] = $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.1
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.1';
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
 
@@ -91,15 +91,17 @@ You can find a list of [frequently asked questions](https://mycred.me/about/faq/
91
 
92
  == Upgrade Notice ==
93
 
 
 
94
 
95
- = 1.7.9.8 =
96
  Bug fixes.
97
 
98
 
99
  == Other Notes ==
100
 
101
  = Requirements =
102
- * WordPress 4.5 or greater
103
  * PHP version 5.6 or greater
104
  * PHP mcrypt library enabled
105
  * MySQL version 5.0 or greater
@@ -115,9 +117,14 @@ Bug fixes.
115
  * Japanese - Mochizuki Hiroshi
116
 
117
 
118
-
119
  == Changelog ==
120
 
 
 
 
 
 
 
121
  = 1.8 =
122
  NEW - Added new mycred_over_hook_limit filter for adjusting hook limit checks.
123
  NEW - Added new MYCRED_RANK_KEY constant which can be used to whitelabel ranks.
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.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
91
 
92
  == Upgrade Notice ==
93
 
94
+ = 1.8.0 =
95
+ Major release(Make sure to take backup before updating)
96
 
97
+ = 1.8.1 =
98
  Bug fixes.
99
 
100
 
101
  == Other Notes ==
102
 
103
  = Requirements =
104
+ * WordPress 4.8 or greater
105
  * PHP version 5.6 or greater
106
  * PHP mcrypt library enabled
107
  * MySQL version 5.0 or greater
117
  * Japanese - Mochizuki Hiroshi
118
 
119
 
 
120
  == Changelog ==
121
 
122
+ = 1.8.1 =
123
+ FIX - [mycred_my_balance] shortcode fix.
124
+ FIX - [mycred_total_balance] shortcode fix.
125
+ FIX - rank related issues fix.
126
+ Remove unwanted files
127
+
128
  = 1.8 =
129
  NEW - Added new mycred_over_hook_limit filter for adjusting hook limit checks.
130
  NEW - Added new MYCRED_RANK_KEY constant which can be used to whitelabel ranks.