- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r47122 r47219 71 71 72 72 if ( ! empty( $_REQUEST['mode'] ) ) { 73 $mode = $_REQUEST['mode'] === 'excerpt'? 'excerpt' : 'list';73 $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; 74 74 set_user_setting( 'sites_list_mode', $mode ); 75 75 } else { … … 264 264 265 265 foreach ( $statuses as $status => $label_count ) { 266 $current_link_attributes = $requested_status === $status || ( $requested_status === ''&& 'all' === $status )266 $current_link_attributes = $requested_status === $status || ( '' === $requested_status && 'all' === $status ) 267 267 ? ' class="current" aria-current="page"' 268 268 : ''; … … 477 477 } 478 478 479 echo ( $blog['last_updated'] === '0000-00-00 00:00:00') ? __( 'Never' ) : mysql2date( $date, $blog['last_updated'] );479 echo ( '0000-00-00 00:00:00' === $blog['last_updated'] ) ? __( 'Never' ) : mysql2date( $date, $blog['last_updated'] ); 480 480 } 481 481 … … 498 498 } 499 499 500 if ( $blog['registered'] === '0000-00-00 00:00:00') {500 if ( '0000-00-00 00:00:00' === $blog['registered'] ) { 501 501 echo '—'; 502 502 } else { … … 586 586 587 587 foreach ( $this->status_list as $status => $col ) { 588 if ( $blog[ $status ] == 1) {588 if ( 1 == $blog[ $status ] ) { 589 589 $class = " class='{$col[0]}'"; 590 590 } … … 694 694 $actions['backend'] = "<a href='" . esc_url( get_admin_url( $blog['blog_id'] ) ) . "' class='edit'>" . __( 'Dashboard' ) . '</a>'; 695 695 if ( get_network()->site_id != $blog['blog_id'] ) { 696 if ( $blog['deleted'] == '1') {696 if ( '1' == $blog['deleted'] ) { 697 697 $actions['activate'] = '<a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=activateblog&id=' . $blog['blog_id'] ), 'activateblog_' . $blog['blog_id'] ) ) . '">' . __( 'Activate' ) . '</a>'; 698 698 } else { … … 700 700 } 701 701 702 if ( $blog['archived'] == '1') {702 if ( '1' == $blog['archived'] ) { 703 703 $actions['unarchive'] = '<a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] ), 'unarchiveblog_' . $blog['blog_id'] ) ) . '">' . __( 'Unarchive' ) . '</a>'; 704 704 } else { … … 706 706 } 707 707 708 if ( $blog['spam'] == '1') {708 if ( '1' == $blog['spam'] ) { 709 709 $actions['unspam'] = '<a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=unspamblog&id=' . $blog['blog_id'] ), 'unspamblog_' . $blog['blog_id'] ) ) . '">' . _x( 'Not Spam', 'site' ) . '</a>'; 710 710 } else {
Note: See TracChangeset
for help on using the changeset viewer.