Changeset 3364835
- Timestamp:
- 09/20/2025 06:10:08 AM (6 months ago)
- Location:
- debughawk
- Files:
-
- 10 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from debughawk/trunk)
-
tags/1.0.1/debughawk.php (modified) (2 diffs)
-
tags/1.0.1/readme.txt (modified) (2 diffs)
-
tags/1.0.1/src/Dispatchers/RedirectDispatcher.php (modified) (2 diffs)
-
tags/1.0.1/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.0.1/wp-content/db.php (modified) (1 diff)
-
trunk/debughawk.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Dispatchers/RedirectDispatcher.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wp-content/db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
debughawk/tags/1.0.1/debughawk.php
r3360884 r3364835 5 5 * Description: WordPress performance debugging and monitoring, simplified. 6 6 * Author: DebugHawk 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Requires PHP: 7.4 9 9 * Requires WP: 6.3 … … 24 24 25 25 $config = defined( 'DEBUGHAWK_CONFIG' ) ? DEBUGHAWK_CONFIG : []; 26 $version = '1.0. 0';26 $version = '1.0.1'; 27 27 28 28 ( new Plugin( -
debughawk/tags/1.0.1/readme.txt
r3360884 r3364835 3 3 Tags: performance, monitoring, debug, debugging, query monitor 4 4 Tested up to: 6.8.2 5 Stable tag: 1.0. 05 Stable tag: 1.0.1 6 6 Requires at least: 6.3 7 7 Requires PHP: 7.4 … … 51 51 == Changelog == 52 52 53 = 1.0.1 = 54 * Only track redirects originating from the same domain 55 53 56 = 1.0.0 = 54 57 * Don't track /wp-login.php redirects -
debughawk/tags/1.0.1/src/Dispatchers/RedirectDispatcher.php
r3360884 r3364835 16 16 17 17 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() ) { 19 19 return; 20 20 } … … 43 43 } 44 44 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 45 52 protected function is_ignored_uri(): bool { 46 53 $ignored_uris = apply_filters( 'debughawk_ignored_redirect_uris', [ -
debughawk/tags/1.0.1/vendor/composer/installed.php
r3360884 r3364835 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
debughawk/tags/1.0.1/wp-content/db.php
r3360884 r3364835 5 5 * Description: Database drop-in for DebugHawk to capture database metrics and slow queries. 6 6 * Author: DebugHawk 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Requires PHP: 7.4 9 9 * Requires WP: 6.3 -
debughawk/trunk/debughawk.php
r3360884 r3364835 5 5 * Description: WordPress performance debugging and monitoring, simplified. 6 6 * Author: DebugHawk 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Requires PHP: 7.4 9 9 * Requires WP: 6.3 … … 24 24 25 25 $config = defined( 'DEBUGHAWK_CONFIG' ) ? DEBUGHAWK_CONFIG : []; 26 $version = '1.0. 0';26 $version = '1.0.1'; 27 27 28 28 ( new Plugin( -
debughawk/trunk/readme.txt
r3360884 r3364835 3 3 Tags: performance, monitoring, debug, debugging, query monitor 4 4 Tested up to: 6.8.2 5 Stable tag: 1.0. 05 Stable tag: 1.0.1 6 6 Requires at least: 6.3 7 7 Requires PHP: 7.4 … … 51 51 == Changelog == 52 52 53 = 1.0.1 = 54 * Only track redirects originating from the same domain 55 53 56 = 1.0.0 = 54 57 * Don't track /wp-login.php redirects -
debughawk/trunk/src/Dispatchers/RedirectDispatcher.php
r3360884 r3364835 16 16 17 17 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() ) { 19 19 return; 20 20 } … … 43 43 } 44 44 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 45 52 protected function is_ignored_uri(): bool { 46 53 $ignored_uris = apply_filters( 'debughawk_ignored_redirect_uris', [ -
debughawk/trunk/vendor/composer/installed.php
r3360884 r3364835 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
debughawk/trunk/wp-content/db.php
r3360884 r3364835 5 5 * Description: Database drop-in for DebugHawk to capture database metrics and slow queries. 6 6 * Author: DebugHawk 7 * Version: 1.0. 07 * Version: 1.0.1 8 8 * Requires PHP: 7.4 9 9 * Requires WP: 6.3
Note: See TracChangeset
for help on using the changeset viewer.