Changeset 5204 for trunk/wp-admin/import.php
- Timestamp:
- 04/07/2007 03:46:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import.php
r4608 r5204 18 18 if ($imports_dir) { 19 19 while (($file = $imports_dir->read()) !== false) { 20 if ( preg_match('|^\.+$|', $file))20 if ($file{0} == '.') { 21 21 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 } 24 25 } 25 26 }
Note: See TracChangeset
for help on using the changeset viewer.