mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-15 00:34:33 +00:00
correct logic grouping when reading importers. fixes #4763
git-svn-id: https://develop.svn.wordpress.org/trunk@5887 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -16,7 +16,7 @@ $import_loc = 'wp-admin/import';
|
||||
$import_root = ABSPATH.$import_loc;
|
||||
$imports_dir = @ opendir($import_root);
|
||||
if ($imports_dir) {
|
||||
while ($file = readdir($imports_dir) !== false) {
|
||||
while (($file = readdir($imports_dir)) !== false) {
|
||||
if ($file{0} == '.') {
|
||||
continue;
|
||||
} elseif (substr($file, -4) == '.php') {
|
||||
|
||||
Reference in New Issue
Block a user