[wp-trac] [WordPress Trac] #17911: WP_Dependencies::remove() may generate PHP Warning

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 27 20:31:20 UTC 2011


#17911: WP_Dependencies::remove() may generate PHP Warning
------------------------------+------------------------------
 Reporter:  ftrudeau          |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Warnings/Notices  |     Version:  3.1.3
 Severity:  minor             |  Resolution:
 Keywords:                    |
------------------------------+------------------------------

Comment (by kawauso):

 PHP is throwing the warning because `$handle` being passed is the whole
 WP_Dependency object for the style, rather than it's actual slug, which is
 incorrect usage. A workaround would be to check is_string() for `$handle`.

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


More information about the wp-trac mailing list