Don't remove type="application/ld+json" in zen_process_html_tag()

Created on 5 January 2018, almost 7 years ago
Updated 27 February 2023, over 1 year ago

The zen_process_html_tag() function removes $tag['#attributes']['type'] if it does not equal "text/ng-template". The only problem is that it will remove the attribute when it equals "application/ld+json" which breaks the output from the Schema.org Metatag module.

🐛 Bug report
Status

RTBC

Version

5.0

Component

PHP code

Created by

🇺🇸United States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @kunal_sahu opened merge request.
  • 🇮🇳India kunal_sahu Karnataka

    Hi This patch applied cleanly.

    PS C:\xampp\htdocs\drupal\web\themes\custom\zen-2934644> git apply -v .\zen-n2934644-6.4.patch
    Checking patch template.php...
    Hunk #1 succeeded at 224 (offset -19 lines).
    Applied patch template.php cleanly.
    PS C:\xampp\htdocs\drupal-9.5\web\themes\custom\zen-2934644> git status
    On branch 2934644-dont-remove-typeapplicationldjson

    LGTM.

    Creating an MR for helping the maintainer. Thanks

Production build 0.71.5 2024