-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Description
I found a bug and suggested a fix for class.attachments.php (line 970-ish).
function get_attachments( $instance = '', $post_id = null )
{
global $post;
if (is_null($post_id))
{
if( is_null( $post_id ) && is_object( $post ) && isset( $post->ID ) )
{
$post_id = $post->ID;
}
elseif( isset( $_GET['post'] ) )
{
$post_id = intval( $_GET['post'] );
}
else
{
// no post ID, nothing to do...
return;
}
}
Metadata
Metadata
Assignees
Labels
No labels