- Timestamp:
- 02/09/2020 04:52:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r47122 r47219 167 167 $order = strtoupper( $order ); 168 168 169 if ( $orderby === 'Name') {169 if ( 'Name' === $orderby ) { 170 170 if ( 'ASC' === $order ) { 171 171 $this->items = array_reverse( $this->items ); … … 503 503 } 504 504 505 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' )) {505 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && get_option( 'stylesheet' ) !== $stylesheet && get_option( 'template' ) !== $stylesheet ) { 506 506 $url = add_query_arg( 507 507 array( … … 581 581 global $status, $totals; 582 582 if ( $theme->errors() ) { 583 $pre = $status === 'broken'? __( 'Broken Theme:' ) . ' ' : '';583 $pre = 'broken' === $status ? __( 'Broken Theme:' ) . ' ' : ''; 584 584 echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>'; 585 585 }
Note: See TracChangeset
for help on using the changeset viewer.