The $pane variable is not exists in ctools_content_get_defaults()

Files: 
CommentFileSizeAuthor
#1 ctools-2036291.patch439 bytesSweetchuck

Comments

StatusFileSize
new439 bytes

Simple patch.

I think it would be better to pass the $plugin and $subtype as well, because the origin of $defaults is untraceable in the callback function.
Like this:

<?php
if ($return = $defaults($plugin, $subtype)) {
  return
$return;
}
?>

And I don't know why the $plugin is stronger than the $subtype

<?php
if (isset($plugin['defaults'])) {
 
$defaults = $plugin['defaults'];
}
else if (isset(
$subtype['defaults'])) {
 
$defaults = $subtype['defaults'];
}
?>