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

git-svn-id: https://develop.svn.wordpress.org/trunk@6113 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-09-13 20:36:31 +00:00
parent 6f76f4865d
commit 8b7ae31cb9
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ if (isset($plugin_page)) {
}
// Allow plugins to define importers as well
if (! function_exists($wp_importers[$importer][2]))
if (! is_callable($wp_importers[$importer][2]))
{
if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
{