[wp-trac] [WordPress Trac] #15844: Prune dead code from when importers were in core.

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 16 09:58:27 UTC 2010


#15844: Prune dead code from when importers were in core.
--------------------------+-------------------
 Reporter:  westi         |      Owner:  westi
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.1
Component:  Import        |    Version:  3.1
 Severity:  normal        |   Keywords:
--------------------------+-------------------
 In wp-admin/import we have:

 {{{
 // Load all importers so that they can register.
 $import_loc = 'wp-admin/import';
 $import_root = ABSPATH.$import_loc;
 $imports_dir = @ opendir($import_root);
 if ($imports_dir) {
         while (($file = readdir($imports_dir)) !== false) {
                 if ($file[0] == '.') {
                         continue;
                 } elseif (substr($file, -4) == '.php') {
                         require_once($import_root . '/' . $file);
                 }
         }
 }
 @closedir($imports_dir);
 }}}

 But we don't have that folder any more.

 We should rip the code out so we don't have unnecessary suppressed
 notices.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15844>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list