Skip to content

Non-WP-Upload directory Logo URL #13586

@gr8shivam

Description

@gr8shivam
  • [.] I've read and understood the contribution guidelines.
  • [.] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

Users using an Organisation Logo Image from a URL outside the WP uploads folder won't get Organisation schema since it fails in fetching the Attachment ID in https://github.com/Yoast/wordpress-seo/blob/trunk/frontend/schema/class-schema-context.php#L198

In the newer versions, option to add a custom URL is not available. But for users using the URL from previous versions are affected by this issue.

Please describe what you expected to happen and why.

Users using the Logo image from a directory outside WP-Uploads directory should be shown a notice to use an image from WP Media Library.

How can we reproduce this behavior?

  1. Use Organisation Logo image from any directory outisde WP uploads folder like an image from Theme directory.
  2. The organisation schema won't show since the Attachment ID will be 0.

Technical info

  • WordPress version: All versions
  • Yoast SEO version: All versions, but only for users who are using from previous versions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions