myCRED - Version 2.4.5.3-beta

Version Description

= 2.4.5 = Code improvement.

= 2.4.4.4 = Bug fixes.

= 2.4.4.3 = Code improvement.

= 2.4.4.2 = Code improvement.

= 2.4.4.1 = Improvement and Bug fixes.

= 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.5.3-beta
Comparing to
See all releases

Code changes from version 2.4.5.2 to 2.4.5.3-beta

addons/sell-content/myCRED-addon-sell-content.php CHANGED
@@ -681,7 +681,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
681
 
682
  if ( isset( $_POST['mycred_sell_this'] ) && ! empty( $_POST['mycred_sell_this'] ) ) {
683
 
684
- foreach ( sanitize_text_field( wp_unslash( $_POST['mycred_sell_this'] ) ) as $point_type => $share ) {
685
 
686
  $share = sanitize_text_field( $share );
687
 
@@ -1314,7 +1314,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
1314
  <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
1315
  <div class="form-group slim">
1316
  <label for="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-price"><?php esc_html_e( 'Price', 'mycred' ); ?></label>
1317
- <input type="text" name="mycred_sell_this[<?php echo esc_attr( $point_type ); ?>][price]" id="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-price" class="form-control" value="<?php echo esc_attr( $sale_setup['price'] ); ?>" />
1318
  </div>
1319
  </div>
1320
  <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
@@ -1376,11 +1376,12 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
1376
  $mycred = mycred( $point_type );
1377
 
1378
  $new_setup = array( 'status' => 'disabled', 'price' => 0, 'expire' => 0 );
 
1379
  $submission = shortcode_atts( array(
1380
  'status' => 'disabled',
1381
  'price' => 0,
1382
  'expire' => 0
1383
- ), sanitize_text_field( wp_unslash( $_POST['mycred_sell_this'][ $point_type ] ) ) );
1384
 
1385
  if ( $submission['status'] == '' ) $submission['status'] = 'disabled';
1386
 
681
 
682
  if ( isset( $_POST['mycred_sell_this'] ) && ! empty( $_POST['mycred_sell_this'] ) ) {
683
 
684
+ foreach ( $_POST['mycred_sell_this'] as $point_type => $share ) {
685
 
686
  $share = sanitize_text_field( $share );
687
 
1314
  <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
1315
  <div class="form-group slim">
1316
  <label for="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-price"><?php esc_html_e( 'Price', 'mycred' ); ?></label>
1317
+ <input type="text" name="mycred_sell_this[<?php echo esc_attr( $point_type ); ?>][price]" id="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-price" class="form-control" value="<?php echo absint( $sale_setup['price'] ); ?>" />
1318
  </div>
1319
  </div>
1320
  <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
1376
  $mycred = mycred( $point_type );
1377
 
1378
  $new_setup = array( 'status' => 'disabled', 'price' => 0, 'expire' => 0 );
1379
+
1380
  $submission = shortcode_atts( array(
1381
  'status' => 'disabled',
1382
  'price' => 0,
1383
  'expire' => 0
1384
+ ), $_POST['mycred_sell_this'][ $point_type ] );
1385
 
1386
  if ( $submission['status'] == '' ) $submission['status'] = 'disabled';
1387
 
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: 2.4.5.2
7
  * Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
8
  * Author: myCred
9
  * Author URI: https://mycred.me
@@ -20,7 +20,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
20
  final class myCRED_Core {
21
 
22
  // Plugin Version
23
- public $version = '2.4.5.2';
24
 
25
  // Instnace
26
  protected static $_instance = NULL;
@@ -54,14 +54,14 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
54
  * @since 1.7
55
  * @version 1.0
56
  */
57
- public function __clone() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '2.4.5.2' ); }
58
 
59
  /**
60
  * Not allowed
61
  * @since 1.7
62
  * @version 1.0
63
  */
64
- public function __wakeup() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '2.4.5.2' ); }
65
 
66
  /**
67
  * Get
@@ -82,7 +82,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
82
  if ( ! defined( $name ) )
83
  define( $name, $value );
84
  elseif ( ! $definable && defined( $name ) )
85
- _doing_it_wrong( 'myCRED_Core->define()', 'Could not define: ' . $name . ' as it is already defined somewhere else!', '2.4.5.2' );
86
  }
87
 
88
  /**
@@ -94,7 +94,7 @@ if ( ! class_exists( 'myCRED_Core' ) ) :
94
  if ( file_exists( $required_file ) )
95
  require_once $required_file;
96
  else
97
- _doing_it_wrong( 'myCRED_Core->file()', 'Requested file ' . $required_file . ' not found.', '2.4.5.2' );
98
  }
99
 
100
  /**
3
  * Plugin Name: myCred
4
  * Plugin URI: https://mycred.me
5
  * Description: An adaptive points management system for WordPress powered websites.
6
+ * Version: 2.4.5.3
7
  * Tags: point, credit, loyalty program, engagement, reward, woocommerce rewards
8
  * Author: myCred
9
  * Author URI: https://mycred.me
20
  final class myCRED_Core {
21
 
22
  // Plugin Version
23
+ public $version = '2.4.5.3';
24
 
25
  // Instnace
26
  protected static $_instance = NULL;
54
  * @since 1.7
55
  * @version 1.0
56
  */
57
+ public function __clone() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '2.4.5.3' ); }
58
 
59
  /**
60
  * Not allowed
61
  * @since 1.7
62
  * @version 1.0
63
  */
64
+ public function __wakeup() { _doing_it_wrong( __FUNCTION__, 'Cheatin&#8217; huh?', '2.4.5.3' ); }
65
 
66
  /**
67
  * Get
82
  if ( ! defined( $name ) )
83
  define( $name, $value );
84
  elseif ( ! $definable && defined( $name ) )
85
+ _doing_it_wrong( 'myCRED_Core->define()', 'Could not define: ' . $name . ' as it is already defined somewhere else!', '2.4.5.3' );
86
  }
87
 
88
  /**
94
  if ( file_exists( $required_file ) )
95
  require_once $required_file;
96
  else
97
+ _doing_it_wrong( 'myCRED_Core->file()', 'Requested file ' . $required_file . ' not found.', '2.4.5.3' );
98
  }
99
 
100
  /**
readme.txt CHANGED
@@ -375,11 +375,14 @@ The banking module have been replaced by Central deposite module, and interest r
375
 
376
  == Changelog ==
377
 
 
 
 
378
  = 2.4.5.2 =
379
- - **FIX** - Sell Content enable/disable dropdown not working
380
 
381
  = 2.4.5.1 =
382
- - **FIX** - Php notices in Sell Content
383
 
384
  = 2.4.5 =
385
  - **TWAEK** - Code improvement.
375
 
376
  == Changelog ==
377
 
378
+ = 2.4.5.3 =
379
+ - **FIX** - Sell content for manual pages/posts not working
380
+
381
  = 2.4.5.2 =
382
+ - **FIX** - Sell Content settings not being saved.
383
 
384
  = 2.4.5.1 =
385
+ - **FIX** - Php notices in setting area
386
 
387
  = 2.4.5 =
388
  - **TWAEK** - Code improvement.