Changeset 47808 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r47550 r47808 138 138 return $blog; 139 139 } 140 if ( substr( $fields['domain'], 0, 4 ) == 'www.') {140 if ( 'www.' === substr( $fields['domain'], 0, 4 ) ) { 141 141 $nowww = substr( $fields['domain'], 4 ); 142 142 $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain IN (%s,%s) AND path = %s ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'], $fields['path'] ) ); … … 156 156 return $blog; 157 157 } 158 if ( substr( $fields['domain'], 0, 4 ) == 'www.') {158 if ( 'www.' === substr( $fields['domain'], 0, 4 ) ) { 159 159 $nowww = substr( $fields['domain'], 4 ); 160 160 $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain IN (%s,%s) ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'] ) ); … … 785 785 } 786 786 787 if ( 'publish' != $new_status && 'publish' != $old_status ) {787 if ( 'publish' !== $new_status && 'publish' !== $old_status ) { 788 788 return; 789 789 } … … 810 810 } 811 811 812 if ( 'publish' != $post->post_status ) {812 if ( 'publish' !== $post->post_status ) { 813 813 return; 814 814 }
Note: See TracChangeset
for help on using the changeset viewer.