mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6125 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8,7 +8,8 @@ function get_importers() {
|
||||
|
||||
function register_importer( $id, $name, $description, $callback ) {
|
||||
global $wp_importers;
|
||||
|
||||
if ( is_wp_error( $callback ) )
|
||||
return $callback;
|
||||
$wp_importers[$id] = array ( $name, $description, $callback );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user