From 3f448d7cd5752eb4eb83c15ded25ae4f1cee31cc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Jun 2015 13:32:32 +0000 Subject: [PATCH] Add `editor_stylesheets` filter to `get_editor_stylesheets()`. props danielbachhuber, MikeHansenMe. fixes #31672. Built from https://develop.svn.wordpress.org/trunk@32928 git-svn-id: http://core.svn.wordpress.org/trunk@32899 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 9 ++++++++- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 691546075b..b5cd8c4f6e 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1499,7 +1499,14 @@ function get_editor_stylesheets() { } } } - return $stylesheets; + /** + * Filter the array of stylesheets applied to the editor. + * + * @since 4.3.0 + * + * @param array $stylesheets Array of stylesheets to be applied to the editor. + */ + return apply_filters( 'editor_stylesheets', $stylesheets ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 316b4dbbc4..38ac1f4ccf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32927'; +$wp_version = '4.3-alpha-32928'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.