WordPress.org

Make WordPress Core

Changeset 14968


Ignore:
Timestamp:
05/27/10 00:32:01 (4 years ago)
Author:
nacin
Message:

Match up plugin slugs with importer slugs when checking if they're installed. They're different for MT and wpcat2tag currently. see #13566

File:
1 edited

Legend:

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

    r14966 r14968  
    5555    $popular_importers = array( 
    5656        'blogger' => array( __('Blogger'), __('Install the Blogger importer to import posts, comments, and users from a Blogger blog.'), 'install' ), 
    57         'wpcat2tag' => array(__('Categories and Tags Converter'), __('Install the category/tag converter to convert existing categories to tags or tags to categories, selectively.'), 'install'), 
     57        'wpcat2tag' => array(__('Categories and Tags Converter'), __('Install the category/tag converter to convert existing categories to tags or tags to categories, selectively.'), 'install', 'wp-cat2tag' ), 
    5858        'livejournal' => array( __( 'LiveJournal' ), __( 'Install the LiveJournal importer to import posts from LiveJournal using their API.' ), 'install' ), 
    59         'movabletype' => array( __('Movable Type and TypePad'), __('Install the Movable Type importer to import posts and comments from a Movable Type or TypePad blog.'), 'install' ), 
     59        'movabletype' => array( __('Movable Type and TypePad'), __('Install the Movable Type importer to import posts and comments from a Movable Type or TypePad blog.'), 'install', 'mt' ), 
    6060        'opml' => array( __('Blogroll'), __('Install the blogroll importer to import links in OPML format.'), 'install' ), 
    6161        'rss' => array( __('RSS'), __('Install the RSS importer to import posts from an RSS feed.'), 'install' ), 
     
    6666 
    6767// If a popular importer is not registered, create a dummy registration that links to the plugin installer. 
    68 foreach ( array_keys($popular_importers) as $pop_importer ) { 
     68foreach ( $popular_importers as $pop_importer => $pop_data ) { 
    6969    if ( isset($importers[$pop_importer] ) ) 
     70        continue; 
     71    var_dump( $pop_data ); 
     72    if ( isset( $pop_data[3] ) && isset( $importers[ $pop_data[3] ] ) ) 
    7073        continue; 
    7174 
Note: See TracChangeset for help on using the changeset viewer.