Plugin Directory

Changeset 3280980


Ignore:
Timestamp:
04/24/2025 01:10:30 PM (11 months ago)
Author:
andreasmuench
Message:

v1.1.3

Location:
multiple-post-passwords
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • multiple-post-passwords/trunk/admin/settings-page.php

    r3006332 r3280980  
    1313    public function __construct($args = null)
    1414    {
     15        $this->args = $args;
     16
     17        add_action('init', [$this, 'init']);
     18
     19
     20
     21    }
     22
     23    /**
     24     * Initialise settings
     25     * @return void
     26     */
     27    public function init()
     28    {
     29
    1530        $this->args = wp_parse_args(
    1631
    17             $args,
     32            $this->args,
    1833            [
    1934                'slug' => 'multiple-post-passwords-settings',
     
    2641        $this->settings = $this->args['settings'];
    2742
    28         // Initialise settings
    29         add_action('admin_menu', array($this, 'init'));
     43        if (empty($this->settings)){
     44            $this->settings = $this->get_settings_fields();
     45        }
     46
     47//        // Initialise settings
     48//        add_action('admin_menu', array($this, 'init'));
    3049
    3150        // Add settings page to menu
     
    3655
    3756        // Add settings link to plugins page
    38         add_filter('plugin_action_links_'.$args['plugin_basename'], array($this, 'add_settings_link'));
    39     }
    40 
    41     /**
    42      * Initialise settings
    43      * @return void
    44      */
    45     public function init()
    46     {
    47         if (empty($this->settings)){
    48             $this->settings = $this->get_settings_fields();
    49         }
     57        add_filter('plugin_action_links_'.$this->args['plugin_basename'], array($this, 'add_settings_link'));
     58
     59
     60
    5061    }
    5162
  • multiple-post-passwords/trunk/frontend/alternative-password-check.php

    r2421367 r3280980  
    8888        $user_password =  wp_unslash($_SESSION['mpp_alternative_password']);
    8989
    90         return ($post_password == $user_password);
     90        return ($post_password === $user_password);
    9191
    9292    }
  • multiple-post-passwords/trunk/multiple-post-passwords.php

    r3006332 r3280980  
    44 * Plugin URI: https://www.andreasmuench.de/wordpress/
    55 * Description: Easily setup multiple passwords for single protected posts
    6  * Version: 1.1.2
     6 * Version: 1.1.3
    77 * Author: Andreas Münch
    88 * Author URI: https://www.andreasmuench.de/wordpress/
    99 * Requires at least: 4.7.0
    10  * Tested up to: 6.4.2
     10 * Tested up to: 6.8
    1111 * Text Domain: multiple-post-passwords
    1212 * Domain Path: /languages/
     
    5959    public function __construct() {
    6060        // Define constants.
    61          define( 'MPP_VERSION', '1.1.0' );
     61         define( 'MPP_VERSION', '1.1.3' );
    6262         define( 'MPP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    6363
  • multiple-post-passwords/trunk/readme.txt

    r3263346 r3280980  
    44Tags: password, protected, page, post, multiple, security
    55Requires at least: 4.7.0
    6 Tested up to: 6.7.2
     6Tested up to: 6.8
    77Requires PHP: 5.6
    8 Stable tag: 1.1.2
     8Stable tag: 1.1.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
     75= 1.1.3 =
     76* fix issues with numeral passwords in alternative mode
     77* fix warning for calling _load_textdomain_just_in_time too early
     78
    7579= 1.1.2 =
    7680* fix: improve output escaping in settings
Note: See TracChangeset for help on using the changeset viewer.