WordPress.org

Make WordPress Core

Changeset 5204


Ignore:
Timestamp:
04/07/2007 03:46:09 PM (15 years ago)
Author:
rob1n
Message:

Import cleanup and optimizations.

File:
1 edited

Legend:

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

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