WordPress.org

Make WordPress Core

Ticket #24049: 24049.diff

File 24049.diff, 385 bytes (added by Daedalon, 12 months ago)
Line 
1209a210,219
2>       sort( $plugin_files );
3>       $plugin_basedir = plugin_basename("$dir/");
4>       $plugin_root_files = array();
5>       foreach ( $plugin_files as $key => $value ) {
6>               if ( ! preg_match( '_' . $plugin_basedir . '.+/_', $value ) ) {
7>                       $plugin_root_files[] = $value;
8>                       unset( $plugin_files[ $key ] );
9>               }
10>       }
11>       $plugin_files = $plugin_root_files + $plugin_files;