Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/moose 169/remove unnecessary theme support calls #165

Merged

Conversation

dpellenwood
Copy link
Collaborator

@dpellenwood dpellenwood commented Nov 22, 2024

What does this do/fix?

Block themes already apply most traditional theme_support features in WordPress. From FSE.com:

The following theme support is automatically enabled for block themes:
post-thumbnails, editor-styles, responsive-embeds, automatic-feed-links, html5 styles, and html5 scripts.

You do not need to include add_theme_support( 'title-tag' ) in the setup function, because WordPress already renders the title tag for full site editing themes.

And, adding title-tag theme support actually causes a bug in Yoast SEO to surface where the title is erroneously injected twice into each document.

This PR removes unnecessary add_theme_support() calls from Moose.

Additionally, this PR adds the .phpstorm.meta.php file to tell storm how to handle our DI container class mapping.

QA

Links to relevant issues

Screenshots/video:

Copy link
Contributor

@JMRhodes JMRhodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🟢

@dpellenwood dpellenwood merged commit 5517500 into main Nov 22, 2024
7 checks passed
@dpellenwood dpellenwood deleted the fix/MOOSE-169/remove-unnecessary-theme-support-calls branch November 22, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants