Skip to content

Commit

Permalink
Merge branch 'add/62503-speculative-loading' of github.com:felixarntz…
Browse files Browse the repository at this point in the history
…/wordpress-develop into add/62503-speculative-loading
  • Loading branch information
felixarntz committed Jan 10, 2025
2 parents 70b6204 + 8a55d2f commit cae7faa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function test_wp_get_speculation_rules_with_prerender( string $eagerness
}
}

public function data_eagerness(): array {
public static function data_eagerness(): array {
return array(
array( 'conservative' ),
array( 'moderate' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function () use ( $filter_value ) {
$this->assertSame( $expected, wp_get_speculation_rules_configuration() );
}

public function data_wp_get_speculation_rules_configuration_filter(): array {
public static function data_wp_get_speculation_rules_configuration_filter(): array {
return array(
'conservative prefetch' => array(
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function test_wp_is_valid_speculation_rules_eagerness( $eagerness, $expec
}
}

public function data_is_valid_speculation_rules_eagerness(): array {
public static function data_is_valid_speculation_rules_eagerness(): array {
return array(
'conservative' => array( 'conservative', true ),
'moderate' => array( 'moderate', true ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function test_wp_is_valid_speculation_rules_mode( $mode, $expected ) {
}
}

public function data_is_valid_speculation_rules_mode(): array {
public static function data_is_valid_speculation_rules_mode(): array {
return array(
'prefetch' => array( 'prefetch', true ),
'prerender' => array( 'prerender', true ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function test_prefix_path_pattern( string $base_path, string $path_patter
);
}

public function data_prefix_path_pattern(): array {
public static function data_prefix_path_pattern(): array {
return array(
array( '/', '/my-page/', '/my-page/' ),
array( '/', 'my-page/', '/my-page/' ),
Expand Down Expand Up @@ -82,7 +82,7 @@ static function () use ( $unescaped ) {
$this->assertSame( $expected, $contexts[ $context ] );
}

public function data_default_contexts_with_subdirectories(): array {
public static function data_default_contexts_with_subdirectories(): array {
return array(
array( 'home', 'https://example.com/subdir/', '/subdir/' ),
array( 'site', 'https://example.com/subdir/wp/', '/subdir/wp/' ),
Expand Down

0 comments on commit cae7faa

Please sign in to comment.