Plugin Directory

Changeset 3393762


Ignore:
Timestamp:
11/11/2025 03:30:07 PM (5 months ago)
Author:
globaliser
Message:

Logout issue fixed.

Location:
globaliser
Files:
88 added
3 edited

Legend:

Unmodified
Added
Removed
  • globaliser/trunk/app/services/login-service.php

    r3393757 r3393762  
    3333    /**
    3434     * Redirect direct access to wp-login.php
     35     * Allows logout and other special actions to proceed
    3536     */
    3637    public function redirect_wp_login()
     
    3839        $current = $_SERVER['REQUEST_URI'] ?? '';
    3940        if ( strpos($current, 'wp-login.php') !== false ) {
     41            // Don't redirect logout and other special action URLs
     42            $excluded_actions = ['logout', 'postpass', 'rp', 'resetpass', 'retrievepassword', 'register'];
     43            $action = $_REQUEST['action'] ?? '';
     44
     45            if ( !empty($action) && in_array($action, $excluded_actions, true) ) {
     46                return; // Allow these actions to proceed normally
     47            }
     48
    4049            wp_redirect($this->login_url);
    4150            exit;
     
    95104    {
    96105        if ( strpos($url, 'wp-login.php') !== false ) {
     106            // Don't replace logout and other special action URLs
     107            $excluded_actions = ['logout', 'postpass', 'rp', 'resetpass', 'retrievepassword', 'register'];
     108
     109            foreach ($excluded_actions as $action) {
     110                if ( strpos($url, 'action=' . $action) !== false ) {
     111                    return $url;
     112                }
     113            }
     114
     115            // Replace login URLs with custom URL
    97116            return $this->login_url;
    98117        }
  • globaliser/trunk/globaliser.php

    r3393757 r3393762  
    44   Plugin URI: https://www.globaliser.com/wordpress-hosting/
    55   Description:  This plugin enables Globaliser Cloud Speed, Security, and Reliability features for WordPress sites. It is intended for Globaliser clients only.
    6    Version: 0.9.11
     6   Version: 0.9.12
    77   Author: Globaliser, Inc.
    88   Author URI: https://www.globaliser.com
  • globaliser/trunk/readme.txt

    r3393757 r3393762  
    55License: GPLv2 or later
    66Tested up to: 6.8
    7 Stable tag: 0.9.11
     7Stable tag: 0.9.12
    88Requires PHP: 8.1
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29
     30= 0.9.12 =
     31* Logout issue fixed.
    2932
    3033= 0.9.11 =
Note: See TracChangeset for help on using the changeset viewer.