[wp-trac] [WordPress Trac] #27175: Profile Color Schemes Don't Change

WordPress Trac noreply at wordpress.org
Sat Feb 22 03:13:47 UTC 2014


#27175: Profile Color Schemes Don't Change
---------------------------+-----------------------------
 Reporter:  Ipstenu        |       Owner:  nacin
     Type:  defect (bug)   |      Status:  reopened
 Priority:  normal         |   Milestone:  3.9
Component:  Script Loader  |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  administration
---------------------------+-----------------------------

Comment (by SergeyBiryukov):

 I was trying something like [attachment:27175.3.diff] too, but it throws a
 fatal error if a plugin calls `wp_register_script()` before `init`:
 {{{
 Fatal error: Call to undefined function is_rtl() in wp-includes/general-
 template.php on line 2102
 }}}

 [attachment:27175.2.diff] fixes color schemes if a plugin registers a
 script before `admin_init` (e.g. on `init`), but still doesn't work if it
 does that before `init`.

 Ideally, color schemes should work even if a plugin registers a script
 before `init`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27175#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list