Version Description
- FIX - Sell Content enable/disable dropdown not working
Download this release
Release Info
Developer | wpexpertsio |
Plugin | myCRED |
Version | 2.4.5.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.5.1 to 2.4.5.2
- addons/sell-content/myCRED-addon-sell-content.php +24 -16
- mycred.php +6 -6
- readme.txt +4 -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,13 +861,21 @@ 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">
|
868 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-status' ) ) ); ?>"><?php esc_html_e( 'Default Status', 'mycred' ); ?></label>
|
869 |
<select name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[status]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-status' ) ) ); ?>" class="form-control">
|
870 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
871 |
</select>
|
872 |
</div>
|
873 |
</div>
|
@@ -881,14 +889,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>
|
@@ -897,7 +905,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
|
|
897 |
<div class="form-group">
|
898 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-button' ) ) ); ?>"><?php esc_html_e( 'Button Label', 'mycred' ); ?></label>
|
899 |
<input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[button_label]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-button' ) ) ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Required', 'mycred' ); ?>" value="<?php echo esc_attr( $type_setup['button_label'] ); ?>" />
|
900 |
-
<p><span class="description"><?php echo
|
901 |
</div>
|
902 |
</div>
|
903 |
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
|
@@ -913,14 +921,14 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
|
|
913 |
<div class="form-group">
|
914 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-pay' ) ) ); ?>"><?php esc_html_e( 'Payment log entry template', 'mycred' ); ?></label>
|
915 |
<input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[log_payment]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-pay' ) ) ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Required', 'mycred' ); ?>" value="<?php echo esc_attr( $type_setup['log_payment'] ); ?>" />
|
916 |
-
<p><span class="description"><?php echo
|
917 |
</div>
|
918 |
</div>
|
919 |
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
920 |
<div class="form-group">
|
921 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-share' ) ) ); ?>"><?php esc_html_e( 'Profit Share payout log entry template', 'mycred' ); ?></label>
|
922 |
<input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[log_sale]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-share' ) ) ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Required', 'mycred' ); ?>" value="<?php echo esc_attr( $type_setup['log_sale'] ); ?>" />
|
923 |
-
<p><span class="description"><?php echo
|
924 |
</div>
|
925 |
</div>
|
926 |
</div>
|
@@ -959,7 +967,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
|
|
959 |
'textarea_rows' => 10
|
960 |
) );
|
961 |
|
962 |
-
echo '<p>' .
|
963 |
|
964 |
?>
|
965 |
</div>
|
@@ -976,7 +984,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
|
|
976 |
'textarea_rows' => 10
|
977 |
) );
|
978 |
|
979 |
-
echo '<p>' .
|
980 |
|
981 |
?>
|
982 |
</div>
|
@@ -993,7 +1001,7 @@ if ( ! class_exists( 'myCRED_Sell_Content_Module' ) ) :
|
|
993 |
'textarea_rows' => 10
|
994 |
) );
|
995 |
|
996 |
-
echo '<p>' .
|
997 |
|
998 |
?>
|
999 |
</div>
|
@@ -1297,7 +1305,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>
|
@@ -1454,4 +1462,4 @@ if ( ! function_exists( 'mycred_load_sell_content_addon' ) ) :
|
|
1454 |
|
1455 |
}
|
1456 |
endif;
|
1457 |
-
add_filter( 'mycred_load_modules', 'mycred_load_sell_content_addon', 90, 2 );
|
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' ) ), esc_html( $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' ) ), esc_html( $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' ) ), esc_html( $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' ) ), esc_html( $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' ) ), esc_html( $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">
|
868 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-status' ) ) ); ?>"><?php esc_html_e( 'Default Status', 'mycred' ); ?></label>
|
869 |
<select name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[status]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-status' ) ) ); ?>" class="form-control">
|
870 |
+
<?php
|
871 |
+
$html = array(
|
872 |
+
'select' => array(),
|
873 |
+
'option' => array(
|
874 |
+
'value' => array(),
|
875 |
+
'selected' => array()
|
876 |
+
)
|
877 |
+
);
|
878 |
+
echo wp_kses( $this->enabled_options( $type_setup['status'] ), $html ); ?>
|
879 |
</select>
|
880 |
</div>
|
881 |
</div>
|
889 |
<div class="form-group">
|
890 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-expire' ) ) ); ?>"><?php esc_html_e( 'Expiration', 'mycred' ); ?></label>
|
891 |
<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'] ); ?>" />
|
892 |
+
<p><span class="description"><?php printf( esc_html( __( 'Option to automatically expire purchases after certain number of %s. Use zero to disable.', 'mycred' ) ), esc_html( $expiration_label ) ); ?></span></p>
|
893 |
</div>
|
894 |
</div>
|
895 |
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
|
896 |
<div class="form-group">
|
897 |
<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>
|
898 |
<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'] ); ?>" />
|
899 |
+
<p><span class="description"><?php printf( esc_html( __( 'Option to pay a percentage of each sale with the content author.', 'mycred' ) ), esc_html( $expiration_label ) ); ?></span></p>
|
900 |
</div>
|
901 |
</div>
|
902 |
</div>
|
905 |
<div class="form-group">
|
906 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-button' ) ) ); ?>"><?php esc_html_e( 'Button Label', 'mycred' ); ?></label>
|
907 |
<input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[button_label]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-button' ) ) ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Required', 'mycred' ); ?>" value="<?php echo esc_attr( $type_setup['button_label'] ); ?>" />
|
908 |
+
<p><span class="description"><?php echo wp_kses_post( $this->core->available_template_tags( array(), '%price%' ) ); ?></span></p>
|
909 |
</div>
|
910 |
</div>
|
911 |
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
|
921 |
<div class="form-group">
|
922 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-pay' ) ) ); ?>"><?php esc_html_e( 'Payment log entry template', 'mycred' ); ?></label>
|
923 |
<input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[log_payment]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-pay' ) ) ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Required', 'mycred' ); ?>" value="<?php echo esc_attr( $type_setup['log_payment'] ); ?>" />
|
924 |
+
<p><span class="description"><?php echo wp_kses_post( $this->core->available_template_tags( array( 'general', 'post' ) ) ); ?></span></p>
|
925 |
</div>
|
926 |
</div>
|
927 |
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
928 |
<div class="form-group">
|
929 |
<label for="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-share' ) ) ); ?>"><?php esc_html_e( 'Profit Share payout log entry template', 'mycred' ); ?></label>
|
930 |
<input type="text" name="<?php echo esc_attr( $this->field_name( array( 'post_type_setup' => $point_type ) ) ); ?>[log_sale]" id="<?php echo esc_attr( $this->field_id( array( 'post_type_setup' => $point_type . '-log-share' ) ) ); ?>" class="form-control" placeholder="<?php esc_attr_e( 'Required', 'mycred' ); ?>" value="<?php echo esc_attr( $type_setup['log_sale'] ); ?>" />
|
931 |
+
<p><span class="description"><?php echo wp_kses_post( $this->core->available_template_tags( array( 'general', 'post' ) ) ); ?></span></p>
|
932 |
</div>
|
933 |
</div>
|
934 |
</div>
|
967 |
'textarea_rows' => 10
|
968 |
) );
|
969 |
|
970 |
+
echo '<p>' . wp_kses_post( $this->core->available_template_tags( array( 'post' ), '%buy_button%' ) ) . '</p>';
|
971 |
|
972 |
?>
|
973 |
</div>
|
984 |
'textarea_rows' => 10
|
985 |
) );
|
986 |
|
987 |
+
echo '<p>' . wp_kses_post( $this->core->available_template_tags( array( 'post' ), '%price%' ) ) . '</p>';
|
988 |
|
989 |
?>
|
990 |
</div>
|
1001 |
'textarea_rows' => 10
|
1002 |
) );
|
1003 |
|
1004 |
+
echo '<p>' . wp_kses_post( $this->core->available_template_tags( array( 'post' ) ) ) . '</p>';
|
1005 |
|
1006 |
?>
|
1007 |
</div>
|
1305 |
<div class="row row-narrow">
|
1306 |
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
1307 |
<div class="form-group slim">
|
1308 |
+
<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' ) ), esc_html( $mycred->plural() ) ); ?></label>
|
1309 |
</div>
|
1310 |
</div>
|
1311 |
</div>
|
1462 |
|
1463 |
}
|
1464 |
endif;
|
1465 |
+
add_filter( 'mycred_load_modules', 'mycred_load_sell_content_addon', 90, 2 );
|
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’ 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’ 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.2
|
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.2';
|
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’ 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’ huh?', '2.4.5.2' ); }
|
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.2' );
|
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.2' );
|
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.1 =
|
379 |
- **FIX** - Php notices in Sell Content
|
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.2
|
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.2 =
|
379 |
+
- **FIX** - Sell Content enable/disable dropdown not working
|
380 |
+
|
381 |
= 2.4.5.1 =
|
382 |
- **FIX** - Php notices in Sell Content
|
383 |
|