mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Avoid E_STRICT notices. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@19094 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4027,7 +4027,8 @@ function wp_mime_type_icon( $mime = 0 ) {
|
||||
$dirs = apply_filters( 'icon_dirs', array($icon_dir => $icon_dir_uri) );
|
||||
$icon_files = array();
|
||||
while ( $dirs ) {
|
||||
$dir = array_shift($keys = array_keys($dirs));
|
||||
$keys = array_keys( $dirs );
|
||||
$dir = array_shift( $keys );
|
||||
$uri = array_shift($dirs);
|
||||
if ( $dh = opendir($dir) ) {
|
||||
while ( false !== $file = readdir($dh) ) {
|
||||
|
||||
Reference in New Issue
Block a user