Ticket #29137: editor_stylesheets-filter.diff
| File editor_stylesheets-filter.diff, 673 bytes (added by , 12 years ago) |
|---|
-
theme.php
1412 1412 * @return array If registered, a list of editor stylesheet URLs. 1413 1413 */ 1414 1414 function 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 1415 1426 $stylesheets = array(); 1416 1427 // load editor_style.css if the current theme supports it 1417 1428 if ( ! empty( $GLOBALS['editor_styles'] ) && is_array( $GLOBALS['editor_styles'] ) ) {