Coding Standards: Use strict comparison in `wp-admin/includes/class-wp-plugin-install-list-table.php`.
See #50767. Built from https://develop.svn.wordpress.org/trunk@48970 git-svn-id: http://core.svn.wordpress.org/trunk@48732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e5211a691
commit
f29d62012d
|
@ -101,13 +101,16 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
if ( 'search' === $tab ) {
|
if ( 'search' === $tab ) {
|
||||||
$tabs['search'] = __( 'Search Results' );
|
$tabs['search'] = __( 'Search Results' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'beta' === $tab || false !== strpos( get_bloginfo( 'version' ), '-' ) ) {
|
if ( 'beta' === $tab || false !== strpos( get_bloginfo( 'version' ), '-' ) ) {
|
||||||
$tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
|
$tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$tabs['featured'] = _x( 'Featured', 'Plugin Installer' );
|
$tabs['featured'] = _x( 'Featured', 'Plugin Installer' );
|
||||||
$tabs['popular'] = _x( 'Popular', 'Plugin Installer' );
|
$tabs['popular'] = _x( 'Popular', 'Plugin Installer' );
|
||||||
$tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' );
|
$tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' );
|
||||||
$tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
|
$tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' );
|
||||||
|
|
||||||
if ( current_user_can( 'upload_plugins' ) ) {
|
if ( current_user_can( 'upload_plugins' ) ) {
|
||||||
// No longer a real tab. Here for filter compatibility.
|
// No longer a real tab. Here for filter compatibility.
|
||||||
// Gets skipped in get_views().
|
// Gets skipped in get_views().
|
||||||
|
@ -427,7 +430,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
$a = $plugin_a->$orderby;
|
$a = $plugin_a->$orderby;
|
||||||
$b = $plugin_b->$orderby;
|
$b = $plugin_b->$orderby;
|
||||||
|
|
||||||
if ( $a == $b ) {
|
if ( $a === $b ) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -472,7 +475,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the group heading if there is one.
|
// Display the group heading if there is one.
|
||||||
if ( isset( $plugin['group'] ) && $plugin['group'] != $group ) {
|
if ( isset( $plugin['group'] ) && $plugin['group'] !== $group ) {
|
||||||
if ( isset( $this->groups[ $plugin['group'] ] ) ) {
|
if ( isset( $this->groups[ $plugin['group'] ] ) ) {
|
||||||
$group_name = $this->groups[ $plugin['group'] ];
|
$group_name = $this->groups[ $plugin['group'] ];
|
||||||
if ( isset( $plugins_group_titles[ $group_name ] ) ) {
|
if ( isset( $plugins_group_titles[ $group_name ] ) ) {
|
||||||
|
@ -493,6 +496,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
$group = $plugin['group'];
|
$group = $plugin['group'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = wp_kses( $plugin['name'], $plugins_allowedtags );
|
$title = wp_kses( $plugin['name'], $plugins_allowedtags );
|
||||||
|
|
||||||
// Remove any HTML from the description.
|
// Remove any HTML from the description.
|
||||||
|
@ -743,7 +747,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||||
_nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
|
_nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ),
|
||||||
number_format_i18n( $active_installs_millions )
|
number_format_i18n( $active_installs_millions )
|
||||||
);
|
);
|
||||||
} elseif ( 0 == $plugin['active_installs'] ) {
|
} elseif ( 0 === $plugin['active_installs'] ) {
|
||||||
$active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
|
$active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
|
||||||
} else {
|
} else {
|
||||||
$active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+';
|
$active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+';
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.6-alpha-48969';
|
$wp_version = '5.6-alpha-48970';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue