[wp-trac] [WordPress Trac] #19130: current wp-login.php call to wp_admin_css() bypasses its own filter

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 3 13:54:07 UTC 2011


#19130: current wp-login.php call to wp_admin_css() bypasses its own filter
--------------------------+-----------------------------
 Reporter:  F J Kaiser    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The current situation in wp-login.php looks like the following:

 {{{
         wp_admin_css( 'login', true );
         wp_admin_css( 'colors-fresh', true );
 }}}

 Looking at /wp-includes/general-template.php and {{{wp_admin_css( $file =
 'wp-admin', $force_echo = false );}}} tells that this bypasses the filter
 calls as the function returns if {{{$force_echo}}} is true. The filters
 are called after that. This doesn't make sense as the filter will never
 work this way. Changing {{{wp_admin_css()}}} is no option, so I suggest to
 change the calls to it in login_head.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19130>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list