Plugin Directory

Changeset 3266705


Ignore:
Timestamp:
04/04/2025 05:08:40 AM (11 months ago)
Author:
danbilabs
Message:

Version 0.9.15

Location:
advanced-members/trunk
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • advanced-members/trunk/acf/fields/class-user-password.php

    r3258867 r3266705  
    134134        if ( isset( $field['password_strength'] ) ) {
    135135            echo '<div class="pass-strength-result weak"></div>';
     136            echo '<div class="pass-strength-checker">';
    136137            echo '<input type="hidden" value="' . esc_attr( $field['password_strength'] ) . '" name="required-strength"/>';
    137138            echo '<input class="password-strength" type="hidden" value="" name="password-strength"/>';
     139            echo '</div>';
    138140        }
    139141
  • advanced-members/trunk/admin/class-admin-options.php

    r3263166 r3266705  
    473473        if ( amem()->options->getmodule('_use_redirects') ) {
    474474            $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' );
    475478        }
    476479        if ( amem()->options->getmodule('_use_adminbar') ) {
     
    595598
    596599    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 ) {
    598601            $name = amem()->options->get_core_page_id($page_key);
    599602            // $name = "amem_options[{$name}]";
  • advanced-members/trunk/admin/class-admin.php

    r3258867 r3266705  
    161161
    162162    public function add_display_post_states( $post_states, $post ) {
    163         foreach ( amem()->config->core_pages as $page_key => $page_value ) {
     163        foreach ( amem()->config->get_core_pages() as $page_key => $page_value ) {
    164164            $page_id = amem()->options->get( amem()->options->get_core_page_id($page_key) );
    165165            if ( $page_id == $post->ID ) {
  • advanced-members/trunk/admin/views/html-dashboard-page.php

    r3258867 r3266705  
    7070                                    );
    7171                                }
     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
    7291                                acf_render_field_wrap(
    7392                                    array(
  • advanced-members/trunk/admin/views/html-options-page.php

    r3263166 r3266705  
    125125                            case 'general':
    126126                                echo '<h3>' . esc_html__( 'Advanced Members for ACF Pages', 'advanced-members' ) . '</h3>';
    127                                 foreach (amem()->config->core_pages as $page_key => $page_value) {
     127                                foreach (amem()->config->get_core_pages() as $page_key => $page_value) {
    128128                                    $page_id = amem()->options->get_core_page_id($page_key);
    129129                                    // if ( $page_id && $page_key == 'account' ) {
     
    407407                                'redirections'              => $redirections,
    408408                                'choices'                           => $choices,
    409                                 'table_wrap_class'      => amem()->options->get('roles/apply_roles_redirection', true) ? '' : ' acf-hidden'
     409                                'table_wrap_class'      => amem()->options->get('redirect/apply_roles_redirection', true) ? '' : ' acf-hidden'
    410410                            );
    411411                            amem_get_view( __DIR__ . '/html-options-roles-redirection.php', $view_args );
     
    492492
    493493                            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;
    495495                            acf_render_field_wrap(
    496496                                [
     
    564564
    565565                            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;
    566672                        }
    567673
  • advanced-members/trunk/advanced-members.php

    r3263166 r3266705  
    44 * Plugin URI: https://danbilabs.com/
    55 * Description: Lightweight & All-in-One Membership Plugin for ACF Fans.
    6  * Version: 0.9.14
     6 * Version: 0.9.15
    77 * Author: DanbiLabs
    88 * Author URI: https://danbilabs.com/
     
    4545
    4646    /** @var string version */
    47     public static $version = '0.9.14';
     47    public static $version = '0.9.15';
    4848
    4949    /** @var string version */
     
    314314            amem_include( 'core/modules/class-adminbar.php' );
    315315
     316        if ( $this->is_dev() && amem()->options->getmodule('_use_restriction') )
     317            amem_include( 'core/modules/class-restriction.php' );
     318
    316319        if ( $this->is_dev() && amem()->options->getmodule('_use_avatar') )
    317320            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"))}))}));
     1jQuery(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  
    4747    protected $dir = '';
    4848
     49    protected $search = '';
     50
     51    protected $auto_archive = false;
     52
     53    protected $enabled = true;
     54
    4955    /**
    5056     * Class constructor
     
    6571        }
    6672
     73        $this->search = dirname($this->file_path) . DIRECTORY_SEPARATOR . "{$this->name}*";
     74
    6775        $this->archive();
    6876    }
     
    7583    public function add( $text ) {
    7684        do_action( "amem/{$this->name}/log_add", $text );
     85
     86        if ( !$this->enabled )
     87            return;
    7788
    7889        if ( function_exists('is_wp_error') && is_wp_error($text) ) {
     
    102113        if ( is_file( $this->file_path ) && filesize( $this->file_path ) > $this->max_filesize ) {
    103114            $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 ) ) {
    106118                $this->clear();
     119                $this->backup( $backup, true );
    107120            }
    108121        }
     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;
    109139    }
    110140
     
    116146    public function clear_archive() {
    117147        $deleted = 0;
    118         $files   = glob( amem()->files->upload_basedir . "{$this->name} *" );
     148        $files   = glob( $this->search );
    119149
    120150        foreach ( (array) $files as $file ) {
     
    142172     */
    143173    public function count_files() {
    144         $files = glob( amem()->files->upload_basedir . "{$this->name}*.log" );
     174        $files = glob( $this->search );
    145175        return count( (array) $files );
    146176    }
     
    177207        return $content;
    178208    }
     209
    179210    /**
    180211     * Format error as HTML text
     
    270301    }
    271302
     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
    272315}
    273316
    274 // Initialize default log
     317// Initialize default log with amem.log
    275318amem()->register_module( 'log', Log::getInstance() );
  • advanced-members/trunk/core/class-options.php

    r3263166 r3266705  
    5252        $this->modules = get_option( 'amem_modules', array() );
    5353        $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        }
    5466    }
    5567
     
    95107     * @return mixed|string|void
    96108     */
    97     function get( $option_key, $default='' ) {
     109    function get( $option_key, $default=null ) {
    98110        $option_arr = explode("/", $option_key);
    99111        if ( 1 == count($option_arr) && isset( $this->options[ $option_key ] ) ) {
     
    107119            $get_option = $get_option[$key];
    108120            } else {
    109             $get_option = '';
     121            $get_option = null;
    110122            break;
    111123            }
     
    143155            'redirection/_after_registration' => 'redirect_home',
    144156            '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' ),
    145160            // 'account/use_password' => true,
    146161        ];
     
    169184     */
    170185    function get_core_pages() {
    171         $core_pages = array_keys( amem()->config->core_pages );
     186        $core_pages = array_keys( amem()->config->get_core_pages() );
    172187        if ( empty( $core_pages ) ) {
    173188            return $this->permalinks;
  • advanced-members/trunk/core/class-rest.php

    r3258867 r3266705  
    8181        }
    8282
    83         if ( $args['meta_query'] )
     83        if ( !empty($args['meta_query']) )
    8484            $meta_query = array_merge( $meta_query, $args['meta_query'] );
    8585
  • advanced-members/trunk/languages/advanced-members.pot

    r3263166 r3266705  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Advanced Members for ACF 0.9.14\n"
     5"Project-Id-Version: Advanced Members for ACF 0.9.15\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-members\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-03-28T11:19:58+09:00\n"
     12"POT-Creation-Date: 2025-04-04T13:57:40+09:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
     
    3737
    3838#: acf/fields/class-avatar.php:36
    39 #: admin/class-admin-options.php:480
     39#: admin/class-admin-options.php:483
    4040msgid "Avatar"
    4141msgstr ""
     
    224224
    225225#: acf/fields/class-user-password-confirm.php:93
    226 #: acf/fields/class-user-password.php:154
    227 #: acf/fields/class-user-password.php:157
    228 #: acf/fields/class-user-password.php:206
    229 #: acf/fields/class-user-password.php:207
     226#: 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
    230230#: core/class-password-reset.php:221
    231231msgid "Password Confirm"
     
    256256msgstr ""
    257257
    258 #: acf/fields/class-user-password.php:177
     258#: acf/fields/class-user-password.php:179
    259259msgid "Password Strength"
    260260msgstr ""
    261261
    262 #: acf/fields/class-user-password.php:182
     262#: acf/fields/class-user-password.php:184
    263263msgid "Very Weak"
    264264msgstr ""
    265265
    266 #: acf/fields/class-user-password.php:183
     266#: acf/fields/class-user-password.php:185
    267267msgid "Weak"
    268268msgstr ""
    269269
    270 #: acf/fields/class-user-password.php:184
     270#: acf/fields/class-user-password.php:186
    271271msgid "Medium"
    272272msgstr ""
    273273
    274 #: acf/fields/class-user-password.php:185
     274#: acf/fields/class-user-password.php:187
    275275msgid "Strong"
    276276msgstr ""
    277277
    278 #: acf/fields/class-user-password.php:192
     278#: acf/fields/class-user-password.php:194
    279279msgid "Show password confirm"
    280280msgstr ""
    281281
    282 #: acf/fields/class-user-password.php:193
     282#: acf/fields/class-user-password.php:195
    283283msgid "Show password confirm field for users to check password is not mistyped. (Only works with Advanced Members for ACF Forms)"
    284284msgstr ""
    285285
    286 #: acf/fields/class-user-password.php:202
     286#: acf/fields/class-user-password.php:204
    287287msgid "Password Confirm Placeholder Text"
    288288msgstr ""
    289289
    290 #: acf/fields/class-user-password.php:203
     290#: acf/fields/class-user-password.php:205
    291291msgid "Placeholder text for password confirm field"
    292292msgstr ""
     
    318318
    319319#: acf/fields/class-user-tos.php:116
    320 #: admin/class-admin-options.php:508
    321 #: admin/class-admin-options.php:559
     320#: admin/class-admin-options.php:511
     321#: admin/class-admin-options.php:562
    322322#: admin/views/html-options-page.php:37
    323323msgid "Not Selected"
     
    638638
    639639#: admin/class-admin-form.php:805
    640 #: admin/class-admin-options.php:607
     640#: admin/class-admin-options.php:610
    641641msgid "Edit Page"
    642642msgstr ""
     
    742742
    743743#: admin/class-admin-options.php:477
     744#: admin/views/html-dashboard-page.php:80
     745msgid "Content Restriction"
     746msgstr ""
     747
     748#: admin/class-admin-options.php:480
    744749msgid "Admin Bar"
    745750msgstr ""
    746751
    747 #: admin/class-admin-options.php:483
     752#: admin/class-admin-options.php:486
    748753msgid "Emails"
    749754msgstr ""
    750755
    751 #: admin/class-admin-options.php:489
     756#: admin/class-admin-options.php:492
    752757msgid "Members Settings"
    753758msgstr ""
     
    827832#: admin/class-menu.php:44
    828833#: admin/class-menu.php:168
     834#: core/modules/class-restriction.php:83
    829835msgid "Everyone"
    830836msgstr ""
     
    832838#: admin/class-menu.php:45
    833839#: admin/class-menu.php:169
     840#: core/modules/class-restriction.php:86
    834841msgid "Logged Out Users"
    835842msgstr ""
     
    837844#: admin/class-menu.php:46
    838845#: admin/class-menu.php:170
     846#: core/modules/class-restriction.php:84
    839847msgid "Logged In Users"
    840848msgstr ""
     
    921929msgstr ""
    922930
    923 #: admin/views/html-dashboard-page.php:79
     931#: admin/views/html-dashboard-page.php:81
     932msgid "Control content access based on login status and User Roles."
     933msgstr ""
     934
     935#: admin/views/html-dashboard-page.php:96
    924936msgid "Disable Admin Bar"
    925937msgstr ""
    926938
    927 #: admin/views/html-dashboard-page.php:80
     939#: admin/views/html-dashboard-page.php:97
    928940msgid "Disable the admin bar based on user roles."
    929941msgstr ""
    930942
    931 #: admin/views/html-dashboard-page.php:95
     943#: admin/views/html-dashboard-page.php:112
    932944msgid "Local Avatar"
    933945msgstr ""
    934946
    935 #: admin/views/html-dashboard-page.php:96
     947#: admin/views/html-dashboard-page.php:113
    936948msgid "Allow users to upload local avatar."
    937949msgstr ""
    938950
    939 #: admin/views/html-dashboard-page.php:136
     951#: admin/views/html-dashboard-page.php:153
    940952msgid "Documentation"
    941953msgstr ""
    942954
    943 #: admin/views/html-dashboard-page.php:140
     955#: admin/views/html-dashboard-page.php:157
    944956msgid ""
    945957"Need Help?\n"
     
    969981#: admin/views/html-options-page.php:458
    970982#: admin/views/html-options-page.php:488
     983#: admin/views/html-options-page.php:570
    971984msgid "Use global rule"
    972985msgstr ""
     
    12041217#: admin/views/html-options-page.php:459
    12051218#: admin/views/html-options-page.php:489
     1219#: admin/views/html-options-page.php:571
    12061220msgid "Show"
    12071221msgstr ""
     
    12091223#: admin/views/html-options-page.php:460
    12101224#: admin/views/html-options-page.php:490
     1225#: admin/views/html-options-page.php:572
    12111226msgid "Hide"
    12121227msgstr ""
     
    12461261#: admin/views/html-options-page.php:550
    12471262msgid "Default Avatar Image"
     1263msgstr ""
     1264
     1265#: admin/views/html-options-page.php:582
     1266msgid "Enable the \"Content Restriction\" settings for post types"
     1267msgstr ""
     1268
     1269#: admin/views/html-options-page.php:603
     1270msgid "Content Restriction Methods"
     1271msgstr ""
     1272
     1273#: admin/views/html-options-page.php:612
     1274#: core/modules/class-restriction.php:115
     1275msgid "Redirect to the Login Page"
     1276msgstr ""
     1277
     1278#: admin/views/html-options-page.php:631
     1279#: core/modules/class-restriction.php:116
     1280msgid "Show the Default Restriction Message"
     1281msgstr ""
     1282
     1283#: admin/views/html-options-page.php:646
     1284#: core/modules/class-restriction.php:117
     1285msgid "Show the Excerpt and Restriction Message"
     1286msgstr ""
     1287
     1288#: admin/views/html-options-page.php:660
     1289msgid "Default Restriction Message"
     1290msgstr ""
     1291
     1292#: admin/views/html-options-page.php:663
     1293#: admin/views/html-options-page.php:664
     1294#: core/class-options.php:159
     1295msgid "We're sorry, but you don't currently have access to this content."
    12481296msgstr ""
    12491297
     
    16331681
    16341682#. translators: %s: Provider name
    1635 #: core/class-log.php:167
     1683#: core/class-log.php:197
    16361684msgid "No file \"%s.log\"."
    16371685msgstr ""
     
    18171865msgstr ""
    18181866
     1867#: core/modules/class-restriction.php:81
     1868msgid "Select who should have access to this content."
     1869msgstr ""
     1870
     1871#: core/modules/class-restriction.php:85
     1872msgid "Logged Users with Specific Roles"
     1873msgstr ""
     1874
     1875#: core/modules/class-restriction.php:101
     1876msgid "Select the user roles that can see this content."
     1877msgstr ""
     1878
     1879#: core/modules/class-restriction.php:132
     1880msgid "What happens when users without access try to view the post?"
     1881msgstr ""
     1882
    18191883#: core/rest/class-rest-controller.php:31
    18201884msgid "You are not allowed to access forms."
  • advanced-members/trunk/readme.txt

    r3263166 r3266705  
    11=== Advanced Members for ACF ===
    22Tags: acf, advanced custom fields, members, registration, account
    3 Stable tag: 0.9.14
     3Stable tag: 0.9.15
    44Requires at least: 5.8
    55Tested up to: 6.7.1
     
    7171== Changelog ==
    7272
     73= 0.9.15
     74- Fix: Password Checker JS not working properly
     75
    7376= 0.9.14 =
    7477- New: Email setting for override WP core user password changed email.
  • advanced-members/trunk/src/assets/js/password-strength.js

    r3258965 r3266705  
    33  b.removeClass("weak short bad good strong");
    44  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);
    66  switch (c) {
    77    case 2:
     
    1717      b.addClass("short").html(pwsL10n.mismatch);
    1818      break;
     19    case 1:
     20      b.addClass("short").html(pwsL10n.short);
     21      break
    1922    default:
    20       b.addClass("short").html(pwsL10n["short"]);
     23      b.addClass("short").html(pwsL10n.unknown);
     24      break;
    2125  }
    2226  return c;
     
    3034jQuery(document).ready(function ($) {
    3135  $("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"), []);
    3337  });
    3438  $("body").on("keyup", ".acf-field-user-password-confirm input", function (b) {
Note: See TracChangeset for help on using the changeset viewer.