Plugin Directory

Changeset 3034389


Ignore:
Timestamp:
02/12/2024 07:55:05 AM (22 months ago)
Author:
veppa
Message:

Fixed is_user_logged_in() call before it is loaded

Location:
http-requests-manager
Files:
2 edited
6 copied

Legend:

Unmodified
Added
Removed
  • http-requests-manager/tags/1.2.4/http-requests-manager.php

    r3003727 r3034389  
    55  Plugin URI:   https://veppa.com/http-requests-manager/
    66  Description: Limit, disable, block, log all WP HTTP requests. Limit by request count, page load time or lower timeout for each request. Speed up login and admin pages.
    7   Version: 1.2.3
     7  Version: 1.2.4
    88  Author: veppa
    99  Author URI: https://veppa.com/
     
    3939{
    4040
    41     const VERSION = '1.2.3';
     41    const VERSION = '1.2.4';
    4242    const ID = 'http-requests-manager';
    4343
     
    17721772            }
    17731773
    1774             self::$page_info['is_user_logged_in'] = is_user_logged_in();
     1774           
    17751775            self::$page_info['manager_mode'] = self::get_mode();
    17761776            self::$page_info['timer_before'] = self::$timer_before;
    17771777        }
     1778       
     1779        // is_user_logged_in() is pluggable function and will be loaded before init event. use it only if it is already loaded.
     1780        if(!isset(self::$page_info['is_user_logged_in']) && function_exists('is_user_logged_in'))
     1781        {
     1782            self::$page_info['is_user_logged_in'] = is_user_logged_in();
     1783        }
     1784       
    17781785
    17791786        // updated data
  • http-requests-manager/tags/1.2.4/readme.txt

    r3003727 r3034389  
    55Requires at least: 4.9
    66Tested up to: 6.4
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88License: GPLv2
    99
     
    164164== Changelog ==
    165165
     166= 1.2.4 - 12 February 2024 =
     167
     168*  Fixed: prevent calling is_user_logged_in function when it is not declared.
     169
    166170= 1.2.3 - 30 November 2023 =
    167171
  • http-requests-manager/trunk/http-requests-manager.php

    r3003727 r3034389  
    55  Plugin URI:   https://veppa.com/http-requests-manager/
    66  Description: Limit, disable, block, log all WP HTTP requests. Limit by request count, page load time or lower timeout for each request. Speed up login and admin pages.
    7   Version: 1.2.3
     7  Version: 1.2.4
    88  Author: veppa
    99  Author URI: https://veppa.com/
     
    3939{
    4040
    41     const VERSION = '1.2.3';
     41    const VERSION = '1.2.4';
    4242    const ID = 'http-requests-manager';
    4343
     
    17721772            }
    17731773
    1774             self::$page_info['is_user_logged_in'] = is_user_logged_in();
     1774           
    17751775            self::$page_info['manager_mode'] = self::get_mode();
    17761776            self::$page_info['timer_before'] = self::$timer_before;
    17771777        }
     1778       
     1779        // is_user_logged_in() is pluggable function and will be loaded before init event. use it only if it is already loaded.
     1780        if(!isset(self::$page_info['is_user_logged_in']) && function_exists('is_user_logged_in'))
     1781        {
     1782            self::$page_info['is_user_logged_in'] = is_user_logged_in();
     1783        }
     1784       
    17781785
    17791786        // updated data
  • http-requests-manager/trunk/readme.txt

    r3003727 r3034389  
    55Requires at least: 4.9
    66Tested up to: 6.4
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88License: GPLv2
    99
     
    164164== Changelog ==
    165165
     166= 1.2.4 - 12 February 2024 =
     167
     168*  Fixed: prevent calling is_user_logged_in function when it is not declared.
     169
    166170= 1.2.3 - 30 November 2023 =
    167171
Note: See TracChangeset for help on using the changeset viewer.