WordPress.org

Make WordPress Core

Changeset 6113


Ignore:
Timestamp:
09/13/07 20:36:31 (8 years ago)
Author:
westi
Message:

Switch to is_callable instead of function_exists to allow for class based importer plugins. Fixes #4614

File:
1 edited

Legend:

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

    r5935 r6113  
    7979 
    8080    // Allow plugins to define importers as well 
    81     if (! function_exists($wp_importers[$importer][2])) 
     81    if (! is_callable($wp_importers[$importer][2])) 
    8282    { 
    8383        if (! file_exists(ABSPATH . "wp-admin/import/$importer.php")) 
Note: See TracChangeset for help on using the changeset viewer.