Make WordPress Core

Ticket #40893: 40893.patch

File 40893.patch, 621 bytes (added by azaozz, 6 years ago)
  • src/wp-includes/class-wp-editor.php

     
    527527                                $editor_styles = get_editor_stylesheets();
    528528
    529529                                if ( ! empty( $editor_styles ) ) {
     530                                        // Force urlencoding of commas
     531                                        foreach ( $editor_styles as $key => $url ) {
     532                                                if ( strpos( $url, ',' ) !== false ) {
     533                                                        $editor_styles[$key] = str_replace( ',', '%2C', $url );
     534                                                }
     535                                        }
     536
    530537                                        $mce_css .= ',' . implode( ',', $editor_styles );
    531538                                }
    532539