Plugin Directory

Changeset 3035804


Ignore:
Timestamp:
02/14/2024 04:15:36 PM (22 months ago)
Author:
wfryan
Message:

1.1.9 - February 14, 2024

  • Fix: Fixed an issue where user profiles with a selected locale different from the site itself could end up loading the site's locale instead
Location:
wordfence-login-security
Files:
42 added
42 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wordfence-login-security/tags/1.1.9/classes/controller/ajax.php

    r2937680 r3035804  
    2626   
    2727    public function init() {
    28         $this->_actions = array(
     28        $this->_actions = array(     
    2929            'authenticate' => array(
    3030                'handler' => array($this, '_ajax_authenticate_callback'),
     
    5858            'save_options' => array(
    5959                'handler' => array($this, '_ajax_save_options_callback'),
    60                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to change options.', 'wordfence-login-security')),
     60                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to change options.', 'wordfence-login-security'); }), //These are deliberately written as closures to be executed later so that WP doesn't load the translations too early, which can cause it not to pick up user-specific language settings
    6161                'required_parameters' => array('nonce', 'changes'),
    6262            ),
    6363            'send_grace_period_notification' => array(
    6464                'handler' => array($this, '_ajax_send_grace_period_notification_callback'),
    65                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to send notifications.', 'wordfence-login-security')),
     65                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to send notifications.', 'wordfence-login-security'); }),
    6666                'required_parameters' => array('nonce', 'role', 'url'),
    6767            ),
    6868            'update_ip_preview' => array(
    6969                'handler' => array($this, '_ajax_update_ip_preview_callback'),
    70                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to change options.', 'wordfence-login-security')),
     70                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to change options.', 'wordfence-login-security'); }),
    7171                'required_parameters' => array('nonce', 'ip_source', 'ip_source_trusted_proxies'),
    7272            ),
     
    7878            'reset_recaptcha_stats' => array(
    7979                'handler' => array($this, '_ajax_reset_recaptcha_stats_callback'),
    80                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to reset reCAPTCHA statistics.', 'wordfence-login-security')),
     80                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to reset reCAPTCHA statistics.', 'wordfence-login-security'); }),
    8181                'required_parameters' => array('nonce'),
    8282            ),
    8383            'reset_2fa_grace_period' => array (
    8484                'handler' => array($this, '_ajax_reset_2fa_grace_period_callback'),
    85                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to reset the 2FA grace period.', 'wordfence-login-security')),
     85                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to reset the 2FA grace period.', 'wordfence-login-security'); }),
    8686                'required_parameters' => array('nonce', 'user_id')
    8787            ),
    8888            'revoke_2fa_grace_period' => array (
    8989                'handler' => array($this, '_ajax_revoke_2fa_grace_period_callback'),
    90                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to revoke the 2FA grace period.', 'wordfence-login-security')),
     90                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to revoke the 2FA grace period.', 'wordfence-login-security'); }),
    9191                'required_parameters' => array('nonce', 'user_id')
    9292            ),
    9393            'reset_ntp_failure_count' => array(
    9494                'handler' => array($this, '_ajax_reset_ntp_failure_count_callback'),
    95                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to reset the NTP failure count.', 'wordfence-login-security')),
     95                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to reset the NTP failure count.', 'wordfence-login-security'); }),
    9696                'required_parameters' => array(),
    9797            ),
    9898            'disable_ntp' => array(
    9999                'handler' => array($this, '_ajax_disable_ntp_callback'),
    100                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to disable NTP.', 'wordfence-login-security')),
     100                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to disable NTP.', 'wordfence-login-security'); }),
    101101                'required_parameters' => array(),
    102102            ),
    103103            'dismiss_persistent_notice' => array(
    104104                'handler' => array($this, '_ajax_dismiss_persistent_notice_callback'),
    105                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to dismiss this notice.', 'wordfence-login-security')),
     105                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to dismiss this notice.', 'wordfence-login-security'); }),
    106106                'required_parameters' => array('nonce', 'notice_id')
    107107            )
     
    160160                foreach ($parameters['permissions'] as $permission => $error) {
    161161                    if (!user_can($user, $permission)) {
    162                         self::send_json(array('error' => $error));
     162                        self::send_json(array('error' => $error()));
    163163                    }
    164164                }
  • wordfence-login-security/tags/1.1.9/languages/wordfence-login-security.pot

    r3016540 r3035804  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Wordfence Login Security 1.1.8\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-TFOK8vqll\n"
     5"Project-Id-Version: Wordfence Login Security 1.1.9\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-zYfqhi7Al\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    88"Language-Team: LANGUAGE <[email protected]>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-01-02T16:37:33+00:00\n"
     12"POT-Creation-Date: 2024-02-14T15:58:26+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
  • wordfence-login-security/tags/1.1.9/readme.txt

    r3016566 r3035804  
    55Requires PHP: 5.5
    66Tested up to: 6.4
    7 Stable tag: 1.1.8
     7Stable tag: 1.1.9
    88
    99Secure your website with Wordfence Login Security, providing two-factor authentication, login and registration CAPTCHA, and XML-RPC protection.
     
    5858
    5959== Changelog ==
     60
     61= 1.1.9 - February 14, 2024 =
     62* Fix: Fixed an issue where user profiles with a selected locale different from the site itself could end up loading the site's locale instead
    6063
    6164= 1.1.8 - January 2, 2024 =
  • wordfence-login-security/tags/1.1.9/wordfence-login-security.php

    r3016540 r3035804  
    55Author: Wordfence
    66Author URI: http://www.wordfence.com/
    7 Version: 1.1.8
     7Version: 1.1.9
    88Network: true
    99Requires at least: 4.5
     
    3939    define('WORDFENCE_LS_FROM_CORE', ($wfCoreActive && isset($wfCoreLoading) && $wfCoreLoading));
    4040   
    41     define('WORDFENCE_LS_VERSION', '1.1.8');
    42     define('WORDFENCE_LS_BUILD_NUMBER', '1704213452');
     41    define('WORDFENCE_LS_VERSION', '1.1.9');
     42    define('WORDFENCE_LS_BUILD_NUMBER', '1707926306');
    4343
    4444    define('WORDFENCE_LS_PLUGIN_BASENAME', plugin_basename(__FILE__));
  • wordfence-login-security/trunk/classes/controller/ajax.php

    r2937680 r3035804  
    2626   
    2727    public function init() {
    28         $this->_actions = array(
     28        $this->_actions = array(     
    2929            'authenticate' => array(
    3030                'handler' => array($this, '_ajax_authenticate_callback'),
     
    5858            'save_options' => array(
    5959                'handler' => array($this, '_ajax_save_options_callback'),
    60                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to change options.', 'wordfence-login-security')),
     60                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to change options.', 'wordfence-login-security'); }), //These are deliberately written as closures to be executed later so that WP doesn't load the translations too early, which can cause it not to pick up user-specific language settings
    6161                'required_parameters' => array('nonce', 'changes'),
    6262            ),
    6363            'send_grace_period_notification' => array(
    6464                'handler' => array($this, '_ajax_send_grace_period_notification_callback'),
    65                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to send notifications.', 'wordfence-login-security')),
     65                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to send notifications.', 'wordfence-login-security'); }),
    6666                'required_parameters' => array('nonce', 'role', 'url'),
    6767            ),
    6868            'update_ip_preview' => array(
    6969                'handler' => array($this, '_ajax_update_ip_preview_callback'),
    70                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to change options.', 'wordfence-login-security')),
     70                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to change options.', 'wordfence-login-security'); }),
    7171                'required_parameters' => array('nonce', 'ip_source', 'ip_source_trusted_proxies'),
    7272            ),
     
    7878            'reset_recaptcha_stats' => array(
    7979                'handler' => array($this, '_ajax_reset_recaptcha_stats_callback'),
    80                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to reset reCAPTCHA statistics.', 'wordfence-login-security')),
     80                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to reset reCAPTCHA statistics.', 'wordfence-login-security'); }),
    8181                'required_parameters' => array('nonce'),
    8282            ),
    8383            'reset_2fa_grace_period' => array (
    8484                'handler' => array($this, '_ajax_reset_2fa_grace_period_callback'),
    85                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to reset the 2FA grace period.', 'wordfence-login-security')),
     85                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to reset the 2FA grace period.', 'wordfence-login-security'); }),
    8686                'required_parameters' => array('nonce', 'user_id')
    8787            ),
    8888            'revoke_2fa_grace_period' => array (
    8989                'handler' => array($this, '_ajax_revoke_2fa_grace_period_callback'),
    90                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to revoke the 2FA grace period.', 'wordfence-login-security')),
     90                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to revoke the 2FA grace period.', 'wordfence-login-security'); }),
    9191                'required_parameters' => array('nonce', 'user_id')
    9292            ),
    9393            'reset_ntp_failure_count' => array(
    9494                'handler' => array($this, '_ajax_reset_ntp_failure_count_callback'),
    95                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to reset the NTP failure count.', 'wordfence-login-security')),
     95                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to reset the NTP failure count.', 'wordfence-login-security'); }),
    9696                'required_parameters' => array(),
    9797            ),
    9898            'disable_ntp' => array(
    9999                'handler' => array($this, '_ajax_disable_ntp_callback'),
    100                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to disable NTP.', 'wordfence-login-security')),
     100                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to disable NTP.', 'wordfence-login-security'); }),
    101101                'required_parameters' => array(),
    102102            ),
    103103            'dismiss_persistent_notice' => array(
    104104                'handler' => array($this, '_ajax_dismiss_persistent_notice_callback'),
    105                 'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => __('You do not have permission to dismiss this notice.', 'wordfence-login-security')),
     105                'permissions' => array(Controller_Permissions::CAP_MANAGE_SETTINGS => function() { return __('You do not have permission to dismiss this notice.', 'wordfence-login-security'); }),
    106106                'required_parameters' => array('nonce', 'notice_id')
    107107            )
     
    160160                foreach ($parameters['permissions'] as $permission => $error) {
    161161                    if (!user_can($user, $permission)) {
    162                         self::send_json(array('error' => $error));
     162                        self::send_json(array('error' => $error()));
    163163                    }
    164164                }
  • wordfence-login-security/trunk/languages/wordfence-login-security.pot

    r3016540 r3035804  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Wordfence Login Security 1.1.8\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-TFOK8vqll\n"
     5"Project-Id-Version: Wordfence Login Security 1.1.9\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-zYfqhi7Al\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    88"Language-Team: LANGUAGE <[email protected]>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-01-02T16:37:33+00:00\n"
     12"POT-Creation-Date: 2024-02-14T15:58:26+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
  • wordfence-login-security/trunk/readme.txt

    r3016566 r3035804  
    5858
    5959== Changelog ==
     60
     61= 1.1.9 - February 14, 2024 =
     62* Fix: Fixed an issue where user profiles with a selected locale different from the site itself could end up loading the site's locale instead
    6063
    6164= 1.1.8 - January 2, 2024 =
  • wordfence-login-security/trunk/wordfence-login-security.php

    r3016540 r3035804  
    55Author: Wordfence
    66Author URI: http://www.wordfence.com/
    7 Version: 1.1.8
     7Version: 1.1.9
    88Network: true
    99Requires at least: 4.5
     
    3939    define('WORDFENCE_LS_FROM_CORE', ($wfCoreActive && isset($wfCoreLoading) && $wfCoreLoading));
    4040   
    41     define('WORDFENCE_LS_VERSION', '1.1.8');
    42     define('WORDFENCE_LS_BUILD_NUMBER', '1704213452');
     41    define('WORDFENCE_LS_VERSION', '1.1.9');
     42    define('WORDFENCE_LS_BUILD_NUMBER', '1707926306');
    4343
    4444    define('WORDFENCE_LS_PLUGIN_BASENAME', plugin_basename(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.