Changeset 3266705
- Timestamp:
- 04/04/2025 05:08:40 AM (11 months ago)
- Location:
- advanced-members/trunk
- Files:
-
- 1 added
- 14 edited
-
acf/fields/class-user-password.php (modified) (1 diff)
-
admin/class-admin-options.php (modified) (2 diffs)
-
admin/class-admin.php (modified) (1 diff)
-
admin/views/html-dashboard-page.php (modified) (1 diff)
-
admin/views/html-options-page.php (modified) (4 diffs)
-
advanced-members.php (modified) (3 diffs)
-
build/assets/js/password-strength.asset.php (modified) (1 diff)
-
build/assets/js/password-strength.js (modified) (1 diff)
-
core/class-log.php (modified) (8 diffs)
-
core/class-options.php (modified) (5 diffs)
-
core/class-rest.php (modified) (1 diff)
-
core/modules/class-restriction.php (added)
-
languages/advanced-members.pot (modified) (18 diffs)
-
readme.txt (modified) (2 diffs)
-
src/assets/js/password-strength.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-members/trunk/acf/fields/class-user-password.php
r3258867 r3266705 134 134 if ( isset( $field['password_strength'] ) ) { 135 135 echo '<div class="pass-strength-result weak"></div>'; 136 echo '<div class="pass-strength-checker">'; 136 137 echo '<input type="hidden" value="' . esc_attr( $field['password_strength'] ) . '" name="required-strength"/>'; 137 138 echo '<input class="password-strength" type="hidden" value="" name="password-strength"/>'; 139 echo '</div>'; 138 140 } 139 141 -
advanced-members/trunk/admin/class-admin-options.php
r3263166 r3266705 473 473 if ( amem()->options->getmodule('_use_redirects') ) { 474 474 $option_tabs['redirects'] = __( 'Redirects', 'advanced-members' ); 475 } 476 if ( amem()->is_dev() && amem()->options->getmodule('_use_restriction') ) { 477 $option_tabs['restriction'] = __( 'Content Restriction', 'advanced-members' ); 475 478 } 476 479 if ( amem()->options->getmodule('_use_adminbar') ) { … … 595 598 596 599 function register_core_page_option_button() { 597 foreach( array_keys(amem()->config-> core_pages) as $page_key ) {600 foreach( array_keys(amem()->config->get_core_pages() ) as $page_key ) { 598 601 $name = amem()->options->get_core_page_id($page_key); 599 602 // $name = "amem_options[{$name}]"; -
advanced-members/trunk/admin/class-admin.php
r3258867 r3266705 161 161 162 162 public function add_display_post_states( $post_states, $post ) { 163 foreach ( amem()->config-> core_pagesas $page_key => $page_value ) {163 foreach ( amem()->config->get_core_pages() as $page_key => $page_value ) { 164 164 $page_id = amem()->options->get( amem()->options->get_core_page_id($page_key) ); 165 165 if ( $page_id == $post->ID ) { -
advanced-members/trunk/admin/views/html-dashboard-page.php
r3258867 r3266705 70 70 ); 71 71 } 72 73 if ( amem()->is_dev() ) { 74 acf_render_field_wrap( 75 array( 76 'type' => 'true_false', 77 'name' => '_use_restriction', 78 'key' => '_use_restriction', 79 'prefix' => 'amem_modules', 80 'value' => amem()->options->getmodule('_use_restriction'), 81 'label' => __( 'Content Restriction', 'advanced-members' ), 82 'instructions' => __( 'Control content access based on login status and User Roles.', 'advanced-members' ), 83 'default' => true, 84 'default_value' => 0, 85 'ui' => 1, 86 ), 87 'div' 88 ); 89 } 90 72 91 acf_render_field_wrap( 73 92 array( -
advanced-members/trunk/admin/views/html-options-page.php
r3263166 r3266705 125 125 case 'general': 126 126 echo '<h3>' . esc_html__( 'Advanced Members for ACF Pages', 'advanced-members' ) . '</h3>'; 127 foreach (amem()->config-> core_pagesas $page_key => $page_value) {127 foreach (amem()->config->get_core_pages() as $page_key => $page_value) { 128 128 $page_id = amem()->options->get_core_page_id($page_key); 129 129 // if ( $page_id && $page_key == 'account' ) { … … 407 407 'redirections' => $redirections, 408 408 'choices' => $choices, 409 'table_wrap_class' => amem()->options->get('r oles/apply_roles_redirection', true) ? '' : ' acf-hidden'409 'table_wrap_class' => amem()->options->get('redirect/apply_roles_redirection', true) ? '' : ' acf-hidden' 410 410 ); 411 411 amem_get_view( __DIR__ . '/html-options-roles-redirection.php', $view_args ); … … 492 492 493 493 echo '<h3>' . esc_html__( 'Avatar Settings', 'advanced-members' ) . '</h3>'; 494 echo '<div class="amem-settings- role-avatar">' . PHP_EOL;494 echo '<div class="amem-settings-avatar">' . PHP_EOL; 495 495 acf_render_field_wrap( 496 496 [ … … 564 564 565 565 break; 566 567 case 'restriction': 568 569 $choices = [ 570 '' => __( 'Use global rule', 'advanced-members' ), 571 'show' => __( 'Show', 'advanced-members' ), 572 'hide' => __( 'Hide', 'advanced-members' ), 573 ]; 574 575 $post_types = get_post_types( ['public' => true], 'object' ); 576 foreach( $post_types as $k => $obj ) { 577 $post_types[$k] = $obj->label; 578 } 579 580 echo '<div class="amem-settings-restriction">' . PHP_EOL; 581 582 echo '<h3>' . esc_html__( 'Enable the "Content Restriction" settings for post types', 'advanced-members' ) . '</h3>'; 583 584 acf_render_field_wrap( 585 [ 586 'type' => 'checkbox', 587 'name' => 'post_types', 588 'key' => 'post_types', 589 'prefix' => 'amem_options[restriction]', 590 'value' => amem()->options->get('restriction/post_types'), 591 // 'label' => __( 'Enable the "Content Restriction" settings for post types', 'advanced-members' ), 592 // 'instructions' => __( 'Select post types to control content restriction.', 'advanced-members' ), 593 'choices' => $post_types, 594 'default' => true, 595 'default_value' => ['page'], 596 'multiple' => 1, 597 'layout' => 'vertical', 598 ], 599 'div', 600 'field' 601 ); 602 603 echo '<h3>' . esc_html__( 'Content Restriction Methods', 'advanced-members' ) . '</h3>'; 604 605 acf_render_field_wrap( 606 array( 607 'type' => 'true_false', 608 'name' => 'redirect_login', 609 'key' => 'redirect_login', 610 'prefix' => 'amem_options[restriction][methods]', 611 'value' => 1, //amem()->options->get('restriction/methods/redirect_login'), 612 'label' => __( 'Redirect to the Login Page', 'advanced-members' ), 613 'readonly' => 1, 614 'default' => true, 615 'default_value' => 1, 616 'ui' => 1, 617 'wrapper' => [ 618 'class' => 'amem-readonly', 619 ], 620 ), 621 'div' 622 ); 623 624 acf_render_field_wrap( 625 array( 626 'type' => 'true_false', 627 'name' => 'show_message', 628 'key' => 'show_message', 629 'prefix' => 'amem_options[restriction][methods]', 630 'value' => amem()->options->get('restriction/methods/show_message'), 631 'label' => __( 'Show the Default Restriction Message', 'advanced-members' ), 632 'default' => true, 633 'default_value' => 0, 634 'ui' => 1, 635 ), 636 'div' 637 ); 638 639 acf_render_field_wrap( 640 array( 641 'type' => 'true_false', 642 'name' => 'show_excerpt_message', 643 'key' => 'show_excerpt_message', 644 'prefix' => 'amem_options[restriction][methods]', 645 'value' => amem()->options->get('restriction/methods/show_excerpt_message'), 646 'label' => __( 'Show the Excerpt and Restriction Message', 'advanced-members' ), 647 'default' => true, 648 'default_value' => 0, 649 'ui' => 1, 650 ), 651 'div' 652 ); 653 654 acf_render_field_wrap( 655 array( 656 'type' => 'wysiwyg', 657 'name' => 'message', 658 'key' => 'message', 659 'prefix' => 'amem_options[restriction]', 660 'label' => __( 'Default Restriction Message', 'advanced-members' ), 661 'value' => amem()->options->get('restriction/message'), 662 'default' => true, 663 'default_value' => __( 'We\'re sorry, but you don\'t currently have access to this content.', 'advanced-members' ), 664 'placeholder' => __( 'We\'re sorry, but you don\'t currently have access to this content.', 'advanced-members' ), 665 ), 666 'div', 667 'field' 668 ); 669 670 echo '</div>'; 671 break; 566 672 } 567 673 -
advanced-members/trunk/advanced-members.php
r3263166 r3266705 4 4 * Plugin URI: https://danbilabs.com/ 5 5 * Description: Lightweight & All-in-One Membership Plugin for ACF Fans. 6 * Version: 0.9.1 46 * Version: 0.9.15 7 7 * Author: DanbiLabs 8 8 * Author URI: https://danbilabs.com/ … … 45 45 46 46 /** @var string version */ 47 public static $version = '0.9.1 4';47 public static $version = '0.9.15'; 48 48 49 49 /** @var string version */ … … 314 314 amem_include( 'core/modules/class-adminbar.php' ); 315 315 316 if ( $this->is_dev() && amem()->options->getmodule('_use_restriction') ) 317 amem_include( 'core/modules/class-restriction.php' ); 318 316 319 if ( $this->is_dev() && amem()->options->getmodule('_use_avatar') ) 317 320 amem_include( 'core/modules/class-avatar.php' ); -
advanced-members/trunk/build/assets/js/password-strength.asset.php
r3258867 r3266705 1 <?php return array('dependencies' => array(), 'version' => ' c4947a852b99fc181c72');1 <?php return array('dependencies' => array(), 'version' => '8e603171e43c899f622f'); -
advanced-members/trunk/build/assets/js/password-strength.js
r3258867 r3266705 1 jQuery(document).ready((function(s){s("body").on("keyup",".amem-password-main input",(function(a){!function(s,a,t){switch(s=s.val(),a.removeClass("weak short bad good strong"),t=wp.passwordStrength.meter(s,t,s),a. siblings("input.password-strength").val(t),t){case 2:a.addClass("bad").html(pwsL10n.bad);break;case 3:a.addClass("good").html(pwsL10n.good);break;case 4:a.addClass("strong").html(pwsL10n.strong);break;case 5:a.addClass("short").html(pwsL10n.mismatch);break;default:a.addClass("short").html(pwsL10n.short)}}(s(this),s(this).parents(".acf-input-wrap").siblings(".pass-strength-result"),[])})),s("body").on("keyup",".acf-field-user-password-confirm input",(function(a){a=s(this).parents(".acf-field-user-password-confirm").siblings(".amem-password-main").find("input[type=password]"),function(s,a,t){a=a.val(),s=s.val(),t.removeClass("weak strong short"),a==s?t.addClass("strong").html(acf.__("Passwords Match")):t.addClass("short").html(pwsL10n.mismatch)}(s(this),a,s(this).parents(".acf-input-wrap").siblings(".pass-strength-result"))}))}));1 jQuery(document).ready((function(s){s("body").on("keyup",".amem-password-main input",(function(a){!function(s,a,t){switch(s=s.val(),a.removeClass("weak short bad good strong"),t=wp.passwordStrength.meter(s,t,s),a.closest(".amem-input").find("input.password-strength").val(t),t){case 2:a.addClass("bad").html(pwsL10n.bad);break;case 3:a.addClass("good").html(pwsL10n.good);break;case 4:a.addClass("strong").html(pwsL10n.strong);break;case 5:a.addClass("short").html(pwsL10n.mismatch);break;case 1:a.addClass("short").html(pwsL10n.short);break;default:a.addClass("short").html(pwsL10n.unknown)}}(s(this),s(this).closest(".amem-input").find(".pass-strength-result"),[])})),s("body").on("keyup",".acf-field-user-password-confirm input",(function(a){a=s(this).parents(".acf-field-user-password-confirm").siblings(".amem-password-main").find("input[type=password]"),function(s,a,t){a=a.val(),s=s.val(),t.removeClass("weak strong short"),a==s?t.addClass("strong").html(acf.__("Passwords Match")):t.addClass("short").html(pwsL10n.mismatch)}(s(this),a,s(this).parents(".acf-input-wrap").siblings(".pass-strength-result"))}))})); -
advanced-members/trunk/core/class-log.php
r3258965 r3266705 47 47 protected $dir = ''; 48 48 49 protected $search = ''; 50 51 protected $auto_archive = false; 52 53 protected $enabled = true; 54 49 55 /** 50 56 * Class constructor … … 65 71 } 66 72 73 $this->search = dirname($this->file_path) . DIRECTORY_SEPARATOR . "{$this->name}*"; 74 67 75 $this->archive(); 68 76 } … … 75 83 public function add( $text ) { 76 84 do_action( "amem/{$this->name}/log_add", $text ); 85 86 if ( !$this->enabled ) 87 return; 77 88 78 89 if ( function_exists('is_wp_error') && is_wp_error($text) ) { … … 102 113 if ( is_file( $this->file_path ) && filesize( $this->file_path ) > $this->max_filesize ) { 103 114 $dir = dirname( $this->file_path ); 104 $datetime = gmdate( 'Y-m-d H-i' ); 105 if ( is_writable( $dir ) && copy( $this->file_path, "$dir/$this->name $datetime.log" ) ) { 115 $datetime = gmdate( 'YmdHi' ); 116 $backup = "{$dir}/{$this->name}-{$datetime}.log"; 117 if ( is_writable( $dir ) && copy( $this->file_path, $backup ) ) { 106 118 $this->clear(); 119 $this->backup( $backup, true ); 107 120 } 108 121 } 122 } 123 124 public static function backup( $file, $remove = false ) { 125 if ( !class_exists( 'PclZip' ) ) 126 require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php'); 127 128 $archive = new \PclZip($file . '.zip'); 129 $v_list = $archive->add($file, PCLZIP_OPT_REMOVE_ALL_PATH, PCLZIP_OPT_ADD_TEMP_FILE_ON, PCLZIP_CB_PRE_ADD, 'amem/log/pclzip/pre_add'); 130 131 if ($v_list == 0) { 132 return false; 133 } 134 135 if ( $remove ) 136 unlink( $file ); 137 138 return true; 109 139 } 110 140 … … 116 146 public function clear_archive() { 117 147 $deleted = 0; 118 $files = glob( amem()->files->upload_basedir . "{$this->name} *");148 $files = glob( $this->search ); 119 149 120 150 foreach ( (array) $files as $file ) { … … 142 172 */ 143 173 public function count_files() { 144 $files = glob( amem()->files->upload_basedir . "{$this->name}*.log");174 $files = glob( $this->search ); 145 175 return count( (array) $files ); 146 176 } … … 177 207 return $content; 178 208 } 209 179 210 /** 180 211 * Format error as HTML text … … 270 301 } 271 302 303 public function is_enabled() { 304 return $this->enabled; 305 } 306 307 public function enable() { 308 $this->enabled = true; 309 } 310 311 public function disable() { 312 $this->enabled = false; 313 } 314 272 315 } 273 316 274 // Initialize default log 317 // Initialize default log with amem.log 275 318 amem()->register_module( 'log', Log::getInstance() ); -
advanced-members/trunk/core/class-options.php
r3263166 r3266705 52 52 $this->modules = get_option( 'amem_modules', array() ); 53 53 $this->modules = array_merge( $def_modules, $this->modules ); 54 55 $this->migrate_options(); 56 } 57 58 function migrate_options() { 59 if ( isset($this->options['roles']['apply_roles_redirection']) ) { 60 if ( !isset($this->options['redirect']['apply_roles_redirection']) ) { 61 $this->options['redirect']['apply_roles_redirection'] = $this->options['roles']['apply_roles_redirection']; 62 } 63 unset( $this->options['roles'] ); 64 update_option( 'amem_options', $this->options ); 65 } 54 66 } 55 67 … … 95 107 * @return mixed|string|void 96 108 */ 97 function get( $option_key, $default= '') {109 function get( $option_key, $default=null ) { 98 110 $option_arr = explode("/", $option_key); 99 111 if ( 1 == count($option_arr) && isset( $this->options[ $option_key ] ) ) { … … 107 119 $get_option = $get_option[$key]; 108 120 } else { 109 $get_option = '';121 $get_option = null; 110 122 break; 111 123 } … … 143 155 'redirection/_after_registration' => 'redirect_home', 144 156 'redirection/_after_account_delete' => 'redirect_home', 157 'restriction/post_types' => ['page'], 158 'restriction/methods' => ['redirect_login' => 1], 159 'restriction/message' => __( 'We\'re sorry, but you don\'t currently have access to this content.', 'advanced-members' ), 145 160 // 'account/use_password' => true, 146 161 ]; … … 169 184 */ 170 185 function get_core_pages() { 171 $core_pages = array_keys( amem()->config-> core_pages);186 $core_pages = array_keys( amem()->config->get_core_pages() ); 172 187 if ( empty( $core_pages ) ) { 173 188 return $this->permalinks; -
advanced-members/trunk/core/class-rest.php
r3258867 r3266705 81 81 } 82 82 83 if ( $args['meta_query'])83 if ( !empty($args['meta_query']) ) 84 84 $meta_query = array_merge( $meta_query, $args['meta_query'] ); 85 85 -
advanced-members/trunk/languages/advanced-members.pot
r3263166 r3266705 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Advanced Members for ACF 0.9.1 4\n"5 "Project-Id-Version: Advanced Members for ACF 0.9.15\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-members\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 3-28T11:19:58+09:00\n"12 "POT-Creation-Date: 2025-04-04T13:57:40+09:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" … … 37 37 38 38 #: acf/fields/class-avatar.php:36 39 #: admin/class-admin-options.php:48 039 #: admin/class-admin-options.php:483 40 40 msgid "Avatar" 41 41 msgstr "" … … 224 224 225 225 #: acf/fields/class-user-password-confirm.php:93 226 #: acf/fields/class-user-password.php:15 4227 #: acf/fields/class-user-password.php:15 7228 #: acf/fields/class-user-password.php:20 6229 #: acf/fields/class-user-password.php:20 7226 #: acf/fields/class-user-password.php:156 227 #: acf/fields/class-user-password.php:159 228 #: acf/fields/class-user-password.php:208 229 #: acf/fields/class-user-password.php:209 230 230 #: core/class-password-reset.php:221 231 231 msgid "Password Confirm" … … 256 256 msgstr "" 257 257 258 #: acf/fields/class-user-password.php:17 7258 #: acf/fields/class-user-password.php:179 259 259 msgid "Password Strength" 260 260 msgstr "" 261 261 262 #: acf/fields/class-user-password.php:18 2262 #: acf/fields/class-user-password.php:184 263 263 msgid "Very Weak" 264 264 msgstr "" 265 265 266 #: acf/fields/class-user-password.php:18 3266 #: acf/fields/class-user-password.php:185 267 267 msgid "Weak" 268 268 msgstr "" 269 269 270 #: acf/fields/class-user-password.php:18 4270 #: acf/fields/class-user-password.php:186 271 271 msgid "Medium" 272 272 msgstr "" 273 273 274 #: acf/fields/class-user-password.php:18 5274 #: acf/fields/class-user-password.php:187 275 275 msgid "Strong" 276 276 msgstr "" 277 277 278 #: acf/fields/class-user-password.php:19 2278 #: acf/fields/class-user-password.php:194 279 279 msgid "Show password confirm" 280 280 msgstr "" 281 281 282 #: acf/fields/class-user-password.php:19 3282 #: acf/fields/class-user-password.php:195 283 283 msgid "Show password confirm field for users to check password is not mistyped. (Only works with Advanced Members for ACF Forms)" 284 284 msgstr "" 285 285 286 #: acf/fields/class-user-password.php:20 2286 #: acf/fields/class-user-password.php:204 287 287 msgid "Password Confirm Placeholder Text" 288 288 msgstr "" 289 289 290 #: acf/fields/class-user-password.php:20 3290 #: acf/fields/class-user-password.php:205 291 291 msgid "Placeholder text for password confirm field" 292 292 msgstr "" … … 318 318 319 319 #: acf/fields/class-user-tos.php:116 320 #: admin/class-admin-options.php:5 08321 #: admin/class-admin-options.php:5 59320 #: admin/class-admin-options.php:511 321 #: admin/class-admin-options.php:562 322 322 #: admin/views/html-options-page.php:37 323 323 msgid "Not Selected" … … 638 638 639 639 #: admin/class-admin-form.php:805 640 #: admin/class-admin-options.php:6 07640 #: admin/class-admin-options.php:610 641 641 msgid "Edit Page" 642 642 msgstr "" … … 742 742 743 743 #: admin/class-admin-options.php:477 744 #: admin/views/html-dashboard-page.php:80 745 msgid "Content Restriction" 746 msgstr "" 747 748 #: admin/class-admin-options.php:480 744 749 msgid "Admin Bar" 745 750 msgstr "" 746 751 747 #: admin/class-admin-options.php:48 3752 #: admin/class-admin-options.php:486 748 753 msgid "Emails" 749 754 msgstr "" 750 755 751 #: admin/class-admin-options.php:4 89756 #: admin/class-admin-options.php:492 752 757 msgid "Members Settings" 753 758 msgstr "" … … 827 832 #: admin/class-menu.php:44 828 833 #: admin/class-menu.php:168 834 #: core/modules/class-restriction.php:83 829 835 msgid "Everyone" 830 836 msgstr "" … … 832 838 #: admin/class-menu.php:45 833 839 #: admin/class-menu.php:169 840 #: core/modules/class-restriction.php:86 834 841 msgid "Logged Out Users" 835 842 msgstr "" … … 837 844 #: admin/class-menu.php:46 838 845 #: admin/class-menu.php:170 846 #: core/modules/class-restriction.php:84 839 847 msgid "Logged In Users" 840 848 msgstr "" … … 921 929 msgstr "" 922 930 923 #: admin/views/html-dashboard-page.php:79 931 #: admin/views/html-dashboard-page.php:81 932 msgid "Control content access based on login status and User Roles." 933 msgstr "" 934 935 #: admin/views/html-dashboard-page.php:96 924 936 msgid "Disable Admin Bar" 925 937 msgstr "" 926 938 927 #: admin/views/html-dashboard-page.php: 80939 #: admin/views/html-dashboard-page.php:97 928 940 msgid "Disable the admin bar based on user roles." 929 941 msgstr "" 930 942 931 #: admin/views/html-dashboard-page.php: 95943 #: admin/views/html-dashboard-page.php:112 932 944 msgid "Local Avatar" 933 945 msgstr "" 934 946 935 #: admin/views/html-dashboard-page.php: 96947 #: admin/views/html-dashboard-page.php:113 936 948 msgid "Allow users to upload local avatar." 937 949 msgstr "" 938 950 939 #: admin/views/html-dashboard-page.php:1 36951 #: admin/views/html-dashboard-page.php:153 940 952 msgid "Documentation" 941 953 msgstr "" 942 954 943 #: admin/views/html-dashboard-page.php:1 40955 #: admin/views/html-dashboard-page.php:157 944 956 msgid "" 945 957 "Need Help?\n" … … 969 981 #: admin/views/html-options-page.php:458 970 982 #: admin/views/html-options-page.php:488 983 #: admin/views/html-options-page.php:570 971 984 msgid "Use global rule" 972 985 msgstr "" … … 1204 1217 #: admin/views/html-options-page.php:459 1205 1218 #: admin/views/html-options-page.php:489 1219 #: admin/views/html-options-page.php:571 1206 1220 msgid "Show" 1207 1221 msgstr "" … … 1209 1223 #: admin/views/html-options-page.php:460 1210 1224 #: admin/views/html-options-page.php:490 1225 #: admin/views/html-options-page.php:572 1211 1226 msgid "Hide" 1212 1227 msgstr "" … … 1246 1261 #: admin/views/html-options-page.php:550 1247 1262 msgid "Default Avatar Image" 1263 msgstr "" 1264 1265 #: admin/views/html-options-page.php:582 1266 msgid "Enable the \"Content Restriction\" settings for post types" 1267 msgstr "" 1268 1269 #: admin/views/html-options-page.php:603 1270 msgid "Content Restriction Methods" 1271 msgstr "" 1272 1273 #: admin/views/html-options-page.php:612 1274 #: core/modules/class-restriction.php:115 1275 msgid "Redirect to the Login Page" 1276 msgstr "" 1277 1278 #: admin/views/html-options-page.php:631 1279 #: core/modules/class-restriction.php:116 1280 msgid "Show the Default Restriction Message" 1281 msgstr "" 1282 1283 #: admin/views/html-options-page.php:646 1284 #: core/modules/class-restriction.php:117 1285 msgid "Show the Excerpt and Restriction Message" 1286 msgstr "" 1287 1288 #: admin/views/html-options-page.php:660 1289 msgid "Default Restriction Message" 1290 msgstr "" 1291 1292 #: admin/views/html-options-page.php:663 1293 #: admin/views/html-options-page.php:664 1294 #: core/class-options.php:159 1295 msgid "We're sorry, but you don't currently have access to this content." 1248 1296 msgstr "" 1249 1297 … … 1633 1681 1634 1682 #. translators: %s: Provider name 1635 #: core/class-log.php:1 671683 #: core/class-log.php:197 1636 1684 msgid "No file \"%s.log\"." 1637 1685 msgstr "" … … 1817 1865 msgstr "" 1818 1866 1867 #: core/modules/class-restriction.php:81 1868 msgid "Select who should have access to this content." 1869 msgstr "" 1870 1871 #: core/modules/class-restriction.php:85 1872 msgid "Logged Users with Specific Roles" 1873 msgstr "" 1874 1875 #: core/modules/class-restriction.php:101 1876 msgid "Select the user roles that can see this content." 1877 msgstr "" 1878 1879 #: core/modules/class-restriction.php:132 1880 msgid "What happens when users without access try to view the post?" 1881 msgstr "" 1882 1819 1883 #: core/rest/class-rest-controller.php:31 1820 1884 msgid "You are not allowed to access forms." -
advanced-members/trunk/readme.txt
r3263166 r3266705 1 1 === Advanced Members for ACF === 2 2 Tags: acf, advanced custom fields, members, registration, account 3 Stable tag: 0.9.1 43 Stable tag: 0.9.15 4 4 Requires at least: 5.8 5 5 Tested up to: 6.7.1 … … 71 71 == Changelog == 72 72 73 = 0.9.15 74 - Fix: Password Checker JS not working properly 75 73 76 = 0.9.14 = 74 77 - New: Email setting for override WP core user password changed email. -
advanced-members/trunk/src/assets/js/password-strength.js
r3258965 r3266705 3 3 b.removeClass("weak short bad good strong"); 4 4 c = wp.passwordStrength.meter(a, c, a); 5 b. siblings("input.password-strength").val(c);5 b.closest(".amem-input").find("input.password-strength").val(c); 6 6 switch (c) { 7 7 case 2: … … 17 17 b.addClass("short").html(pwsL10n.mismatch); 18 18 break; 19 case 1: 20 b.addClass("short").html(pwsL10n.short); 21 break 19 22 default: 20 b.addClass("short").html(pwsL10n["short"]); 23 b.addClass("short").html(pwsL10n.unknown); 24 break; 21 25 } 22 26 return c; … … 30 34 jQuery(document).ready(function ($) { 31 35 $("body").on("keyup", ".amem-password-main input", function (b) { 32 checkPasswordStrength($(this), $(this). parents(".acf-input-wrap").siblings(".pass-strength-result"), []);36 checkPasswordStrength($(this), $(this).closest(".amem-input").find(".pass-strength-result"), []); 33 37 }); 34 38 $("body").on("keyup", ".acf-field-user-password-confirm input", function (b) {
Note: See TracChangeset
for help on using the changeset viewer.