[wp-trac] [WordPress Trac] #11512: Allow themes to provide a stylesheet for use within the rich text editor
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 10 04:45:53 UTC 2010
#11512: Allow themes to provide a stylesheet for use within the rich text editor
-----------------------------+----------------------------------------------
Reporter: caesarsgrunt | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone: 3.0
Component: Editor | Version: 2.9
Severity: normal | Resolution: fixed
Keywords: |
-----------------------------+----------------------------------------------
Comment(by nacin):
Replying to [comment:21 caesarsgrunt]:
> Just curious, since I've not been involved in dev for a while - what is
the advantage of having to register the stylesheet, as in this system,
rather than automatically detecting it as is done for other theme files?
Performance. Most themes will never use this, so we'd be wasting our time
on a file_exists() check over and over.
We do use file_exists() here when a child theme is used, but the
stylesheet still needs to be registered first, so we're still avoiding
unnecessary file_exists() checks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11512#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list