Make WordPress Core


Ignore:
Timestamp:
09/18/2007 04:32:22 PM (19 years ago)
Author:
ryan
Message:

Add checks for WP_Error. Props filosofo. see #4809

File:
1 edited

Legend:

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

    r5566 r6125  
    99function register_importer( $id, $name, $description, $callback ) {
    1010        global $wp_importers;
    11 
     11        if ( is_wp_error( $callback ) )
     12                return $callback;
    1213        $wp_importers[$id] = array ( $name, $description, $callback );
    1314}
Note: See TracChangeset for help on using the changeset viewer.