diff --git a/wp-includes/version.php b/wp-includes/version.php index 9d6bfb5f07..7367c0aaa8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41250'; +$wp_version = '4.9-alpha-41251'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-text.php b/wp-includes/widgets/class-wp-widget-text.php index e6d979347d..ef9e349aa4 100644 --- a/wp-includes/widgets/class-wp-widget-text.php +++ b/wp-includes/widgets/class-wp-widget-text.php @@ -116,8 +116,8 @@ class WP_Widget_Text extends WP_Widget { } $doc = new DOMDocument(); - $doc->loadHTML( sprintf( - '
%s', + @$doc->loadHTML( sprintf( + '%s', esc_attr( get_bloginfo( 'charset' ) ), $instance['text'] ) );