Changeset 6113

Show
Ignore:
Timestamp:
09/13/07 20:36:31 (1 year ago)
Author:
westi
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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"))