diff -r c7c34916027a -r 177826044cd9 wp/wp-includes/widgets/class-wp-widget-categories.php --- a/wp/wp-includes/widgets/class-wp-widget-categories.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-includes/widgets/class-wp-widget-categories.php Mon Oct 14 18:28:13 2019 +0200 @@ -23,8 +23,8 @@ */ public function __construct() { $widget_ops = array( - 'classname' => 'widget_categories', - 'description' => __( 'A list or dropdown of categories.' ), + 'classname' => 'widget_categories', + 'description' => __( 'A list or dropdown of categories.' ), 'customize_selective_refresh' => true, ); parent::__construct( 'categories', __( 'Categories' ), $widget_ops ); @@ -67,13 +67,13 @@ if ( $d ) { echo sprintf( '
', esc_url( home_url() ) ); - $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; + $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; $first_dropdown = false; echo ''; $cat_args['show_option_none'] = __( 'Select Category' ); - $cat_args['id'] = $dropdown_id; + $cat_args['id'] = $dropdown_id; /** * Filters the arguments for the Categories widget drop-down. @@ -105,26 +105,26 @@ /* ]]> */ - + ?> - '') ); - $title = sanitize_text_field( $instance['title'] ); - $count = isset($instance['count']) ? (bool) $instance['count'] :false; + $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); + $count = isset( $instance['count'] ) ? (bool) $instance['count'] : false; $hierarchical = isset( $instance['hierarchical'] ) ? (bool) $instance['hierarchical'] : false; - $dropdown = isset( $instance['dropdown'] ) ? (bool) $instance['dropdown'] : false; + $dropdown = isset( $instance['dropdown'] ) ? (bool) $instance['dropdown'] : false; ?> -

-

+

+

-

/> -
+

/> +
- /> -
+ /> +
- /> -

+ /> +