Changeset 47219 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 02/09/2020 04:52:28 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ms.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r47119 r47219 21 21 } 22 22 23 if ( $file['error'] != '0') { // There's already an error.23 if ( '0' != $file['error'] ) { // There's already an error. 24 24 return $file; 25 25 } … … 46 46 } 47 47 48 if ( $file['error'] != '0'&& ! isset( $_POST['html-upload'] ) && ! wp_doing_ajax() ) {48 if ( '0' != $file['error'] && ! isset( $_POST['html-upload'] ) && ! wp_doing_ajax() ) { 49 49 wp_die( $file['error'] . ' <a href="javascript:history.go(-1)">' . __( 'Back' ) . '</a>' ); 50 50 } … … 549 549 */ 550 550 function sync_category_tag_slugs( $term, $taxonomy ) { 551 if ( global_terms_enabled() && ( $taxonomy == 'category' || $taxonomy == 'post_tag') ) {551 if ( global_terms_enabled() && ( 'category' === $taxonomy || 'post_tag' === $taxonomy ) ) { 552 552 if ( is_object( $term ) ) { 553 553 $term->slug = sanitize_title( $term->name ); … … 645 645 $code_lang = basename( $val, '.mo' ); 646 646 647 if ( $code_lang == 'en_US') { // American English.647 if ( 'en_US' === $code_lang ) { // American English. 648 648 $flag = true; 649 649 $ae = __( 'American English' ); 650 650 $output[ $ae ] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . $ae . '</option>'; 651 } elseif ( $code_lang == 'en_GB') { // British English.651 } elseif ( 'en_GB' === $code_lang ) { // British English. 652 652 $flag = true; 653 653 $be = __( 'British English' ); … … 659 659 } 660 660 661 if ( $flag === false) { // WordPress English.661 if ( false === $flag ) { // WordPress English. 662 662 $output[] = '<option value=""' . selected( $current, '', false ) . '>' . __( 'English' ) . '</option>'; 663 663 } … … 726 726 return $data; 727 727 } 728 if ( $data['post_type'] != 'page') {728 if ( 'page' !== $data['post_type'] ) { 729 729 return $data; 730 730 } 731 if ( ! isset( $data['post_name'] ) || $data['post_name'] == '') {731 if ( ! isset( $data['post_name'] ) || '' === $data['post_name'] ) { 732 732 return $data; 733 733 } … … 814 814 */ 815 815 function can_edit_network( $network_id ) { 816 if ( $network_id == get_current_network_id()) {816 if ( get_current_network_id() == $network_id ) { 817 817 $result = true; 818 818 } else { … … 874 874 $allusers = (array) $_POST['allusers']; 875 875 foreach ( $allusers as $user_id ) { 876 if ( $user_id != '' && $user_id != '0') {876 if ( '' != $user_id && '0' != $user_id ) { 877 877 $delete_user = get_userdata( $user_id ); 878 878
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)