[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
Mon Aug 15 22:31:00 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 Cimmo):

 Ok my bad but still I don't get it when to use exactly wp_register_style
 and wp_enqueue_style
 I need the css file in the login/registration pages only and I tried this
 code:

 {{{
 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");
 }

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


 but works only for WordPress MS, not for non-MS.

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


More information about the wp-trac mailing list