WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/27/2021 06:44:12 PM (6 months ago)
Author:
iandunn
Message:

Official WP Events: Clarify debugging output.

The initial assignment to $this->debug was removed because it's always overwritten in the constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/meetup/class-meetup-client.php

    r9958 r11153  
    3333     * @var bool If true, the client will fetch fewer results, for faster debugging.
    3434     */
    35     protected $debug = false;
     35    protected $debug;
    3636
    3737    /**
     
    165165            }
    166166
    167             if ( $this->debug ) {
     167            if ( $request_url && $this->debug ) {
     168                if ( 'cli' === php_sapi_name() ) {
     169                    echo "\nDebug mode: Skipping future paginated requests to $request_url";
     170                }
     171
    168172                break;
    169173            }
Note: See TracChangeset for help on using the changeset viewer.