Changeset 41133 for branches/4.8/src/wp-includes/default-widgets.php
- Timestamp:
- 07/24/2017 10:53:20 PM (7 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/default-widgets.php
r41117 r41133 120 120 $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); 121 121 122 // Prepare instance data that looks like a normal Text widget. 123 $simulated_text_widget_instance = array_merge( $instance, array( 124 'text' => isset( $instance['content'] ) ? $instance['content'] : '', 125 'filter' => false, // Because wpautop is not applied. 126 'visual' => false, // Because it wasn't created in TinyMCE. 127 ) ); 128 unset( $simulated_text_widget_instance['content'] ); // Was moved to 'text' prop. 129 122 130 /** This filter is documented in wp-includes/widgets/class-wp-widget-text.php */ 123 $content = apply_filters( 'widget_text', $instance['content'], $ instance, $this );131 $content = apply_filters( 'widget_text', $instance['content'], $simulated_text_widget_instance, $this ); 124 132 125 133 /**
Note: See TracChangeset
for help on using the changeset viewer.