- Timestamp:
- 09/22/2015 06:05:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r34128 r34383 258 258 return 0; 259 259 260 if ( 'DESC' == $order ) {260 if ( 'DESC' === $order ) { 261 261 return strcasecmp( $b, $a ); 262 262 } else { … … 338 338 } 339 339 340 if ( 'search' != $type ) {340 if ( 'search' !== $type ) { 341 341 $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>", 342 342 add_query_arg('plugin_status', $type, 'plugins.php'), 343 ( $type == $status ) ? ' class="current"' : '',343 ( $type === $status ) ? ' class="current"' : '', 344 344 sprintf( $text, number_format_i18n( $count ) ) 345 345 ); … … 401 401 echo '<div class="alignleft actions">'; 402 402 403 if ( ! $this->screen->in_admin( 'network' ) && 'recently_activated' == $status )403 if ( ! $this->screen->in_admin( 'network' ) && 'recently_activated' === $status ) { 404 404 submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); 405 elseif ( 'top' == $which && 'mustuse' == $status )405 } elseif ( 'top' === $which && 'mustuse' === $status ) { 406 406 echo '<p>' . sprintf( __( 'Files in the <code>%s</code> directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '</p>'; 407 elseif ( 'top' == $which && 'dropins' == $status )407 } elseif ( 'top' === $which && 'dropins' === $status ) { 408 408 echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the <code>%s</code> directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '</p>'; 409 409 } 410 410 echo '</div>'; 411 411 } … … 459 459 ); 460 460 461 if ( 'mustuse' == $context ) {461 if ( 'mustuse' === $context ) { 462 462 $is_active = true; 463 } elseif ( 'dropins' == $context ) {463 } elseif ( 'dropins' === $context ) { 464 464 $dropins = _get_dropins(); 465 465 $plugin_name = $plugin_file;
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)