myCRED - Version 2.4.5.1

Version Description

  • FIX - Php notices in Sell Content
Download this release

Release Info

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

Code changes from version 2.4.5 to 2.4.5.1

addons/sell-content/myCRED-addon-sell-content.php CHANGED
@@ -617,7 +617,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
617
 
618
  ?>
619
  <div class="mycred-wrapper buycred-wrapper disabled-option color-option">
620
- <div><?php printf( esc_html( _x( '%s Profit Share', 'Points Name', 'mycred' ), $data['name'] ) ); ?></div>
621
  <div class="balance-row">
622
  <div class="balance-view"><?php esc_html_e( 'Disabled', 'mycred' ); ?></div>
623
  <div class="balance-desc"><em><?php esc_html_e( 'Not accepted as payment.', 'mycred' ); ?></em></div>
@@ -632,10 +632,10 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
632
 
633
  ?>
634
  <div class="mycred-wrapper buycred-wrapper disabled-option color-option">
635
- <div><?php printf( esc_html( _x( '%s Profit Share', 'Points Name', 'mycred' ), $data['name'] ) ); ?></div>
636
  <div class="balance-row">
637
  <div class="balance-view"><?php esc_html_e( 'Excluded', 'mycred' ); ?></div>
638
- <div class="balance-desc"><em><?php printf( esc_html( _x( 'User can not pay using %s', 'Points Name', 'mycred' ), $data['name'] ) ); ?></em></div>
639
  </div>
640
  </div>
641
  <?php
@@ -647,7 +647,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
647
 
648
  ?>
649
  <div class="mycred-wrapper buycred-wrapper color-option selected">
650
- <div><?php printf( esc_html( _x( '%s Profit Share', 'Buying Points', 'mycred' ), $data['name'] ) ); ?></div>
651
  <div class="balance-row">
652
  <div class="balance-view"><input type="text" size="8" name="mycred_sell_this[<?php echo esc_attr( $point_type ); ?>]" class="half" placeholder="<?php echo esc_attr( $data['default'] ); ?>" value="<?php if ( $data['override'] ) echo esc_attr( $data['custom'] ); ?>" /> %</div>
653
  <div class="balance-desc"><em><?php esc_html_e( 'Leave empty to use the default.', 'mycred' ); ?></em></div>
@@ -861,7 +861,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
861
 
862
  ?>
863
  <div id="mycred-sell-<?php echo esc_attr( $point_type ); ?>-wrap" style="display: <?php echo esc_attr( $selected ); ?>;">
864
- <h3><?php printf( esc_html( __( '%s Setup', 'mycred' ), $point_type_label ) ); ?></h3>
865
  <div class="row">
866
  <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
867
  <div class="form-group">
@@ -881,14 +881,14 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
881
  <div class="form-group">
882
  <label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-expire' ) ) ); ?>"><?php esc_html_e( 'Expiration', 'mycred' ); ?></label>
883
  <input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[expire]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-expire' ) ) ); ?>" class="form-control" value="<?php echo esc_attr( $type_setup['expire'] ); ?>" />
884
- <p><span class="description"><?php printf( esc_html( __( 'Option to automatically expire purchases after certain number of %s. Use zero to disable.', 'mycred' ), $expiration_label ) ); ?></span></p>
885
  </div>
886
  </div>
887
  <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
888
  <div class="form-group">
889
  <label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-profit-share' ) ) ); ?>"><?php esc_html_e( 'Profit Share', 'mycred' ); ?></label>
890
  <input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[profit_share]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-profit-share' ) ) ); ?>" class="form-control" value="<?php echo esc_attr( $type_setup['profit_share'] ); ?>" />
891
- <p><span class="description"><?php printf( esc_html( __( 'Option to pay a percentage of each sale with the content author.', 'mycred' ), $expiration_label ) ); ?></span></p>
892
  </div>
893
  </div>
894
  </div>
@@ -1297,7 +1297,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
1297
  <div class="row row-narrow">
1298
  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
1299
  <div class="form-group slim">
1300
- <label for="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-status" class="slim"><input type="checkbox" name="mycred_sell_this[<?php echo esc_attr( $point_type ); ?>][status]" id="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-status"<?php if ( $sale_setup['status'] === 'enabled' ) echo ' checked="checked"'; ?> value="enabled" class="toggle-setup" data-type="<?php echo esc_attr( $point_type ); ?>" /> <?php printf( esc_html( __( 'Sell using %s', 'Point types name', 'mycred' ), $mycred->plural() ) ); ?></label>
1301
  </div>
1302
  </div>
1303
  </div>
617
 
618
  ?>
619
  <div class="mycred-wrapper buycred-wrapper disabled-option color-option">
620
+ <div><?php printf( esc_html( _x( '%s Profit Share', 'Points Name', 'mycred' ) ), $data['name'] ); ?></div>
621
  <div class="balance-row">
