Changeset 3280980
- Timestamp:
- 04/24/2025 01:10:30 PM (11 months ago)
- Location:
- multiple-post-passwords
- Files:
-
- 12 added
- 4 edited
-
tags/1.1.3 (added)
-
tags/1.1.3/admin (added)
-
tags/1.1.3/admin/metabox.php (added)
-
tags/1.1.3/admin/settings-page.php (added)
-
tags/1.1.3/frontend (added)
-
tags/1.1.3/frontend/alternative-password-check.php (added)
-
tags/1.1.3/frontend/page-passwords.php (added)
-
tags/1.1.3/frontend/password-check.php (added)
-
tags/1.1.3/inc (added)
-
tags/1.1.3/inc/cronjobs.php (added)
-
tags/1.1.3/multiple-post-passwords.php (added)
-
tags/1.1.3/readme.txt (added)
-
trunk/admin/settings-page.php (modified) (3 diffs)
-
trunk/frontend/alternative-password-check.php (modified) (1 diff)
-
trunk/multiple-post-passwords.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multiple-post-passwords/trunk/admin/settings-page.php
r3006332 r3280980 13 13 public function __construct($args = null) 14 14 { 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 15 30 $this->args = wp_parse_args( 16 31 17 $ args,32 $this->args, 18 33 [ 19 34 'slug' => 'multiple-post-passwords-settings', … … 26 41 $this->settings = $this->args['settings']; 27 42 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')); 30 49 31 50 // Add settings page to menu … … 36 55 37 56 // 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 50 61 } 51 62 -
multiple-post-passwords/trunk/frontend/alternative-password-check.php
r2421367 r3280980 88 88 $user_password = wp_unslash($_SESSION['mpp_alternative_password']); 89 89 90 return ($post_password == $user_password);90 return ($post_password === $user_password); 91 91 92 92 } -
multiple-post-passwords/trunk/multiple-post-passwords.php
r3006332 r3280980 4 4 * Plugin URI: https://www.andreasmuench.de/wordpress/ 5 5 * Description: Easily setup multiple passwords for single protected posts 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 * Author: Andreas Münch 8 8 * Author URI: https://www.andreasmuench.de/wordpress/ 9 9 * Requires at least: 4.7.0 10 * Tested up to: 6. 4.210 * Tested up to: 6.8 11 11 * Text Domain: multiple-post-passwords 12 12 * Domain Path: /languages/ … … 59 59 public function __construct() { 60 60 // Define constants. 61 define( 'MPP_VERSION', '1.1. 0' );61 define( 'MPP_VERSION', '1.1.3' ); 62 62 define( 'MPP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); 63 63 -
multiple-post-passwords/trunk/readme.txt
r3263346 r3280980 4 4 Tags: password, protected, page, post, multiple, security 5 5 Requires at least: 4.7.0 6 Tested up to: 6. 7.26 Tested up to: 6.8 7 7 Requires PHP: 5.6 8 Stable tag: 1.1. 28 Stable tag: 1.1.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 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 75 79 = 1.1.2 = 76 80 * fix: improve output escaping in settings
Note: See TracChangeset
for help on using the changeset viewer.