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. git-svn-id: https://develop.svn.wordpress.org/trunk@41866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cabd02a137
commit
2885001d30
@ -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
Block a user