diff --git a/wp-includes/version.php b/wp-includes/version.php index ce09b0ad00..d968a09e16 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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. diff --git a/wp-includes/widgets/class-wp-widget-media.php b/wp-includes/widgets/class-wp-widget-media.php index 864d7568d8..4d190da360 100644 --- a/wp-includes/widgets/class-wp-widget-media.php +++ b/wp-includes/widgets/class-wp-widget-media.php @@ -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 ); - /** 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']; }