Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import.php

    r5204 r4608  
    1818if ($imports_dir) {
    1919        while (($file = $imports_dir->read()) !== false) {
    20                 if ($file{0} == '.') {
     20                if (preg_match('|^\.+$|', $file))
    2121                        continue;
    22                 } elseif (substr($file, -4) == '.php') {
    23                         require_once($import_root . '/' . $file);
    24                 }
     22                if (preg_match('|\.php$|', $file))
     23                        require_once("$import_root/$file");
    2524        }
    2625}
Note: See TracChangeset for help on using the changeset viewer.