headless-cms icon indicating copy to clipboard operation
headless-cms copied to clipboard

Cannot find custom logo

Open glesbygdn opened this issue 4 years ago • 0 comments

Warning: Trying to access array offset on value of type bool in /wp-content/plugins/headless-cms/inc/classes/api/class-header-footer-api.php on line <i>139</i>

PHP 8.0, Wordpress 5.8:

public function get_custom_logo_url( $key ) {
    $custom_logo_id = get_theme_mod( $key );
    $image          = wp_get_attachment_image_src( $custom_logo_id, 'full' );
    return $image[0];
}

glesbygdn avatar Aug 27 '21 07:08 glesbygdn