Changeset 55642
- Timestamp:
- 04/10/2023 12:54:28 PM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-importer.php
r54133 r55642 42 42 } 43 43 } 44 } while ( count( $results ) == $limit );44 } while ( count( $results ) === $limit ); 45 45 46 46 return $hashtable; … … 111 111 } 112 112 } 113 } while ( count( $results ) == $limit );113 } while ( count( $results ) === $limit ); 114 114 115 115 return $hashtable; -
trunk/src/wp-admin/includes/menu.php
r53196 r55642 242 242 } 243 243 244 if ( $i == $items_count ) { // Last item.244 if ( $i === $items_count ) { // Last item. 245 245 $classes = $menu[ $order ][4]; 246 246 $menu[ $order ][4] = add_cssclass( 'menu-top-last', $classes ); -
trunk/src/wp-includes/class-wp-query.php
r55597 r55642 2253 2253 if ( ! $post_type ) { 2254 2254 $post_type = 'any'; 2255 } elseif ( count( $post_type ) == 1 ) {2255 } elseif ( count( $post_type ) === 1 ) { 2256 2256 $post_type = $post_type[0]; 2257 2257 } -
trunk/src/wp-includes/class-wp-rewrite.php
r54391 r55642 1400 1400 foreach ( $this->extra_permastructs as $permastructname => $struct ) { 1401 1401 if ( is_array( $struct ) ) { 1402 if ( count( $struct ) == 2 ) {1402 if ( count( $struct ) === 2 ) { 1403 1403 $rules = $this->generate_rewrite_rules( $struct[0], $struct[1] ); 1404 1404 } else { -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r55539 r55642 4244 4244 4245 4245 // If no specific options where asked for, return all of them. 4246 if ( count( $options ) == 0 ) {4246 if ( count( $options ) === 0 ) { 4247 4247 $options = array_keys( $this->blog_options ); 4248 4248 } -
trunk/src/wp-includes/deprecated.php
r55620 r55642 2298 2298 $metas = array_map('maybe_unserialize', $metas); 2299 2299 2300 if ( count($metas) == 1 )2300 if ( count($metas) === 1 ) 2301 2301 return $metas[0]; 2302 2302 else -
trunk/src/wp-includes/formatting.php
r55563 r55642 1170 1170 $unicode_length += $encoded_char_length; 1171 1171 } else { 1172 if ( count( $values ) == 0 ) {1172 if ( count( $values ) === 0 ) { 1173 1173 if ( $value < 224 ) { 1174 1174 $num_octets = 2; … … 1185 1185 break; 1186 1186 } 1187 if ( count( $values ) == $num_octets ) {1187 if ( count( $values ) === $num_octets ) { 1188 1188 for ( $j = 0; $j < $num_octets; $j++ ) { 1189 1189 $unicode .= '%' . dechex( $values[ $j ] ); … … 3392 3392 global $wpsmiliestrans; 3393 3393 3394 if ( count( $matches ) == 0 ) {3394 if ( count( $matches ) === 0 ) { 3395 3395 return ''; 3396 3396 } … … 5243 5243 $args = (array) $args; 5244 5244 $result = array_shift( $args ); 5245 if ( count( $args ) == 1 ) {5245 if ( count( $args ) === 1 ) { 5246 5246 $result .= $l['between_only_two'] . array_shift( $args ); 5247 5247 } … … 5252 5252 $arg = array_shift( $args ); 5253 5253 $i--; 5254 if ( 0 == $i ) {5254 if ( 0 === $i ) { 5255 5255 $result .= $l['between_last_two'] . $arg; 5256 5256 } else { -
trunk/src/wp-includes/functions.php
r55641 r55642 4755 4755 $wpsmiliestrans = apply_filters( 'smilies', $wpsmiliestrans ); 4756 4756 4757 if ( count( $wpsmiliestrans ) == 0 ) {4757 if ( count( $wpsmiliestrans ) === 0 ) { 4758 4758 return; 4759 4759 } -
trunk/src/wp-includes/kses.php
r55564 r55642 789 789 $split = preg_split( '/\s*=\s*/', $attr, 2 ); 790 790 $name = $split[0]; 791 if ( count( $split ) == 2 ) {791 if ( count( $split ) === 2 ) { 792 792 $value = $split[1]; 793 793 -
trunk/src/wp-includes/ms-functions.php
r55526 r55642 275 275 276 276 $blogs = get_blogs_of_user( $user_id ); 277 if ( count( $blogs ) == 0 ) {277 if ( count( $blogs ) === 0 ) { 278 278 update_user_meta( $user_id, 'primary_blog', '' ); 279 279 update_user_meta( $user_id, 'source_domain', '' ); -
trunk/src/wp-includes/pluggable.php
r55455 r55642 433 433 434 434 if ( preg_match( '/(.*)<(.+)>/', $address, $matches ) ) { 435 if ( count( $matches ) == 3 ) {435 if ( count( $matches ) === 3 ) { 436 436 $recipient_name = $matches[1]; 437 437 $address = $matches[2]; -
trunk/src/wp-includes/post.php
r55617 r55642 5733 5733 } 5734 5734 5735 if ( 0 == $p->post_parent && count( $revparts ) == $count + 1 && $p->post_name == $revparts[ $count ] ) {5735 if ( 0 == $p->post_parent && count( $revparts ) === $count + 1 && $p->post_name == $revparts[ $count ] ) { 5736 5736 $foundid = $page->ID; 5737 5737 if ( $page->post_type == $post_type ) { -
trunk/src/wp-includes/template.php
r55013 r55642 153 153 $templates = array(); 154 154 155 if ( count( $post_types ) == 1 ) {155 if ( count( $post_types ) === 1 ) { 156 156 $post_type = reset( $post_types ); 157 157 $templates[] = "archive-{$post_type}.php";
Note: See TracChangeset
for help on using the changeset viewer.