From 8d756c76c169d8aa655dfbcdbf05e15a9eee97f7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Jun 2015 13:31:11 +0000 Subject: [PATCH] Add `editor_stylesheets` filter to `get_editor_stylesheets()`. props danielbachhuber, MikeHansenMe. fixes #31672. git-svn-id: https://develop.svn.wordpress.org/trunk@32928 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 691546075b..b5cd8c4f6e 100644 --- a/src/wp-includes/theme.php +++ b/src/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 ); } /**