[wp-trac] [WordPress Trac] #19913: multiple plugins getting "undefined function is_rtl()" under WP 3.3

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 28 13:50:54 UTC 2012


#19913: multiple plugins getting "undefined function is_rtl()" under WP 3.3
-------------------------------+------------------------------
 Reporter:  convissor          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.3
 Severity:  major              |  Resolution:
 Keywords:  plugin 3.3 is_rtl  |
-------------------------------+------------------------------

Comment (by duck_):

 For this particular plugin (login-lock) this is caused by `wp_admin_css(
 'login' );`. Because the login.css styles no longer exist they aren't
 registered with WP_Styles. So, when wp_admin_css() tries to query() for
 'login' nothing is found and the function doesn't return early and it
 falls through to the last three lines which print out "<link
 rel="stylesheet"..." and critically calls `is_rtl()`.

 So, wp_admin_css() was never safe to call this early (plugins_loaded), but
 the problem only emerged in 3.3 due to the merging of admin CSS files.

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


More information about the wp-trac mailing list