Widgets: In `WP_Widget_Media`, apply `widget_title` filter regardless of whether the title is empty, same as other widgets do.
Props Bsop. Fixes #42226. Built from https://develop.svn.wordpress.org/trunk@41866 git-svn-id: http://core.svn.wordpress.org/trunk@41700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad8c9f0170
commit
0ae79ece9f
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-beta2-41865';
|
||||
$wp_version = '4.9-beta2-41866';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -213,10 +213,10 @@ abstract class WP_Widget_Media extends WP_Widget {
|
|||
|
||||
echo $args['before_widget'];
|
||||
|
||||
if ( $instance['title'] ) {
|
||||
|
||||
/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
|
||||
$title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
|
||||
|
||||
if ( $title ) {
|
||||
echo $args['before_title'] . $title . $args['after_title'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue