Make WordPress Core


Ignore:
Timestamp:
03/01/2012 12:18:26 AM (14 years ago)
Author:
azaozz
Message:

Don't pass non-existing rtl stylesheet to TinyMCE, update phpdoc for add_editor_style(), see #19437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r20053 r20059  
    13351335 * It is optional and defaults to 'editor-style.css'.
    13361336 *
    1337  * Supports RTL stylesheets automatically by searching for the -rtl prefix, e.g.
    1338  * editor-style-rtl.css. If an array of stylesheets is passed to add_editor_style(),
     1337 * This function automatically adds another stylesheet with -rtl prefix, e.g. editor-style-rtl.css.
     1338 * If that file doesn't exist, it is removed before adding the stylesheet(s) to TinyMCE.
     1339 * If an array of stylesheets is passed to add_editor_style(),
    13391340 * RTL is only added for the first stylesheet.
     1341 *
     1342 * Since version 3.4 the TinyMCE body has .rtl CSS class.
     1343 * It is a better option to use that class and add any RTL styles to the main stylesheet.
    13401344 *
    13411345 * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.