Plugin Directory

Changeset 3146283


Ignore:
Timestamp:
09/04/2024 07:39:44 AM (16 months ago)
Author:
tmatsuur
Message:

[Update] login rebuilder:2.8.5 Adjusted what is applied to internally stored hostnames when SERVERHTTP_HOST? does not exist.

Location:
login-rebuilder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • login-rebuilder/trunk/login-rebuilder.php

    r3146266 r3146283  
    55Description: This plugin will create a new login page for your site. The new login page can be placed in any directory. You can also create separate login pages for administrators and for other users.
    66Author: tmatsuur
    7 Version: 2.8.4
     7Version: 2.8.5
    88Author URI: https://12net.jp/
    99Text Domain: login-rebuilder
     
    127127        $this->user_agent = isset( $_SERVER['HTTP_USER_AGENT'] )? wp_specialchars_decode( $_SERVER['HTTP_USER_AGENT'], ENT_QUOTES ): 'None';
    128128
    129         $this->host_name = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST']: 'Unknown'; // [2.8.3][2.6.2] $_SERVER['SERVER_NAME'] was wrong.
     129        // [2.8.5][2.8.3][2.6.2] $_SERVER['SERVER_NAME'] was wrong.
     130        if ( isset( $_SERVER['HTTP_HOST'] ) ) {
     131            $this->host_name = $_SERVER['HTTP_HOST'];
     132        } elseif ( isset( $_SERVER['SERVER_NAME'] ) ) {
     133            $this->host_name = $_SERVER['SERVER_NAME'];
     134        } else {
     135            $this->host_name = gethostbyaddr( $_SERVER['SERVER_ADDR'] );
     136        }
     137
    130138        $this->root_url = ( ( is_ssl() || force_ssl_admin() )? "https://": "http://" ) . $this->host_name;
    131139        $this->root_path = $_SERVER['DOCUMENT_ROOT'];
  • login-rebuilder/trunk/readme.txt

    r3146266 r3146283  
    66Requires PHP: 5.6
    77Tested up to: 6.6.1
    8 Stable tag: 2.8.4
     8Stable tag: 2.8.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9595== Changelog ==
    9696
     97= 2.8.5 =
     98* Bug fix: Adjusted what is applied to internally stored hostnames when SERVER['HTTP_HOST'] does not exist.
     99
    97100= 2.8.4 =
    98101* Bug fix: Fixed a bug that prevented the settings page from displaying.
Note: See TracChangeset for help on using the changeset viewer.