]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/widgets/class-wp-widget-recent-posts.php
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-includes / widgets / class-wp-widget-recent-posts.php
index 8f92bf36cdd7a3b025580065dcc30ef3d0b2df76..9483b97e27421ddc8623ee4272fe5991ca8dd7af 100644 (file)
@@ -23,8 +23,12 @@ class WP_Widget_Recent_Posts extends WP_Widget {
         * @access public
         */
        public function __construct() {
         * @access public
         */
        public function __construct() {
-               $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "Your site’s most recent Posts.") );
-               parent::__construct('recent-posts', __('Recent Posts'), $widget_ops);
+               $widget_ops = array(
+                       'classname' => 'widget_recent_entries',
+                       'description' => __( 'Your site’s most recent Posts.' ),
+                       'customize_selective_refresh' => true,
+               );
+               parent::__construct( 'recent-posts', __( 'Recent Posts' ), $widget_ops );
                $this->alt_option_name = 'widget_recent_entries';
        }
 
                $this->alt_option_name = 'widget_recent_entries';
        }
 
@@ -54,7 +58,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
                $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
 
                /**
                $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
 
                /**
-                * Filter the arguments for the Recent Posts widget.
+                * Filters the arguments for the Recent Posts widget.
                 *
                 * @since 3.4.0
                 *
                 *
                 * @since 3.4.0
                 *