From 406dc81ebce4bb8cf6ddc95b9d56c80f1b861375 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov
Date: Sun, 6 Oct 2019 15:28:03 +0000
Subject: [PATCH] Coding Standards: Fix WPCS issues in `WP_Widget_Links` and
`WP_Widget_Pages`.
Props itowhid06.
Fixes #48228.
Built from https://develop.svn.wordpress.org/trunk@46415
git-svn-id: http://core.svn.wordpress.org/trunk@46213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-includes/version.php | 2 +-
wp-includes/widgets/class-wp-widget-links.php | 4 ++--
wp-includes/widgets/class-wp-widget-pages.php | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 5484b0d424..9a1e87fe59 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.3-beta2-46414';
+$wp_version = '5.3-beta2-46415';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
diff --git a/wp-includes/widgets/class-wp-widget-links.php b/wp-includes/widgets/class-wp-widget-links.php
index 233c64bcd8..92924380ed 100644
--- a/wp-includes/widgets/class-wp-widget-links.php
+++ b/wp-includes/widgets/class-wp-widget-links.php
@@ -45,7 +45,7 @@ class WP_Widget_Links extends WP_Widget {
$show_images = isset( $instance['images'] ) ? $instance['images'] : true;
$category = isset( $instance['category'] ) ? $instance['category'] : false;
$orderby = isset( $instance['orderby'] ) ? $instance['orderby'] : 'name';
- $order = $orderby == 'rating' ? 'DESC' : 'ASC';
+ $order = 'rating' === $orderby ? 'DESC' : 'ASC';
$limit = isset( $instance['limit'] ) ? $instance['limit'] : -1;
$before_widget = preg_replace( '/id="[^"]*"/', 'id="%id"', $args['before_widget'] );
@@ -175,7 +175,7 @@ class WP_Widget_Links extends WP_Widget {
-
+