Skip to content
This repository was archived by the owner on May 23, 2018. It is now read-only.
This repository was archived by the owner on May 23, 2018. It is now read-only.

wp_get_attachment_image_srcset not well implemented in header of twenty sixteen #484

@dev-xiligroup

Description

@dev-xiligroup

attribut srcset in header is not well implemented ! get_custom_header don't have property attachment_id !
Line number 93 of header.php - version 1.2

srcset="<?php echo esc_attr( wp_get_attachment_image_srcset( get_custom_header()->attachment_id ) ); ?>"

to complete : attachment_id property is available if image is coming from media library. But some time images came from theme sub folder (as set in theme (function). A test must be done with this property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions