X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..607b7e02d77e7326161e8ec15639052d2040f745:/wp-includes/widgets/class-wp-widget-recent-posts.php diff --git a/wp-includes/widgets/class-wp-widget-recent-posts.php b/wp-includes/widgets/class-wp-widget-recent-posts.php index 8f92bf36..9483b97e 100644 --- a/wp-includes/widgets/class-wp-widget-recent-posts.php +++ b/wp-includes/widgets/class-wp-widget-recent-posts.php @@ -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'; } @@ -54,7 +58,7 @@ class WP_Widget_Recent_Posts extends WP_Widget { $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 *