Ultimate Member – User Profile & Membership Plugin - Version 2.0.42

Version Description

Download this release

Release Info

Developer nsinelnikov
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 2.0.42
Comparing to
See all releases

Code changes from version 2.0.41 to 2.0.42

includes/admin/core/class-admin-enqueue.php CHANGED
@@ -429,7 +429,6 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
429
* Load Gutenberg blocks js
430
*/
431
function load_gutenberg_shortcode_blocks() {
432
-
433
if ( ! function_exists( 'register_block_type' ) ) {
434
// Gutenberg is not active.
435
return;
@@ -441,6 +440,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
441
return;
442
}
443
444
wp_register_script( 'um-blocks-shortcode-js', $this->js_url . 'um-admin-blocks-shortcode.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), ultimatemember_version, true );
445
wp_set_script_translations( 'um-blocks-shortcode-js', 'ultimate-member' );
446
wp_enqueue_script( 'um-blocks-shortcode-js' );
@@ -499,7 +503,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Enqueue' ) ) {
499
* @return array
500
*/
501
function blocks_category( $categories, $post ) {
502
- return array_merge(
503
$categories,
504
array(
505
array(
429
* Load Gutenberg blocks js
430
*/
431
function load_gutenberg_shortcode_blocks() {
432
if ( ! function_exists( 'register_block_type' ) ) {
433
// Gutenberg is not active.
434
return;
440
return;
441
}
442
443
+ $enable_blocks = UM()->options()->get( 'enable_blocks' );
444
+ if ( empty( $enable_blocks ) ) {
445
+ return;
446
+ }
447
+
448
wp_register_script( 'um-blocks-shortcode-js', $this->js_url . 'um-admin-blocks-shortcode.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), ultimatemember_version, true );
449
wp_set_script_translations( 'um-blocks-shortcode-js', 'ultimate-member' );
450
wp_enqueue_script( 'um-blocks-shortcode-js' );
503
* @return array
504
*/
505
function blocks_category( $categories, $post ) {
506
+ $enable_blocks = UM()->options()->get( 'enable_blocks' );
507
+ if ( empty( $enable_blocks ) ) {
508
+ return $categories;
509
+ }
510
+
511
+ return array_merge(
512
$categories,
513
array(
514
array(
includes/admin/core/class-admin-settings.php CHANGED
@@ -1067,6 +1067,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
1067
'label' => __( 'Disable Cache User Profile', 'ultimate-member' ),
1068
'tooltip' => __( 'Check this box if you would like to disable Ultimate Member user\'s cache.', 'ultimate-member' ),
1069
),
1070
array(
1071
'id' => 'uninstall_on_delete',
1072
'type' => 'checkbox',
1067
'label' => __( 'Disable Cache User Profile', 'ultimate-member' ),
1068
'tooltip' => __( 'Check this box if you would like to disable Ultimate Member user\'s cache.', 'ultimate-member' ),
1069
),
1070
+ array(
1071
+ 'id' => 'enable_blocks',
1072
+ 'type' => 'checkbox',
1073
+ 'label' => __( 'Enable Gutenberg Blocks', 'ultimate-member' ),
1074
+ 'tooltip' => __( 'Check this box if you would like to use Ultimate Member blocks in Gutenberg editor. Important some themes have the conflicts with Gutenberg editor.', 'ultimate-member' ),
1075
+ ),
1076
array(
1077
'id' => 'uninstall_on_delete',
1078
'type' => 'checkbox',
includes/class-config.php CHANGED
@@ -510,6 +510,7 @@ if ( ! class_exists( 'um\Config' ) ) {
510
'category_page_accessible' => 1,
511
'restricted_access_message' => '',
512
'restricted_blocks' => 0,
513
'restricted_block_message' => '',
514
'enable_reset_password_limit' => 1,
515
'reset_password_limit_number' => 3,
510
'category_page_accessible' => 1,
511
'restricted_access_message' => '',
512
'restricted_blocks' => 0,
513
+ 'enable_blocks' => 0,
514
'restricted_block_message' => '',
515
'enable_reset_password_limit' => 1,
516
'reset_password_limit_number' => 3,
languages/ultimate-member-en_US.mo CHANGED
Binary file
languages/ultimate-member-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: Ultimate Member\n"
4
- "POT-Creation-Date: 2019-03-27 19:18+0200\n"
5
- "PO-Revision-Date: 2019-03-27 19:18+0200\n"
6
"Last-Translator: \n"
7
"Language-Team: \n"
8
"Language: en_US\n"
@@ -35,7 +35,7 @@ msgid "Docs"
35
msgstr ""
36
37
#: includes/admin/class-admin.php:308
38
- #: includes/admin/core/class-admin-settings.php:1162
39
msgid "Settings"
40
msgstr ""
41
@@ -282,29 +282,29 @@ msgstr ""
282
msgid "Are sure, maybe some settings not saved"
283
msgstr ""
284
285
- #: includes/admin/core/class-admin-enqueue.php:450
286
#: includes/core/class-builtin.php:693 includes/core/class-builtin.php:696
287
#: includes/core/class-builtin.php:1150 includes/core/class-builtin.php:1153
288
msgid "Password"
289
msgstr ""
290
291
- #: includes/admin/core/class-admin-enqueue.php:454
292
#: includes/core/class-account.php:104
293
msgid "Privacy"
294
msgstr ""
295
296
- #: includes/admin/core/class-admin-enqueue.php:458
297
#: includes/core/class-account.php:110
298
msgid "Notifications"
299
msgstr ""
300
301
- #: includes/admin/core/class-admin-enqueue.php:462
302
#: includes/admin/core/list-tables/roles-list-table.php:338
303
#: includes/admin/core/list-tables/roles-list-table.php:406
304
msgid "Delete"
305
msgstr ""
306
307
- #: includes/admin/core/class-admin-enqueue.php:507
308
msgid "Ultimate Member Blocks"
309
msgstr ""
310
@@ -1687,7 +1687,7 @@ msgid ""
1687
msgstr ""
1688
1689
#: includes/admin/core/class-admin-settings.php:436
1690
- #: includes/class-config.php:134 includes/class-config.php:744
1691
#: includes/core/class-account.php:92
1692
msgid "Account"
1693
msgstr ""
@@ -2377,143 +2377,153 @@ msgid ""
2377
msgstr ""
2378
2379
#: includes/admin/core/class-admin-settings.php:1073
2380
- msgid "Remove Data on Uninstall?"
2381
msgstr ""
2382
2383
#: includes/admin/core/class-admin-settings.php:1074
2384
msgid ""
2385
"Check this box if you would like Ultimate Member to completely remove all of "
2386
"its data when the plugin/extensions are deleted."
2387
msgstr ""
2388
2389
- #: includes/admin/core/class-admin-settings.php:1079
2390
msgid "Install Info"
2391
msgstr ""
2392
2393
- #: includes/admin/core/class-admin-settings.php:1193
2394
msgid "Ultimate Member - Settings"
2395
msgstr ""
2396
2397
- #: includes/admin/core/class-admin-settings.php:1332
2398
msgid "Save Changes"
2399
msgstr ""
2400
2401
- #: includes/admin/core/class-admin-settings.php:1775
2402
msgid "Subject Line"
2403
msgstr ""
2404
2405
- #: includes/admin/core/class-admin-settings.php:1777
2406
msgid "This is the subject line of the e-mail"
2407
msgstr ""
2408
2409
- #: includes/admin/core/class-admin-settings.php:1782
2410
msgid "Message Body"
2411
msgstr ""
2412
2413
- #: includes/admin/core/class-admin-settings.php:1784
2414
msgid "This is the content of the e-mail"
2415
msgstr ""
2416
2417
- #: includes/admin/core/class-admin-settings.php:1834
2418
- #: includes/admin/core/class-admin-settings.php:1932
2419
#, php-format
2420
msgid ""
2421
"Your license key expired on %s. Please <a href=\"%s\" target=\"_blank"
2422
"\">renew your license key</a>."
2423
msgstr ""
2424
2425
- #: includes/admin/core/class-admin-settings.php:1847
2426
- #: includes/admin/core/class-admin-settings.php:1945
2427
#, php-format
2428
msgid ""
2429
"Your license key has been disabled. Please <a href=\"%s\" target=\"_blank"
2430
"\">contact support</a> for more information."
2431
msgstr ""
2432
2433
- #: includes/admin/core/class-admin-settings.php:1859
2434
- #: includes/admin/core/class-admin-settings.php:1957
2435
#, php-format
2436
msgid ""
2437
"Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
2438
"page</a> and verify it."
2439
msgstr ""
2440
2441
- #: includes/admin/core/class-admin-settings.php:1872
2442
- #: includes/admin/core/class-admin-settings.php:1970
2443
#, php-format
2444
msgid ""
2445
"Your %s is not active for this URL. Please <a href=\"%s\" target=\"_blank"
2446
"\">visit your account page</a> to manage your license key URLs."
2447
msgstr ""
2448
2449
- #: includes/admin/core/class-admin-settings.php:1884
2450
- #: includes/admin/core/class-admin-settings.php:1982
2451
#, php-format
2452
msgid "This appears to be an invalid license key for %s."
2453
msgstr ""
2454
2455
- #: includes/admin/core/class-admin-settings.php:1893
2456
- #: includes/admin/core/class-admin-settings.php:1991
2457
#, php-format
2458
msgid ""
2459
"Your license key has reached its activation limit. <a href=\"%s\">View "
2460
"possible upgrades</a> now."
2461
msgstr ""
2462
2463
- #: includes/admin/core/class-admin-settings.php:1902
2464
- #: includes/admin/core/class-admin-settings.php:2000
2465
msgid ""
2466
"The key you entered belongs to a bundle, please use the product specific "
2467
"license key."
2468
msgstr ""
2469
2470
- #: includes/admin/core/class-admin-settings.php:1910
2471
- #: includes/admin/core/class-admin-settings.php:1918
2472
msgid "unknown_error"
2473
msgstr ""
2474
2475
- #: includes/admin/core/class-admin-settings.php:1911
2476
- #: includes/admin/core/class-admin-settings.php:1919
2477
#, php-format
2478
msgid ""
2479
"There was an error with this license key: %s. Please <a href=\"%s\">contact "
2480
"our support team</a>."
2481
msgstr ""
2482
2483
- #: includes/admin/core/class-admin-settings.php:2015
2484
msgid "License key never expires."
2485
msgstr ""
2486
2487
- #: includes/admin/core/class-admin-settings.php:2022
2488
#, php-format
2489
msgid ""
2490
"Your license key expires soon! It expires on %s. <a href=\"%s\" target="
2491
"\"_blank\">Renew your license key</a>."
2492
msgstr ""
2493
2494
- #: includes/admin/core/class-admin-settings.php:2032
2495
#, php-format
2496
msgid "Your license key expires on %s."
2497
msgstr ""
2498
2499
- #: includes/admin/core/class-admin-settings.php:2050
2500
#, php-format
2501
msgid "To receive updates, please enter your valid %s license key."
2502
msgstr ""
2503
2504
- #: includes/admin/core/class-admin-settings.php:2074
2505
msgid "Clear License"
2506
msgstr ""
2507
2508
- #: includes/admin/core/class-admin-settings.php:2076
2509
msgid "Activate"
2510
msgstr ""
2511
2512
- #: includes/admin/core/class-admin-settings.php:2078
2513
msgid "Re-Activate"
2514
msgstr ""
2515
2516
- #: includes/admin/core/class-admin-settings.php:2130
2517
msgid ""
2518
"To copy the Install info, click below then press Ctrl + C (PC) or Cmd + C "
2519
"(Mac)."
@@ -3902,31 +3912,31 @@ msgstr ""
3902
msgid "Check All"
3903
msgstr ""
3904
3905
- #: includes/class-config.php:129 includes/class-config.php:739
3906
msgid "User"
3907
msgstr ""
3908
3909
#: includes/class-config.php:130 includes/class-config.php:235
3910
- #: includes/class-config.php:241 includes/class-config.php:740
3911
msgid "Login"
3912
msgstr ""
3913
3914
#: includes/class-config.php:131 includes/class-config.php:233
3915
- #: includes/class-config.php:245 includes/class-config.php:741
3916
msgid "Register"
3917
msgstr ""
3918
3919
- #: includes/class-config.php:132 includes/class-config.php:742
3920
msgid "Members"
3921
msgstr ""
3922
3923
- #: includes/class-config.php:133 includes/class-config.php:743
3924
#: includes/core/um-actions-profile.php:1080
3925
#: includes/core/um-actions-user.php:15
3926
msgid "Logout"
3927
msgstr ""
3928
3929
- #: includes/class-config.php:135 includes/class-config.php:745
3930
msgid "Password Reset"
3931
msgstr ""
3932
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: Ultimate Member\n"
4
+ "POT-Creation-Date: 2019-03-28 14:53+0200\n"
5
+ "PO-Revision-Date: 2019-03-28 14:53+0200\n"
6
"Last-Translator: \n"
7
"Language-Team: \n"
8
"Language: en_US\n"
35
msgstr ""
36
37
#: includes/admin/class-admin.php:308
38
+ #: includes/admin/core/class-admin-settings.php:1168
39
msgid "Settings"
40
msgstr ""
41
282
msgid "Are sure, maybe some settings not saved"
283
msgstr ""
284
285
+ #: includes/admin/core/class-admin-enqueue.php:454
286
#: includes/core/class-builtin.php:693 includes/core/class-builtin.php:696
287
#: includes/core/class-builtin.php:1150 includes/core/class-builtin.php:1153
288
msgid "Password"
289
msgstr ""
290
291
+ #: includes/admin/core/class-admin-enqueue.php:458
292
#: includes/core/class-account.php:104
293
msgid "Privacy"
294
msgstr ""
295
296
+ #: includes/admin/core/class-admin-enqueue.php:462
297
#: includes/core/class-account.php:110
298
msgid "Notifications"
299
msgstr ""
300
301
+ #: includes/admin/core/class-admin-enqueue.php:466
302
#: includes/admin/core/list-tables/roles-list-table.php:338
303
#: includes/admin/core/list-tables/roles-list-table.php:406
304
msgid "Delete"
305
msgstr ""
306
307
+ #: includes/admin/core/class-admin-enqueue.php:516
308
msgid "Ultimate Member Blocks"
309
msgstr ""
310
1687
msgstr ""
1688
1689
#: includes/admin/core/class-admin-settings.php:436
1690
+ #: includes/class-config.php:134 includes/class-config.php:745
1691
#: includes/core/class-account.php:92
1692
msgid "Account"
1693
msgstr ""
2377
msgstr ""
2378
2379
#: includes/admin/core/class-admin-settings.php:1073
2380
+ msgid "Enable Gutenberg Blocks"
2381
msgstr ""
2382
2383
#: includes/admin/core/class-admin-settings.php:1074
2384
msgid ""
2385
+ "Check this box if you would like to use Ultimate Member blocks in Gutenberg "
2386
+ "editor. Important some themes have the conflicts with Gutenberg editor."
2387
+ msgstr ""
2388
+
2389
+ #: includes/admin/core/class-admin-settings.php:1079
2390
+ msgid "Remove Data on Uninstall?"
2391
+ msgstr ""
2392
+
2393
+ #: includes/admin/core/class-admin-settings.php:1080
2394
+ msgid ""
2395
"Check this box if you would like Ultimate Member to completely remove all of "
2396
"its data when the plugin/extensions are deleted."
2397
msgstr ""
2398
2399
+ #: includes/admin/core/class-admin-settings.php:1085
2400
msgid "Install Info"
2401
msgstr ""
2402
2403
+ #: includes/admin/core/class-admin-settings.php:1199
2404
msgid "Ultimate Member - Settings"
2405
msgstr ""
2406
2407
+ #: includes/admin/core/class-admin-settings.php:1338
2408
msgid "Save Changes"
2409
msgstr ""
2410
2411
+ #: includes/admin/core/class-admin-settings.php:1781
2412
msgid "Subject Line"
2413
msgstr ""
2414
2415
+ #: includes/admin/core/class-admin-settings.php:1783
2416
msgid "This is the subject line of the e-mail"
2417
msgstr ""
2418
2419
+ #: includes/admin/core/class-admin-settings.php:1788
2420
msgid "Message Body"
2421
msgstr ""
2422
2423
+ #: includes/admin/core/class-admin-settings.php:1790
2424
msgid "This is the content of the e-mail"
2425
msgstr ""
2426
2427
+ #: includes/admin/core/class-admin-settings.php:1840
2428
+ #: includes/admin/core/class-admin-settings.php:1938
2429
#, php-format
2430
msgid ""
2431
"Your license key expired on %s. Please <a href=\"%s\" target=\"_blank"
2432
"\">renew your license key</a>."
2433
msgstr ""
2434
2435
+ #: includes/admin/core/class-admin-settings.php:1853
2436
+ #: includes/admin/core/class-admin-settings.php:1951
2437
#, php-format
2438
msgid ""
2439
"Your license key has been disabled. Please <a href=\"%s\" target=\"_blank"
2440
"\">contact support</a> for more information."
2441
msgstr ""
2442
2443
+ #: includes/admin/core/class-admin-settings.php:1865
2444
+ #: includes/admin/core/class-admin-settings.php:1963
2445
#, php-format
2446
msgid ""
2447
"Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
2448
"page</a> and verify it."
2449
msgstr ""
2450
2451
+ #: includes/admin/core/class-admin-settings.php:1878
2452
+ #: includes/admin/core/class-admin-settings.php:1976
2453
#, php-format
2454
msgid ""
2455
"Your %s is not active for this URL. Please <a href=\"%s\" target=\"_blank"
2456
"\">visit your account page</a> to manage your license key URLs."
2457
msgstr ""
2458
2459
+ #: includes/admin/core/class-admin-settings.php:1890
2460
+ #: includes/admin/core/class-admin-settings.php:1988
2461
#, php-format
2462
msgid "This appears to be an invalid license key for %s."
2463
msgstr ""
2464
2465
+ #: includes/admin/core/class-admin-settings.php:1899
2466
+ #: includes/admin/core/class-admin-settings.php:1997
2467
#, php-format
2468
msgid ""
2469
"Your license key has reached its activation limit. <a href=\"%s\">View "
2470
"possible upgrades</a> now."
2471
msgstr ""
2472
2473
+ #: includes/admin/core/class-admin-settings.php:1908
2474
+ #: includes/admin/core/class-admin-settings.php:2006
2475
msgid ""
2476
"The key you entered belongs to a bundle, please use the product specific "
2477
"license key."
2478
msgstr ""
2479
2480
+ #: includes/admin/core/class-admin-settings.php:1916
2481
+ #: includes/admin/core/class-admin-settings.php:1924
2482
msgid "unknown_error"
2483
msgstr ""
2484
2485
+ #: includes/admin/core/class-admin-settings.php:1917
2486
+ #: includes/admin/core/class-admin-settings.php:1925
2487
#, php-format
2488
msgid ""
2489
"There was an error with this license key: %s. Please <a href=\"%s\">contact "
2490
"our support team</a>."
2491
msgstr ""
2492
2493
+ #: includes/admin/core/class-admin-settings.php:2021
2494
msgid "License key never expires."
2495
msgstr ""
2496
2497
+ #: includes/admin/core/class-admin-settings.php:2028
2498
#, php-format
2499
msgid ""
2500
"Your license key expires soon! It expires on %s. <a href=\"%s\" target="
2501
"\"_blank\">Renew your license key</a>."
2502
msgstr ""
2503
2504
+ #: includes/admin/core/class-admin-settings.php:2038
2505
#, php-format
2506
msgid "Your license key expires on %s."
2507
msgstr ""
2508
2509
+ #: includes/admin/core/class-admin-settings.php:2056
2510
#, php-format
2511
msgid "To receive updates, please enter your valid %s license key."
2512
msgstr ""
2513
2514
+ #: includes/admin/core/class-admin-settings.php:2080
2515
msgid "Clear License"
2516
msgstr ""
2517
2518
+ #: includes/admin/core/class-admin-settings.php:2082
2519
msgid "Activate"
2520
msgstr ""
2521
2522
+ #: includes/admin/core/class-admin-settings.php:2084
2523
msgid "Re-Activate"
2524
msgstr ""
2525
2526
+ #: includes/admin/core/class-admin-settings.php:2136
2527
msgid ""
2528
"To copy the Install info, click below then press Ctrl + C (PC) or Cmd + C "
2529
"(Mac)."
3912
msgid "Check All"
3913
msgstr ""
3914
3915
+ #: includes/class-config.php:129 includes/class-config.php:740
3916
msgid "User"
3917
msgstr ""
3918
3919
#: includes/class-config.php:130 includes/class-config.php:235
3920
+ #: includes/class-config.php:241 includes/class-config.php:741
3921
msgid "Login"
3922
msgstr ""
3923
3924
#: includes/class-config.php:131 includes/class-config.php:233
3925
+ #: includes/class-config.php:245 includes/class-config.php:742
3926
msgid "Register"
3927
msgstr ""
3928
3929
+ #: includes/class-config.php:132 includes/class-config.php:743
3930
msgid "Members"
3931
msgstr ""
3932
3933
+ #: includes/class-config.php:133 includes/class-config.php:744
3934
#: includes/core/um-actions-profile.php:1080
3935
#: includes/core/um-actions-user.php:15
3936
msgid "Logout"
3937
msgstr ""
3938
3939
+ #: includes/class-config.php:135 includes/class-config.php:746
3940
msgid "Password Reset"
3941
msgstr ""
3942
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link:
6
Tags: community, member, membership, user-profile, user-registration
7
Requires at least: 4.7
8
Tested up to: 5.1
9
- Stable tag: 2.0.41
10
License: GNU Version 2 or Any Later Version
11
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12
@@ -133,6 +133,14 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
133
134
= Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin =
135
136
= 2.0.41: March 27, 2019 =
137
138
* Enhancements:
6
Tags: community, member, membership, user-profile, user-registration
7
Requires at least: 4.7
8
Tested up to: 5.1
9
+ Stable tag: 2.0.42
10
License: GNU Version 2 or Any Later Version
11
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12
133
134
= Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin =
135
136
+ = 2.0.42: March 28, 2019 =
137
+
138
+ * Enhancements:
139
+ - Added option for enable/disable Gutenberg blocks
140
+
141
+ * Bugfixes:
142
+ - Fixed conflicts with themes, which not support custom Gutenberg blocks via the option
143
+
144
= 2.0.41: March 27, 2019 =
145
146
* Enhancements:
ultimate-member.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Ultimate Member
4
Plugin URI: http://ultimatemember.com/
5
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
- Version: 2.0.41
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
Text Domain: ultimate-member
3
Plugin Name: Ultimate Member
4
Plugin URI: http://ultimatemember.com/
5
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
+ Version: 2.0.42
7
Author: Ultimate Member
8
Author URI: http://ultimatemember.com/
9
Text Domain: ultimate-member