Make WordPress Core

Changeset 53594


Ignore:
Timestamp:
06/30/2022 03:48:22 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Editor: Ensure only the main query is modified when resolving template for new posts.

This adds a check for the main query in _resolve_template_for_new_post() to fix a 404 response when resolving template for new posts or pages caused by the wrong query being modified.

Original PR from Gutenberg repository:

Follow-up to [52316].

Props petitphp, zieladam, poena, ndiego, gziolo, kebbet, Mamaduka, manfcarlo.
Merges [53593] to the 6.0 branch.
See #56058.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.