[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
Wed Aug 17 15:52:10 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:                  |
----------------------------+------------------------

Comment (by SergeyBiryukov):

 For login/registration pages, I'd try `login_head` or
 `login_enqueue_scripts` action:
 {{{
 function cimy_uef_register_init_css() {
         global $cuef_css_webpath;
         wp_register_style("cimy_uef_register",
 $cuef_css_webpath."/cimy_uef_register.css", false, false);
         wp_enqueue_style("cimy_uef_register");
         wp_print_styles();
 }

 add_action('login_head', 'cimy_uef_register_init_css');
 }}}

 Someone may correct me if I'm wrong, but it looks like we should call
 `wp_print_styles()` or `wp_print_scripts()` ourselves in this case.

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


More information about the wp-trac mailing list