Plugin Directory

Changeset 3390578


Ignore:
Timestamp:
11/05/2025 04:04:45 PM (6 weeks ago)
Author:
veppa
Message:

Fixed check array value existance before use

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

Legend:

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

    r3298961 r3390578  
    55  Plugin URI:   https://veppa.com/http-requests-manager/
    66  Description: Limit, Debug, Optimize WP_HTTP requests. Limit by request count, page load time, reduce timeout for each request. Speed up login and admin pages.
    7   Version: 1.3.8
     7  Version: 1.3.9
    88  Author: veppa
    99  Author URI: https://veppa.com/
     
    3232 * 
    3333 * TODO:
     34 *
     35 * - when allow everywhere do not log allowed cron jobs. because it will overload reports.
     36 * - add easier blocking
     37 * - need to do something with smart block. eather add manual or
     38 *
     39 *
     40 *
    3441  - add blocking by theme
    3542  - add blocking by core function
     
    7683{
    7784
    78     const VERSION = '1.3.8';
     85    const VERSION = '1.3.9';
    7986    const ID = 'http-requests-manager';
    8087    const TIMEOUT = 2;
     
    11831190    }
    11841191
    1185     function request_log($url, $stream = null)
     1192    function request_log($url, $args = array())
    11861193    {
    11871194        $row = array(
     
    11911198        );
    11921199
    1193         if ($stream)
    1194         {
    1195             $row['stream'] = $stream;
     1200        if (!empty($args['stream']))
     1201        {
     1202            $row['stream'] = $args['stream'];
    11961203        }
    11971204
     
    14481455        // count current request
    14491456        // capture request to apply request limits even if not logging.
    1450         $this->request_log($url, $args['stream']);
     1457        $this->request_log($url, $args);
    14511458
    14521459        // show nonempty url for checkpoint. if url empty use original url.
  • http-requests-manager/tags/1.3.9/readme.txt

    r3298961 r3390578  
    55Requires at least: 4.7
    66Tested up to: 6.8
    7 Stable tag: 1.3.8
     7Stable tag: 1.3.9
    88License: GPLv2
    99
     
    201201
    202202
     203= 1.3.9 - 5 November 2025  =
     204
     205  * Fixed: calling $args['stream'] array value without checking existence.
     206
     207
    203208= 1.3.8 - 22 May 2025  =
    204209
  • http-requests-manager/trunk/http-requests-manager.php

    r3298961 r3390578  
    55  Plugin URI:   https://veppa.com/http-requests-manager/
    66  Description: Limit, Debug, Optimize WP_HTTP requests. Limit by request count, page load time, reduce timeout for each request. Speed up login and admin pages.
    7   Version: 1.3.8
     7  Version: 1.3.9
    88  Author: veppa
    99  Author URI: https://veppa.com/
     
    3232 * 
    3333 * TODO:
     34 *
     35 * - when allow everywhere do not log allowed cron jobs. because it will overload reports.
     36 * - add easier blocking
     37 * - need to do something with smart block. eather add manual or
     38 *
     39 *
     40 *
    3441  - add blocking by theme
    3542  - add blocking by core function
     
    7683{
    7784
    78     const VERSION = '1.3.8';
     85    const VERSION = '1.3.9';
    7986    const ID = 'http-requests-manager';
    8087    const TIMEOUT = 2;
     
    11831190    }
    11841191
    1185     function request_log($url, $stream = null)
     1192    function request_log($url, $args = array())
    11861193    {
    11871194        $row = array(
     
    11911198        );
    11921199
    1193         if ($stream)
    1194         {
    1195             $row['stream'] = $stream;
     1200        if (!empty($args['stream']))
     1201        {
     1202            $row['stream'] = $args['stream'];
    11961203        }
    11971204
     
    14481455        // count current request
    14491456        // capture request to apply request limits even if not logging.
    1450         $this->request_log($url, $args['stream']);
     1457        $this->request_log($url, $args);
    14511458
    14521459        // show nonempty url for checkpoint. if url empty use original url.
  • http-requests-manager/trunk/readme.txt

    r3298961 r3390578  
    55Requires at least: 4.7
    66Tested up to: 6.8
    7 Stable tag: 1.3.8
     7Stable tag: 1.3.9
    88License: GPLv2
    99
     
    201201
    202202
     203= 1.3.9 - 5 November 2025  =
     204
     205  * Fixed: calling $args['stream'] array value without checking existence.
     206
     207
    203208= 1.3.8 - 22 May 2025  =
    204209
Note: See TracChangeset for help on using the changeset viewer.