fix: update above-header hook to use wp_body_open
#856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Automattic/newspack-popups#1302, I updated the hook the above-header prompt placement used from
before_header
towp_body_open
to make sure it worked with block themes. This had the inadvertant side effect of switching the order of the above header ad and above header prompt.This PR also updates the ads plugin to use
wp_body_open
for the above header ad placement. This will return the order to normal, and will also make this Global Placement work with block themes.I've set this up as a regular PR but given the size and that it's impacting some publisher sites, we may want to apply it as a hotfix early next week.
See: p1717780063436159-slack-newspack-support
Steps to test
before_header
hook instead to recreate what this used to look like before Update above-header hook used by plugin newspack-popups#1302 landed.