diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 9986284224..8879797914 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -527,6 +527,13 @@ final class _WP_Editors { $editor_styles = get_editor_stylesheets(); if ( ! empty( $editor_styles ) ) { + // Force urlencoding of commas. + foreach ( $editor_styles as $key => $url ) { + if ( strpos( $url, ',' ) !== false ) { + $editor_styles[ $key ] = str_replace( ',', '%2C', $url ); + } + } + $mce_css .= ',' . implode( ',', $editor_styles ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index e435669e9e..7406233e91 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-RC1-40861'; +$wp_version = '4.8-RC1-40862'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.