Changeset 54896
- Timestamp:
- 11/29/2022 09:11:42 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r54891 r54896 627 627 628 628 $r = ''; 629 ++ 629 ++$count; 630 630 631 631 if ( is_serialized( $entry['meta_value'] ) ) { -
trunk/src/wp-includes/functions.php
r54891 r54896 263 263 $weekday = $wp_locale->get_weekday( $datetime->format( 'w' ) ); 264 264 265 for ( $i = 0; $i < $format_length; $i 265 for ( $i = 0; $i < $format_length; $i++ ) { 266 266 switch ( $format[ $i ] ) { 267 267 case 'D': -
trunk/src/wp-includes/sitemaps/class-wp-sitemaps-provider.php
r54133 r54896 108 108 109 109 foreach ( $sitemap_types as $type ) { 110 for ( $page = 1; $page <= $type['pages']; $page 110 for ( $page = 1; $page <= $type['pages']; $page++ ) { 111 111 $sitemap_entry = array( 112 112 'loc' => $this->get_sitemap_url( $type['name'], $page ), -
trunk/tests/phpunit/includes/wp-profiler.php
r51551 r54896 74 74 if ( isset( $this->profile[ $name ] ) ) { 75 75 $this->profile[ $name ]['time'] += $time; 76 $this->profile[ $name ]['calls'] 76 $this->profile[ $name ]['calls']++; 77 77 $this->profile[ $name ]['cache_cold_hits'] += ( $wp_object_cache->cold_cache_hits - $item['cache_cold_hits'] ); 78 78 $this->profile[ $name ]['cache_warm_hits'] += ( $wp_object_cache->warm_cache_hits - $item['cache_warm_hits'] ); … … 144 144 $sql = preg_replace( '/(WHERE \w+ =) \'\[-\w]+\'/', '$1 \'xxx\'', $sql ); 145 145 146 $out[ $sql ] 146 $out[ $sql ]++; 147 147 } 148 148 asort( $out ); -
trunk/tests/phpunit/tests/date/theDate.php
r52010 r54896 81 81 82 82 public function count_hook( $input ) { 83 $this->hooks_called[ current_filter() ] 83 $this->hooks_called[ current_filter() ]++; 84 84 85 85 return $input; -
trunk/tests/phpunit/tests/meta/isProtectedMeta.php
r49387 r54896 18 18 array( '_wp_attachment' ), 19 19 ); 20 for ( $i = 0, $max = 31; $i < $max; $i 20 for ( $i = 0, $max = 31; $i < $max; $i++ ) { 21 21 $protected_keys[] = array( chr( $i ) . '_wp_attachment' ); 22 22 } 23 for ( $i = 127, $max = 159; $i <= $max; $i 23 for ( $i = 127, $max = 159; $i <= $max; $i++ ) { 24 24 $protected_keys[] = array( chr( $i ) . '_wp_attachment' ); 25 25 } … … 43 43 ); 44 44 45 for ( $i = 32, $max = 94; $i <= $max; $i 45 for ( $i = 32, $max = 94; $i <= $max; $i++ ) { 46 46 $unprotected_keys[] = array( chr( $i ) . '_wp_attachment' ); 47 47 } 48 for ( $i = 96, $max = 126; $i <= $max; $i 48 for ( $i = 96, $max = 126; $i <= $max; $i++ ) { 49 49 $unprotected_keys[] = array( chr( $i ) . '_wp_attachment' ); 50 50 } -
trunk/tests/phpunit/tests/rest-api/rest-sidebars-controller.php
r54058 r54896 950 950 unset( $data[ $count ]['_links'] ); 951 951 } 952 $count 952 $count++; 953 953 } 954 954 -
trunk/tests/phpunit/tests/rest-api/rest-widgets-controller.php
r54058 r54896 1556 1556 unset( $data[ $count ]['_links'] ); 1557 1557 } 1558 $count 1558 $count++; 1559 1559 } 1560 1560 -
trunk/tests/phpunit/tests/rest-api/wpRestMenuItemsController.php
r52248 r54896 376 376 $expected = array(); 377 377 $actual = array(); 378 for ( $i = 1; $i < 5; $i 378 for ( $i = 1; $i < 5; $i++ ) { 379 379 $request = new WP_REST_Request( 'POST', '/wp/v2/menu-items' ); 380 380 $request->add_header( 'content-type', 'application/x-www-form-urlencoded' ); … … 922 922 $this->assertSame( $taxonomy->name, $links['https://api.w.org/term'][ $num ]['attributes']['taxonomy'] ); 923 923 $this->assertSame( add_query_arg( 'post', $data['id'], rest_url( 'wp/v2/' . $taxonomy->rest_base ) ), $links['https://api.w.org/term'][ $num ]['href'] ); 924 $num 924 $num++; 925 925 } 926 926 -
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r54889 r54896 649 649 650 650 $global_styles_query_count = 0; 651 for ( $i = 0; $i < 3; $i 651 for ( $i = 0; $i < 3; $i++ ) { 652 652 $new_user_cpt = WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles( $theme ); 653 653 WP_Theme_JSON_Resolver::clean_cached_data();
Note: See TracChangeset
for help on using the changeset viewer.