WordPress.org

Make WordPress Core

Changeset 6472


Ignore:
Timestamp:
12/23/2007 01:10:29 AM (12 years ago)
Author:
ryan
Message:

Add import_done actions

Location:
trunk/wp-admin/import
Files:
7 edited

Legend:

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

    r6430 r6472  
    163163            return $result;
    164164        wp_import_cleanup($file['id']);
    165 
     165        do_action('import_done', 'blogware');
    166166        echo '<h3>';
    167167        printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
  • trunk/wp-admin/import/dotclear.php

    r6430 r6472  
    616616        delete_option('dchost');
    617617        delete_option('dccharset');
     618        do_action('import_done', 'dotclear');
    618619        $this->tips();
    619620    }
  • trunk/wp-admin/import/greymatter.php

    r6430 r6472  
    284284        }
    285285    }
     286    do_action('import_done', 'greymatter');
    286287    ?>
    287288</ul><strong><?php _e('Done') ?></strong></li></ul>
  • trunk/wp-admin/import/livejournal.php

    r6430 r6472  
    139139            return $result;
    140140        wp_import_cleanup($file['id']);
     141        do_action('import_done', 'livejournal');
    141142
    142143        echo '<h3>';
  • trunk/wp-admin/import/rss.php

    r6125 r6472  
    142142            return $result;
    143143        wp_import_cleanup($file['id']);
     144        do_action('import_done', 'rss');
    144145
    145146        echo '<h3>';
  • trunk/wp-admin/import/textpattern.php

    r6430 r6472  
    551551        delete_option('txpname');
    552552        delete_option('txphost');
     553        do_action('import_done', 'textpattern');
    553554        $this->tips();
    554555    }
  • trunk/wp-admin/import/wordpress.php

    r6430 r6472  
    275275
    276276        wp_import_cleanup($this->id);
     277        do_action('import_done', 'wordpress');
    277278
    278279        echo '<h3>'.sprintf(__('All done.').' <a href="%s">'.__('Have fun!').'</a>', get_option('home')).'</h3>';
Note: See TracChangeset for help on using the changeset viewer.