Changeset 41117 for branches/4.8/src/wp-includes/default-widgets.php
- Timestamp:
- 07/21/2017 09:16:58 PM (8 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 41115-41116
- Property svn:mergeinfo changed
-
branches/4.8/src/wp-includes/default-widgets.php
r41087 r41117 134 134 $content = apply_filters( 'widget_custom_html_content', $content, $instance, $this ); 135 135 136 // Inject the Text widget's container class name alongside this widget's class name for theme styling compatibility. 137 $args['before_widget'] = preg_replace( '/(?<=\sclass=["\'])/', 'widget_text ', $args['before_widget'] ); 138 136 139 echo $args['before_widget']; 137 140 if ( ! empty( $title ) ) { 138 141 echo $args['before_title'] . $title . $args['after_title']; 139 142 } 143 echo '<div class="textwidget custom-html-widget">'; // The textwidget class is for theme styling compatibility. 140 144 echo $content; 145 echo '</div>'; 141 146 echo $args['after_widget']; 142 147 }
Note: See TracChangeset
for help on using the changeset viewer.