[wp-trac] [WordPress Trac] #17916: wp_register_style makes the RTL to be lost in some CSS files

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 13 09:03:28 UTC 2011


#17916: wp_register_style makes the RTL to be lost in some CSS files
----------------------------+------------------------
 Reporter:  Cimmo           |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.2
 Severity:  normal          |  Resolution:  duplicate
 Keywords:                  |
----------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Like `wp_register_script()`, `wp_register_style()` also shouldn't be
 called before `init`, since locale isn't initialized yet (see #11526).

 I've updated the patch in #11526 to include `_doing_it_wrong()` for
 `$wp_styles`.

 I've also added a note in Codex with this ticket as a reference.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17916#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list