Skip to content
Permalink
Browse files

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
  • Loading branch information...
whyisjake committed Sep 25, 2019
1 parent ad7b57b commit d639bd43f02a3e6353e3c71405cf476f0240bb02
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/wp-admin/includes/class-wp-links-list-table.php
@@ -58,7 +58,7 @@ public function prepare_items() {
'hide_empty' => 0,
);
if ( 'all' != $cat_id ) {
if ( 'all' !== $cat_id ) {
$args['category'] = $cat_id;
}
if ( ! empty( $s ) ) {
@@ -97,7 +97,7 @@ protected function get_bulk_actions() {
protected function extra_tablenav( $which ) {
global $cat_id;
if ( 'top' != $which ) {
if ( 'top' !== $which ) {
return;
}
?>
@@ -228,7 +228,7 @@ public function column_categories( $link ) {
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;

0 comments on commit d639bd4

Please sign in to comment.
You can’t perform that action at this time.