- Timestamp:
- 09/22/2015 06:05:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r34128 r34383 42 42 $page = $this->get_pagenum(); 43 43 44 $this->is_site_themes = ( 'site-themes-network' == $this->screen->id ) ? true : false;44 $this->is_site_themes = ( 'site-themes-network' === $this->screen->id ) ? true : false; 45 45 46 46 if ( $this->is_site_themes ) … … 146 146 $order = strtoupper( $order ); 147 147 148 if ( $orderby == 'Name' ) {149 if ( 'ASC' == $order )148 if ( $orderby === 'Name' ) { 149 if ( 'ASC' === $order ) { 150 150 $this->items = array_reverse( $this->items ); 151 } 151 152 } else { 152 153 uasort( $this->items, array( $this, '_order_callback' ) ); … … 207 208 return 0; 208 209 209 if ( 'DESC' == $order )210 if ( 'DESC' === $order ) 210 211 return ( $a < $b ) ? 1 : -1; 211 212 else … … 297 298 $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>", 298 299 esc_url( add_query_arg('theme_status', $type, $url) ), 299 ( $type == $status ) ? ' class="current"' : '',300 ( $type === $status ) ? ' class="current"' : '', 300 301 sprintf( $text, number_format_i18n( $count ) ) 301 302 ); … … 460 461 global $status, $totals; 461 462 if ( $theme->errors() ) { 462 $pre = $status == 'broken' ? __( 'Broken Theme:' ) . ' ' : '';463 $pre = $status === 'broken' ? __( 'Broken Theme:' ) . ' ' : ''; 463 464 echo '<p><strong class="error-message">' . $pre . $theme->errors()->get_error_message() . '</strong></p>'; 464 465 }
Note: See TracChangeset
for help on using the changeset viewer.