Commit e9c89156 authored by markjaquith's avatar markjaquith

correct logic grouping when reading importers. fixes #4763

git-svn-id: http://svn.automattic.com/wordpress/trunk@5887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 84f43891
......@@ -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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment