equal
deleted
inserted
replaced
24 public function __construct() { |
24 public function __construct() { |
25 $widget_ops = array( |
25 $widget_ops = array( |
26 'classname' => 'widget_recent_comments', |
26 'classname' => 'widget_recent_comments', |
27 'description' => __( 'Your site’s most recent comments.' ), |
27 'description' => __( 'Your site’s most recent comments.' ), |
28 'customize_selective_refresh' => true, |
28 'customize_selective_refresh' => true, |
|
29 'show_instance_in_rest' => true, |
29 ); |
30 ); |
30 parent::__construct( 'recent-comments', __( 'Recent Comments' ), $widget_ops ); |
31 parent::__construct( 'recent-comments', __( 'Recent Comments' ), $widget_ops ); |
31 $this->alt_option_name = 'widget_recent_comments'; |
32 $this->alt_option_name = 'widget_recent_comments'; |
32 |
33 |
33 if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) { |
34 if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) { |