WordPress.org

Make WordPress Core

Ticket #4614: 4614.diff

File 4614.diff, 665 bytes (added by Nazgul, 11 years ago)
  • wp-admin/admin.php

     
    7676        if ( validate_file($importer) ) {
    7777                wp_die(__('Invalid importer.'));
    7878        }
     79       
     80        $importer_path = apply_filters( 'importer_path', ABSPATH . "wp-admin/import/$importer.php" );
    7981
    80         if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
     82        if (! file_exists($importer_path))
    8183                wp_die(__('Cannot load importer.'));
    8284
    83         include(ABSPATH . "wp-admin/import/$importer.php");
     85        require_once($importer_path);
    8486
    8587        $parent_file = 'edit.php';
    8688        $submenu_file = 'import.php';