Plugin Directory

Changeset 3102800


Ignore:
Timestamp:
06/14/2024 01:59:27 PM (22 months ago)
Author:
NicolasKulka
Message:

fix error logged_in password protected

Location:
wps-hide-login
Files:
41 added
3 edited

Legend:

Unmodified
Added
Removed
  • wps-hide-login/trunk/classes/plugin.php

    r3101055 r3102800  
    688688        if ( isset( $_POST['post_password'] ) ) {
    689689            global $current_user;
    690             if ( is_wp_error( wp_authenticate_username_password( null, $current_user->user_login, $_POST['post_password'] ) ) ) {
     690            if ( ! is_user_logged_in() && is_wp_error( wp_authenticate_username_password( null, $current_user->user_login, $_POST['post_password'] ) ) ) {
    691691                return $origin_url;
    692692            }
  • wps-hide-login/trunk/readme.txt

    r3101055 r3102800  
    77Tested up to: 6.5
    88Requires PHP: 7.0
    9 Stable tag: 1.9.16.1
     9Stable tag: 1.9.16.2
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140
    141141== Changelog ==
     142
     143= 1.9.16.2 =
     144* Fix post_password if already logged in
    142145
    143146= 1.9.16.1 =
  • wps-hide-login/trunk/wps-hide-login.php

    r3101055 r3102800  
    66Author: WPServeur, NicolasKulka, wpformation
    77Author URI: https://wpserveur.net
    8 Version: 1.9.16.1
     8Version: 1.9.16.2
    99Requires at least: 4.1
    1010Tested up to: 6.5
     
    2222
    2323// Plugin constants
    24 define( 'WPS_HIDE_LOGIN_VERSION', '1.9.16.1' );
     24define( 'WPS_HIDE_LOGIN_VERSION', '1.9.16.2' );
    2525define( 'WPS_HIDE_LOGIN_FOLDER', 'wps-hide-login' );
    2626
Note: See TracChangeset for help on using the changeset viewer.