Plugin Directory

Changeset 3364835


Ignore:
Timestamp:
09/20/2025 06:10:08 AM (6 months ago)
Author:
A5hleyRich
Message:

Update to version 1.0.1 from GitHub

Location:
debughawk
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • debughawk/tags/1.0.1/debughawk.php

    r3360884 r3364835  
    55 * Description: WordPress performance debugging and monitoring, simplified.
    66 * Author: DebugHawk
    7  * Version: 1.0.0
     7 * Version: 1.0.1
    88 * Requires PHP: 7.4
    99 * Requires WP: 6.3
     
    2424
    2525$config  = defined( 'DEBUGHAWK_CONFIG' ) ? DEBUGHAWK_CONFIG : [];
    26 $version = '1.0.0';
     26$version = '1.0.1';
    2727
    2828( new Plugin(
  • debughawk/tags/1.0.1/readme.txt

    r3360884 r3364835  
    33Tags: performance, monitoring, debug, debugging, query monitor
    44Tested up to: 6.8.2
    5 Stable tag: 1.0.0
     5Stable tag: 1.0.1
    66Requires at least: 6.3
    77Requires PHP: 7.4
     
    5151== Changelog ==
    5252
     53= 1.0.1 =
     54* Only track redirects originating from the same domain
     55
    5356= 1.0.0 =
    5457* Don't track /wp-login.php redirects
  • debughawk/tags/1.0.1/src/Dispatchers/RedirectDispatcher.php

    r3360884 r3364835  
    1616
    1717    public function send_redirect_metrics(): void {
    18         if ( ! $this->collectors->request->is_redirect() || $this->is_ignored_uri() ) {
     18        if ( ! $this->collectors->request->is_redirect() || $this->is_different_domain() || $this->is_ignored_uri() ) {
    1919            return;
    2020        }
     
    4343    }
    4444
     45    protected function is_different_domain(): bool {
     46        $host = isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( $_SERVER['HTTP_HOST'] ) : '';
     47        $home = parse_url( home_url(), PHP_URL_HOST );
     48
     49        return strtolower($host) !== strtolower($home);
     50    }
     51
    4552    protected function is_ignored_uri(): bool {
    4653        $ignored_uris = apply_filters( 'debughawk_ignored_redirect_uris', [
  • debughawk/tags/1.0.1/vendor/composer/installed.php

    r3360884 r3364835  
    22    'root' => array(
    33        'name' => 'debughawk/debughawk-plugin',
    4         'pretty_version' => 'v1.0.0',
    5         'version' => '1.0.0.0',
    6         'reference' => '0f3b143754d1862b8630ea61d26619f245bb1bf5',
     4        'pretty_version' => 'v1.0.1',
     5        'version' => '1.0.1.0',
     6        'reference' => '836254a322db0d24ef91f2f301cd6e2b94c10f42',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'debughawk/debughawk-plugin' => array(
    14             'pretty_version' => 'v1.0.0',
    15             'version' => '1.0.0.0',
    16             'reference' => '0f3b143754d1862b8630ea61d26619f245bb1bf5',
     14            'pretty_version' => 'v1.0.1',
     15            'version' => '1.0.1.0',
     16            'reference' => '836254a322db0d24ef91f2f301cd6e2b94c10f42',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • debughawk/tags/1.0.1/wp-content/db.php

    r3360884 r3364835  
    55 * Description: Database drop-in for DebugHawk to capture database metrics and slow queries.
    66 * Author: DebugHawk
    7  * Version: 1.0.0
     7 * Version: 1.0.1
    88 * Requires PHP: 7.4
    99 * Requires WP: 6.3
  • debughawk/trunk/debughawk.php

    r3360884 r3364835  
    55 * Description: WordPress performance debugging and monitoring, simplified.
    66 * Author: DebugHawk
    7  * Version: 1.0.0
     7 * Version: 1.0.1
    88 * Requires PHP: 7.4
    99 * Requires WP: 6.3
     
    2424
    2525$config  = defined( 'DEBUGHAWK_CONFIG' ) ? DEBUGHAWK_CONFIG : [];
    26 $version = '1.0.0';
     26$version = '1.0.1';
    2727
    2828( new Plugin(
  • debughawk/trunk/readme.txt

    r3360884 r3364835  
    33Tags: performance, monitoring, debug, debugging, query monitor
    44Tested up to: 6.8.2
    5 Stable tag: 1.0.0
     5Stable tag: 1.0.1
    66Requires at least: 6.3
    77Requires PHP: 7.4
     
    5151== Changelog ==
    5252
     53= 1.0.1 =
     54* Only track redirects originating from the same domain
     55
    5356= 1.0.0 =
    5457* Don't track /wp-login.php redirects
  • debughawk/trunk/src/Dispatchers/RedirectDispatcher.php

    r3360884 r3364835  
    1616
    1717    public function send_redirect_metrics(): void {
    18         if ( ! $this->collectors->request->is_redirect() || $this->is_ignored_uri() ) {
     18        if ( ! $this->collectors->request->is_redirect() || $this->is_different_domain() || $this->is_ignored_uri() ) {
    1919            return;
    2020        }
     
    4343    }
    4444
     45    protected function is_different_domain(): bool {
     46        $host = isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( $_SERVER['HTTP_HOST'] ) : '';
     47        $home = parse_url( home_url(), PHP_URL_HOST );
     48
     49        return strtolower($host) !== strtolower($home);
     50    }
     51
    4552    protected function is_ignored_uri(): bool {
    4653        $ignored_uris = apply_filters( 'debughawk_ignored_redirect_uris', [
  • debughawk/trunk/vendor/composer/installed.php

    r3360884 r3364835  
    22    'root' => array(
    33        'name' => 'debughawk/debughawk-plugin',
    4         'pretty_version' => 'v1.0.0',
    5         'version' => '1.0.0.0',
    6         'reference' => '0f3b143754d1862b8630ea61d26619f245bb1bf5',
     4        'pretty_version' => 'v1.0.1',
     5        'version' => '1.0.1.0',
     6        'reference' => '836254a322db0d24ef91f2f301cd6e2b94c10f42',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'debughawk/debughawk-plugin' => array(
    14             'pretty_version' => 'v1.0.0',
    15             'version' => '1.0.0.0',
    16             'reference' => '0f3b143754d1862b8630ea61d26619f245bb1bf5',
     14            'pretty_version' => 'v1.0.1',
     15            'version' => '1.0.1.0',
     16            'reference' => '836254a322db0d24ef91f2f301cd6e2b94c10f42',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • debughawk/trunk/wp-content/db.php

    r3360884 r3364835  
    55 * Description: Database drop-in for DebugHawk to capture database metrics and slow queries.
    66 * Author: DebugHawk
    7  * Version: 1.0.0
     7 * Version: 1.0.1
    88 * Requires PHP: 7.4
    99 * Requires WP: 6.3
Note: See TracChangeset for help on using the changeset viewer.