Changeset 8033
- Timestamp:
- 10/15/2026 09:58:08 PM (8 days ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/testcase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r7924 r8033 15 15 public function setUp(): void { 16 16 parent::setUp(); 17 add_filter( 'get_avatar_url', array( $this, 'filter_gravatar_url' ) ); 17 18 18 19 $this->factory = new BBP_UnitTest_Factory; … … 34 35 global $wpdb; 35 36 37 remove_filter( 'get_avatar_url', array( $this, 'filter_gravatar_url' ) ); 36 38 parent::tearDown(); 37 39 … … 51 53 52 54 $this->commit_transaction(); 55 } 56 57 /** 58 * Normalize the randomly selected Gravatar server in generated URLs. 59 * 60 * @param string $url Gravatar URL. 61 * 62 * @return string Normalized Gravatar URL. 63 */ 64 public function filter_gravatar_url( $url ) { 65 return preg_replace( '|//[0-2]\.gravatar\.com|', '//secure.gravatar.com', $url ); 53 66 } 54 67
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)