622
  <div class="balance-view"><?php esc_html_e( 'Disabled', 'mycred' ); ?></div>
623
  <div class="balance-desc"><em><?php esc_html_e( 'Not accepted as payment.', 'mycred' ); ?></em></div>
632
 
633
  ?>
634
  <div class="mycred-wrapper buycred-wrapper disabled-option color-option">
635
+ <div><?php printf( esc_html( _x( '%s Profit Share', 'Points Name', 'mycred' ) ), $data['name'] ); ?></div>
636
  <div class="balance-row">
637
  <div class="balance-view"><?php esc_html_e( 'Excluded', 'mycred' ); ?></div>
638
+ <div class="balance-desc"><em><?php printf( esc_html( _x( 'User can not pay using %s', 'Points Name', 'mycred' ) ), $data['name'] ); ?></em></div>
639
  </div>
640
  </div>
641
  <?php
647
 
648
  ?>
649
  <div class="mycred-wrapper buycred-wrapper color-option selected">
650
+ <div><?php printf( esc_html( _x( '%s Profit Share', 'Buying Points', 'mycred' ) ), $data['name'] ); ?></div>
651
  <div class="balance-row">
652
  <div class="balance-view"><input type="text" size="8" name="mycred_sell_this[<?php echo esc_attr( $point_type ); ?>]" class="half" placeholder="<?php echo esc_attr( $data['default'] ); ?>" value="<?php if ( $data['override'] ) echo esc_attr( $data['custom'] ); ?>" /> %</div>
653
  <div class="balance-desc"><em><?php esc_html_e( 'Leave empty to use the default.', 'mycred' ); ?></em></div>
861
 
862
  ?>
863
  <div id="mycred-sell-<?php echo esc_attr( $point_type ); ?>-wrap" style="display: <?php echo esc_attr( $selected ); ?>;">
864
+ <h3><?php printf( esc_html( __( '%s Setup', 'mycred' ) ), $point_type_label ); ?></h3>
865
  <div class="row">
866
  <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
867
  <div class="form-group">
881
  <div class="form-group">
882
  <label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-expire' ) ) ); ?>"><?php esc_html_e( 'Expiration', 'mycred' ); ?></label>
883
  <input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[expire]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-expire' ) ) ); ?>" class="form-control" value="<?php echo esc_attr( $type_setup['expire'] ); ?>" />
884
+ <p><span class="description"><?php printf( esc_html( __( 'Option to automatically expire purchases after certain number of %s. Use zero to disable.', 'mycred' ) ), $expiration_label ); ?></span></p>
885
  </div>
886
  </div>
887
  <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
888
  <div class="form-group">
889
  <label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-profit-share' ) ) ); ?>"><?php esc_html_e( 'Profit Share', 'mycred' ); ?></label>
890
  <input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[profit_share]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-profit-share' ) ) ); ?>" class="form-control" value="<?php echo esc_attr( $type_setup['profit_share'] ); ?>" />
891
+ <p><span class="description"><?php printf( esc_html( __( 'Option to pay a percentage of each sale with the content author.', 'mycred' ) ), $expiration_label ); ?></span></p>
892
  </div>
893
  </div>
894
  </div>
1297
  <div class="row row-narrow">
1298
  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
1299
  <div class="form-group slim">
1300
+ <label for="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-status" class="slim"><input type="checkbox" name="mycred_sell_this[<?php echo esc_attr( $point_type ); ?>][status]" id="mycred-sell-this-<?php echo esc_attr( $point_type ); ?>-status"<?php if ( $sale_setup['status'] === 'enabled' ) echo ' checked="checked"'; ?> value="enabled" class="toggle-setup" data-type="<?php echo esc_attr( $point_type ); ?>" /> <?php printf( esc_html( __( 'Sell using %s', 'Point types name', 'mycred' ) ), $mycred->plural() ); ?></label>
1301
  </div>
1302
  </div>
1303
  </div>
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
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';
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' ); }
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' ); }
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' );
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' );
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.1
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.1';
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.1' ); }
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.1' ); }
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.1' );
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.1' );
98
  }
99
 
100
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mycred,wpexpertsio
3
  Tags: badges, gamification, loyalty, points, rewards
4
  Requires at least: 4.8
5
  Tested up to: 5.9.3
6
- Stable tag: 2.4.5
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -375,6 +375,9 @@ The banking module have been replaced by Central deposite module, and interest r
375
 
376
  == Changelog ==
377
 
 
 
 
378
  = 2.4.5 =
379
  - **TWAEK** - Code improvement.
380
 
3
  Tags: badges, gamification, loyalty, points, rewards
4
  Requires at least: 4.8
5
  Tested up to: 5.9.3
6
+ Stable tag: 2.4.5.1
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
375
 
376
  == Changelog ==
377
 
378
+ = 2.4.5.1 =
379
+ - **FIX** - Php notices in Sell Content
380
+
381
  = 2.4.5 =
382
  - **TWAEK** - Code improvement.
383