diff --git a/src/wp-includes/widgets/class-wp-widget-categories.php b/src/wp-includes/widgets/class-wp-widget-categories.php index fcb74a6818..876aa0688f 100644 --- a/src/wp-includes/widgets/class-wp-widget-categories.php +++ b/src/wp-includes/widgets/class-wp-widget-categories.php @@ -17,16 +17,26 @@ */ class WP_Widget_Categories extends WP_Widget { + /** + * Sets up a new Categories widget instance. + * + * @since 2.8.0 + * @access public + */ public function __construct() { $widget_ops = array( 'classname' => 'widget_categories', 'description' => __( "A list or dropdown of categories." ) ); parent::__construct('categories', __('Categories'), $widget_ops); } /** - * @staticvar bool $first_dropdown + * Outputs the content for the current Categories widget instance. * - * @param array $args - * @param array $instance + * @since 2.8.0 + * @access public + * + * @param array $args Display arguments including 'before_title', 'after_title', + * 'before_widget', and 'after_widget'. + * @param array $instance Settings for the current Categories widget instance. */ public function widget( $args, $instance ) { static $first_dropdown = true; @@ -73,7 +83,7 @@ class WP_Widget_Categories extends WP_Widget { * @param array $cat_args An array of Categories widget drop-down arguments. */ wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args ) ); -?> + ?>