Plugin Directory

Changeset 3393757


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

PHP warnings on login page fixed.

Location:
globaliser
Files:
88 added
4 edited

Legend:

Unmodified
Added
Removed
  • globaliser/trunk/app/controllers/security-controller.php

    r3393751 r3393757  
    4949    }
    5050
    51     public function filter_login_url($url, $path)
     51    public function filter_login_url($url, $_path)
    5252    {
    53         return $this->service->filter_login_url($url, $path);
     53        return $this->service->filter_login_url($url, $_path);
    5454    }
    5555
  • globaliser/trunk/app/services/login-service.php

    r3393751 r3393757  
    5252
    5353        if ( $slug && $wp->request === $slug ) {
     54            // Initialize variables that wp-login.php expects
     55            global $user_login, $error, $interim_login, $action;
     56
     57            // Set defaults to prevent undefined variable warnings
     58            $user_login = isset($_POST['log']) ? sanitize_user($_POST['log']) : '';
     59            $error = '';
     60            $interim_login = isset($_REQUEST['interim-login']);
     61            $action = $_REQUEST['action'] ?? 'login';
     62
    5463            require_once ABSPATH . 'wp-login.php';
    5564            exit;
     
    7887    /**
    7988     * Filter site_url to replace wp-login.php URLs with custom URL
     89     *
     90     * @param string $url The URL to filter
     91     * @param string $_path The path (unused but required by WordPress filter)
     92     * @return string
    8093     */
    81     public function filter_login_url($url, $path)
     94    public function filter_login_url($url, $_path)
    8295    {
    8396        if ( strpos($url, 'wp-login.php') !== false ) {
  • globaliser/trunk/globaliser.php

    r3393751 r3393757  
    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.10
     6   Version: 0.9.11
    77   Author: Globaliser, Inc.
    88   Author URI: https://www.globaliser.com
  • globaliser/trunk/readme.txt

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