Version Description
Bug fixes.
Download this release
Release Info
Developer | wpexpertsio |
Plugin | myCRED |
Version | 2.4.8.1 |
Comparing to | |
See all releases |
Code changes from version 2.4.8 to 2.4.8.1
- addons/cash-creds/includes/cashcred-shortcodes.php +0 -5
- mycred.php +6 -6
- readme.txt +9 -3
addons/cash-creds/includes/cashcred-shortcodes.php
CHANGED
@@ -40,8 +40,6 @@ if ( ! function_exists( 'mycred_render_cashcred' ) ) :
|
|
40 |
if ( empty( $point_types ) ) return $excluded;
|
41 |
|
42 |
$point_types = cashcred_is_user_have_balances( $point_types, $user_id );
|
43 |
-
|
44 |
-
$users_balance = $mycred->get_users_balance( $user_id, $types );
|
45 |
|
46 |
//Insufficient points for withdrawal.
|
47 |
if ( empty( $point_types ) ) return $insufficient;
|
@@ -198,9 +196,6 @@ if ( ! function_exists( 'mycred_render_cashcred' ) ) :
|
|
198 |
<?php
|
199 |
$amount = ! empty( $amount ) ? floatval( $amount ) : 0;
|
200 |
|
201 |
-
if($amount > $users_balance) {
|
202 |
-
return;
|
203 |
-
}
|
204 |
?>
|
205 |
<input type="number" id="withdraw_points" name="points" class="form-control" placeholder="0" value="<?php echo ! empty($amount) ? esc_attr( $amount ) : 0; ?>" required />
|
206 |
<p class="cashcred-min"><?php echo esc_html__('Minimum Amount: ', 'mycred');?><span></span></p>
|
40 |
if ( empty( $point_types ) ) return $excluded;
|
41 |
|
42 |
$point_types = cashcred_is_user_have_balances( $point_types, $user_id );
|
|
|
|
|
43 |
|
44 |
//Insufficient points for withdrawal.
|
45 |
if ( empty( $point_types ) ) return $insufficient;
|
196 |
<?php
|
197 |
$amount = ! empty( $amount ) ? floatval( $amount ) : 0;
|
198 |
|
|
|
|
|
|
|
199 |
?>
|
200 |
<input type="number" id="withdraw_points" name="points" class="form-control" placeholder="0" value="<?php echo ! empty($amount) ? esc_attr( $amount ) : 0; ?>" required />
|
201 |
<p class="cashcred-min"><?php echo esc_html__('Minimum Amount: ', 'mycred');?><span></span></p>
|
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.8
|
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.8';
|
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.8' ); }
|
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.8' ); }
|
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: ' . esc_html( $name ) . ' as it is already defined somewhere else!', '2.4.8' );
|
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 ' . esc_html( $required_file ) . ' not found.', '2.4.8' );
|
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.8.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.8.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’ huh?', '2.4.8.1' ); }
|
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.8.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: ' . esc_html( $name ) . ' as it is already defined somewhere else!', '2.4.8.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 ' . esc_html( $required_file ) . ' not found.', '2.4.8.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: 6.0
|
6 |
-
Stable tag: 2.4.8
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -268,7 +268,7 @@ myCred is integrated with a large number of popular learning management systems,
|
|
268 |
|
269 |
= Documentation =
|
270 |
|
271 |
-
You can find extensive [documentation](http://codex.mycred.me/) on myCred related add-ons in the myCred Codex. You can also find a list of [frequently asked](https://mycred.me/
|
272 |
|
273 |
|
274 |
= Customizations =
|
@@ -303,7 +303,7 @@ If you're facing a problem that is not described in our technical documentation,
|
|
303 |
|
304 |
== Frequently Asked Questions ==
|
305 |
|
306 |
-
You can find a list of [frequently asked questions](https://mycred.me/
|
307 |
|
308 |
== Screenshots ==
|
309 |
|
@@ -316,6 +316,9 @@ You can find a list of [frequently asked questions](https://mycred.me/about/faq/
|
|
316 |
|
317 |
== Upgrade Notice ==
|
318 |
|
|
|
|
|
|
|
319 |
= 2.4.8 =
|
320 |
Bug fixes.
|
321 |
|
@@ -411,6 +414,9 @@ The banking module have been replaced by Central deposite module, and interest r
|
|
411 |
|
412 |
== Changelog ==
|
413 |
|
|
|
|
|
|
|
414 |
= 2.4.8 =
|
415 |
- **NEW** - Introduced new action hook mycred_cashcred_before_bank_form.
|
416 |
- **FIX** - Fixed PHP errors.
|
3 |
Tags: badges, gamification, loyalty, points, rewards
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 2.4.8.1
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
268 |
|
269 |
= Documentation =
|
270 |
|
271 |
+
You can find extensive [documentation](http://codex.mycred.me/) on myCred related add-ons in the myCred Codex. You can also find a list of [frequently asked](https://mycred.me/faq/) questions on the myCred website.
|
272 |
|
273 |
|
274 |
= Customizations =
|
303 |
|
304 |
== Frequently Asked Questions ==
|
305 |
|
306 |
+
You can find a list of [frequently asked questions](https://mycred.me/faq/) on the myCRED website.
|
307 |
|
308 |
== Screenshots ==
|
309 |
|
316 |
|
317 |
== Upgrade Notice ==
|
318 |
|
319 |
+
= 2.4.8.1 =
|
320 |
+
Bug fixes.
|
321 |
+
|
322 |
= 2.4.8 =
|
323 |
Bug fixes.
|
324 |
|
414 |
|
415 |
== Changelog ==
|
416 |
|
417 |
+
= 2.4.8.1 =
|
418 |
+
- **FIX** - Fixed erros in mycred_cashcred shortcode.
|
419 |
+
|
420 |
= 2.4.8 =
|
421 |
- **NEW** - Introduced new action hook mycred_cashcred_before_bank_form.
|
422 |
- **FIX** - Fixed PHP errors.
|