WordPress.org

Make WordPress Core

Changeset 14540


Ignore:
Timestamp:
05/10/2010 04:06:46 PM (8 years ago)
Author:
ryan
Message:

Don't use closed dir handle. Props Miloslav. fixes #13322

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r14374 r14540  
    239239            }
    240240        }
    241     }
     241    } else {
     242        return $wp_plugins;
     243    }
     244
    242245    @closedir( $plugins_dir );
    243246    @closedir( $plugins_subdir );
    244247
    245     if ( !$plugins_dir || empty($plugin_files) )
     248    if ( empty($plugin_files) )
    246249        return $wp_plugins;
    247250
Note: See TracChangeset for help on using the changeset viewer.