Error in functions.php

  • Venutius

    #51642

    Hi there, just looking to tidy u an issue.

    In inc/functions.php line 114 you have:

    $alt = graphene_get_attachment_image_alt( $attachment_metadata['attachment_parent'] );

    On one of my sites this is throwing an error, as there is no attachment parent.

    A quick fix for this would be:

    if ( array_key_exists( 'attachment_parent', $attachment_metadata ) ) {
    					$alt = graphene_get_attachment_image_alt( $attachment_metadata['attachment_parent'] );
    }

    Not sure of the implications though.

    Admin

    Syahir Hakim

    #51643

    Thanks for the report. We’ll include a fix in the next theme update.

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.