Make WordPress Core

Changeset 9968


Ignore:
Timestamp:
11/29/2008 06:23:03 PM (16 years ago)
Author:
ryan
Message:

Make link-import and importer

File:
1 moved

Legend:

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

    r9967 r9968  
    1010
    1111/** Load WordPress Administration Bootstrap */
    12 require_once('admin.php');
    1312$parent_file = 'tools.php';
    1413$submenu_file = 'import.php';
    1514$title = __('Import Blogroll');
    1615
     16class OPML_Import {
     17
     18    function dispatch() {
    1719$step = $_POST['step'];
    1820if (!$step) $step = 0;
     
    140142    } // end case 1
    141143} // end switch
     144    }
    142145
    143 include('admin-footer.php');
     146    function OPML_Import() {}
     147}
     148
     149$opml_importer = new OPML_Import();
     150
     151register_importer('opml', __('Blogroll'), __('Import links in OPML format.'), array(&$opml_importer, 'dispatch'));
    144152
    145153?>
Note: See TracChangeset for help on using the changeset viewer.