myCRED - Version 2.4.4.2-beta.3

Version Description

= 2.4.4.2 = * Improvements * Patched security vulnerability.

= 2.4.4.1 = * Improvements * Patched security vulnerability. * Badge UI Fix.

= 2.4.4 = New features and Bug fixes.

= 2.4.3 = Code improvement.

= 2.4.2 = Code improvement.

= 2.4.1 = New features and Bug fixes.

= 2.4 = New features and Bug fixes.

= 2.3.2 = Code improvement.

= 2.3.1 = Improve license system.

= 2.3 = New features and Bug fixes.

= 2.2 = New features and Bug fixes.

= 2.1.1 = New features and Bug fixes.

= 2.1 = New features and Bug fixes.

= 2.0 = The banking module have been replaced by Central deposite module, and interest related functionality has been removed. If you are using simple interest or compound interest related functionality, you will fine the respective functionalities missing after the update.

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 myCRED
Version 2.4.4.2-beta.3
Comparing to
See all releases

Code changes from version 2.4.4.2-beta.2 to 2.4.4.2-beta.3

addons/cash-creds/assets/js/withdraw.js CHANGED
@@ -92,6 +92,10 @@ jQuery(
92
  cashcred_fee = cashcred_fee_setting(cashcred_point_type, withdraw_points);
93
  currency_code = cashcred.exchange[cashcred_pay_method].currency;
94
  conversion_rate = cashcred.exchange[cashcred_pay_method].point_type[cashcred_point_type];
 
 
 
 
95
 
96
  min = cashcred.exchange[cashcred_pay_method].min;
97
  max = cashcred.exchange[cashcred_pay_method].max
92
  cashcred_fee = cashcred_fee_setting(cashcred_point_type, withdraw_points);
93
  currency_code = cashcred.exchange[cashcred_pay_method].currency;
94
  conversion_rate = cashcred.exchange[cashcred_pay_method].point_type[cashcred_point_type];
95
+
96
+ if ( typeof conversion_rate === 'undefined' ) {
97
+ conversion_rate = 1;
98
+ }
99
 
100
  min = cashcred.exchange[cashcred_pay_method].min;
101
  max = cashcred.exchange[cashcred_pay_method].max
addons/cash-creds/modules/cashcred-module-core.php CHANGED
@@ -458,7 +458,11 @@ if ( ! class_exists( 'myCRED_cashCRED_Module' ) ) :
458
  $mycred_pref_cashcreds = mycred_get_option( 'mycred_pref_cashcreds' , false );
459
 
460
  $currency = $mycred_pref_cashcreds['gateway_prefs'][$gateway_id]['currency'];
461
- $cost = $mycred_pref_cashcreds['gateway_prefs'][$gateway_id]['exchange'][$point_type];
 
 
 
 
462
 
463
  $user_balance = mycred_get_users_balance( get_current_user_id() , $point_type );
464
 
458
  $mycred_pref_cashcreds = mycred_get_option( 'mycred_pref_cashcreds' , false );
459
 
460
  $currency = $mycred_pref_cashcreds['gateway_prefs'][$gateway_id]['currency'];
461
+ $cost = 1;
462
+
463
+ if ( ! empty( $mycred_pref_cashcreds['gateway_prefs'][$gateway_id]['exchange'][$point_type] ) ) {
464
+ $cost = $mycred_pref_cashcreds['gateway_prefs'][$gateway_id]['exchange'][$point_type];
465
+ }
466
 
467
  $user_balance = mycred_get_users_balance( get_current_user_id() , $point_type );
468
 
addons/email-notices/includes/mycred-email-object.php CHANGED
@@ -79,8 +79,10 @@ if (! class_exists('myCRED_Email') ) :
79
  $this->post_id = absint($notice_id);
80
  $this->post = mycred_get_post($this->post_id);
81
 
82
- $this->point_types = (array) mycred_get_post_meta($this->post_id, 'mycred_email_ctype', true);
83
- if (empty($this->point_types) ) { $this->point_types = array( MYCRED_DEFAULT_TYPE_KEY );
 
 
84
  }
85
 
86
  $this->emailnotices = mycred_get_addon_settings('emailnotices');
79
  $this->post_id = absint($notice_id);
80
  $this->post = mycred_get_post($this->post_id);
81
 
82
+ $this->point_types = mycred_get_post_meta( $this->post_id, 'mycred_email_ctype', true);
83
+
84
+ if ( empty($this->point_types) ) {
85
+ $this->point_types = array( MYCRED_DEFAULT_TYPE_KEY );
86
  }
87
 
88
  $this->emailnotices = mycred_get_addon_settings('emailnotices');
addons/email-notices/myCRED-addon-email-notices.php CHANGED
@@ -429,9 +429,9 @@ if ( ! class_exists( 'myCRED_Email_Notice_Module' ) ) :
429
  elseif ( $column_name == 'mycred-email-ctype' ) {
430
 
431
  echo '<p>';
432
- if ( empty( $email->point_types ) )
433
- _e( 'No point types selected', 'mycred' );
434
-
435
  else {
436
  $types = array();
437
  foreach ( $email->point_types as $type_key ) {
429
  elseif ( $column_name == 'mycred-email-ctype' ) {
430
 
431
  echo '<p>';
432
+ if ( empty( $email->point_types ) ) {
433
+ esc_html_e( 'No point types selected', 'mycred' );
434
+ }
435
  else {
436
  $types = array();
437
  foreach ( $email->point_types as $type_key ) {
addons/stats/includes/mycred-stats-functions.php CHANGED
@@ -795,6 +795,10 @@ if (! function_exists('mycred_get_history_data') ) :
795
  function mycred_get_history_data( $point_type = MYCRED_DEFAULT_TYPE_KEY, $period = 'days', $number = 10, $order = 'DESC' )
796
  {
797
 
 
 
 
 
798
  $stats_key = MYCRED_SLUG . '-stats-' . md5($point_type . $period . $number . $order);
799
  $cache = mycred_get_option($stats_key, false);
800
 
795
  function mycred_get_history_data( $point_type = MYCRED_DEFAULT_TYPE_KEY, $period = 'days', $number = 10, $order = 'DESC' )
796
  {
797
 
798
+ if ( ! array_key_exists( $point_type, mycred_get_types() ) ) {
799
+ return false;
800
+ }
801
+
802
  $stats_key = MYCRED_SLUG . '-stats-' . md5($point_type . $period . $number . $order);
803
  $cache = mycred_get_option($stats_key, false);
804
 
addons/stats/includes/mycred-stats-shortcodes.php CHANGED
@@ -155,7 +155,8 @@ if (! function_exists('mycred_render_chart_history') ) :
155
 
156
  // Get data
157
  $data = mycred_get_history_data($ctype, $period, $number, $order);
158
- if (empty($data) ) { return $no_data;
 
159
  }
160
 
161
  // New Chart Object
155
 
156
  // Get data
157
  $data = mycred_get_history_data($ctype, $period, $number, $order);
158
+ if (empty($data) ) {
159
+ return $no_data;
160
  }
161
 
162
  // New Chart Object
assets/css/mycred-front.css CHANGED
@@ -11,6 +11,13 @@
11
  text-align: center;
12
  font-size: larger;
13
  }
 
 
 
 
 
 
 
14
  .widget .myCRED-leaderboard .cred {
15
  float: right;
16
  }
11
  text-align: center;
12
  font-size: larger;
13
  }
14
+ .item-meta > #mycred-my-ranks {
15
+ display: none;
16
+ }
17
+ .item-meta > .mycred-balance {
18
+ display:none;
19
+
20
+ }
21
  .widget .myCRED-leaderboard .cred {
22
  float: right;
23
  }