Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.
See #47632. Built from https://develop.svn.wordpress.org/trunk@45590 git-svn-id: http://core.svn.wordpress.org/trunk@45401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -120,7 +120,8 @@ class WP_Nav_Menu_Widget extends WP_Widget {
|
||||
// Get menus
|
||||
$menus = wp_get_nav_menus();
|
||||
|
||||
$empty_menus_style = $not_empty_menus_style = '';
|
||||
$empty_menus_style = '';
|
||||
$not_empty_menus_style = '';
|
||||
if ( empty( $menus ) ) {
|
||||
$empty_menus_style = ' style="display:none" ';
|
||||
} else {
|
||||
|
||||
@@ -138,7 +138,8 @@ class WP_Widget_Links extends WP_Widget {
|
||||
)
|
||||
);
|
||||
$link_cats = get_terms( 'link_category' );
|
||||
if ( ! $limit = intval( $instance['limit'] ) ) {
|
||||
$limit = intval( $instance['limit'] );
|
||||
if ( ! $limit ) {
|
||||
$limit = -1;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user