- Timestamp:
- 03/21/2016 09:58:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php
r34622 r37040 24 24 */ 25 25 public function __construct() { 26 $widget_ops = array('classname' => 'widget_recent_comments', 'description' => __( 'Your site’s most recent comments.' ) ); 27 parent::__construct('recent-comments', __('Recent Comments'), $widget_ops); 26 $widget_ops = array( 27 'classname' => 'widget_recent_comments', 28 'description' => __( 'Your site’s most recent comments.' ), 29 'customize_selective_refresh' => true, 30 ); 31 parent::__construct( 'recent-comments', __( 'Recent Comments' ), $widget_ops ); 28 32 $this->alt_option_name = 'widget_recent_comments'; 29 33 30 if ( is_active_widget(false, false, $this->id_base) ) 31 add_action( 'wp_head', array($this, 'recent_comments_style') ); 34 if ( is_active_widget( false, false, $this->id_base ) || is_customize_preview() ) { 35 add_action( 'wp_head', array( $this, 'recent_comments_style' ) ); 36 } 32 37 } 33 38
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)