Make WordPress Core

Ticket #36985: 36985.patch

File 36985.patch, 493 bytes (added by webmandesign, 9 years ago)

Making add_editor_style() application more flexible, patching #36985

  • wp-includes/theme.php

     
    14251425function add_editor_style( $stylesheet = 'editor-style.css' ) {
    14261426        add_theme_support( 'editor-style' );
    14271427
    1428         if ( ! is_admin() )
     1428        if ( (bool) apply_filters( 'disable_editor_style', ! is_admin() ) ) {
    14291429                return;
     1430        }
    14301431
    14311432        global $editor_styles;
    14321433        $editor_styles = (array) $editor_styles;