]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/widgets/class-wp-widget-recent-posts.php
WordPress 4.5
[autoinstalls/wordpress.git] / wp-includes / widgets / class-wp-widget-recent-posts.php
index 8f92bf36cdd7a3b025580065dcc30ef3d0b2df76..fdb54a0ff2edc87854b8c243e75027e26e095b5d 100644 (file)
@@ -23,8 +23,12 @@ class WP_Widget_Recent_Posts extends WP_Widget {
         * @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';
        }