Changeset 48970
- Timestamp:
- 09/11/2020 01:03:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r48520 r48970 102 102 $tabs['search'] = __( 'Search Results' ); 103 103 } 104 104 105 if ( 'beta' === $tab || false !== strpos( get_bloginfo( 'version' ), '-' ) ) { 105 106 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); 106 107 } 108 107 109 $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); 108 110 $tabs['popular'] = _x( 'Popular', 'Plugin Installer' ); 109 111 $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' ); 110 112 $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); 113 111 114 if ( current_user_can( 'upload_plugins' ) ) { 112 115 // No longer a real tab. Here for filter compatibility. … … 428 431 $b = $plugin_b->$orderby; 429 432 430 if ( $a == $b ) {433 if ( $a === $b ) { 431 434 return 0; 432 435 } … … 473 476 474 477 // Display the group heading if there is one. 475 if ( isset( $plugin['group'] ) && $plugin['group'] != $group ) {478 if ( isset( $plugin['group'] ) && $plugin['group'] !== $group ) { 476 479 if ( isset( $this->groups[ $plugin['group'] ] ) ) { 477 480 $group_name = $this->groups[ $plugin['group'] ]; … … 494 497 $group = $plugin['group']; 495 498 } 499 496 500 $title = wp_kses( $plugin['name'], $plugins_allowedtags ); 497 501 … … 744 748 number_format_i18n( $active_installs_millions ) 745 749 ); 746 } elseif ( 0 == $plugin['active_installs'] ) {750 } elseif ( 0 === $plugin['active_installs'] ) { 747 751 $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' ); 748 752 } else {
Note: See TracChangeset
for help on using the changeset viewer.