﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
17911,WP_Dependencies::remove() may generate PHP Warning,ftrudeau,,"
The following code will always generate a PHP Warning: Illegal offset type in unset, on line 159 of /wp-includes/class.wp-dependencies.php

{{{
global $wp_styles;
foreach ($wp_styles->registered AS $handle) $wp_styles->remove($handle);
}}}

... and here is a simple fix :

{{{
if (@isset($this->registered[$handle])) {
   unset($this->registered[$handle]);
}
}}}",defect (bug),closed,normal,,Warnings/Notices,3.1.3,minor,invalid,close,
