General: Further phpcs cleanup.

In [46312] we attempted to do some `phpcs` cleanup. This commit cleans up three issues that were introduced in [46309].

Fixes #48142.
Props whyisjake, garrett-eclipse.


git-svn-id: https://develop.svn.wordpress.org/trunk@46313 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2019-09-25 23:37:31 +00:00
parent ad7b57b611
commit d639bd43f0
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class WP_Links_List_Table extends WP_List_Table {
'hide_empty' => 0,
);
if ( 'all' != $cat_id ) {
if ( 'all' !== $cat_id ) {
$args['category'] = $cat_id;
}
if ( ! empty( $s ) ) {
@ -97,7 +97,7 @@ class WP_Links_List_Table extends WP_List_Table {
protected function extra_tablenav( $which ) {
global $cat_id;
if ( 'top' != $which ) {
if ( 'top' !== $which ) {
return;
}
?>
@ -228,7 +228,7 @@ class WP_Links_List_Table extends WP_List_Table {
echo $cat->get_error_message();
}
$cat_name = $cat->name;
if ( $cat_id != $category ) {
if ( $cat_id !== $category ) {
$cat_name = "<a href='link-manager.php?cat_id=$category'>$cat_name</a>";
}
$cat_names[] = $cat_name;