Make WordPress Core

Ticket #29137: editor_stylesheets-filter.diff

File editor_stylesheets-filter.diff, 673 bytes (added by GregLone, 12 years ago)
  • theme.php

     
    14121412 * @return array If registered, a list of editor stylesheet URLs.
    14131413 */
    14141414function get_editor_stylesheets() {
     1415        /**
     1416         * Filter editor stylesheets output.
     1417         *
     1418         * @since 4.0.0
     1419         *
     1420         * @param array  array()  Array of stylesheets URLs.
     1421         */
     1422        if ( $out = apply_filters( 'editor_stylesheets', array() ) ) {
     1423                return $out;
     1424        }
     1425
    14151426        $stylesheets = array();
    14161427        // load editor_style.css if the current theme supports it
    14171428        if ( ! empty( $GLOBALS['editor_styles'] ) && is_array( $GLOBALS['editor_styles'] ) ) {