[wp-trac] [WordPress Trac] #64434: Theme_JSON_Resolver throws fatals in some scenarios
WordPress Trac
noreply at wordpress.org
Fri Dec 19 13:56:01 UTC 2025
#64434: Theme_JSON_Resolver throws fatals in some scenarios
--------------------------+-----------------------
Reporter: oandregal | Owner: oandregal
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 7.0
Component: Editor | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
## Description
In certain scenarios, when the Theme_JSON_Resolver gets a post to prepare
the user styles, it's null.
For example, in [this line https://github.com/WordPress/wordpress-
develop/blob/44f1517e8f6dd72710a143420c3a0c2bae1a3766/src/wp-includes
/class-wp-theme-json-resolver.php#L535], get_post function returns null
after the wp_insert_post function is called. Although the post is saved,
it's assumed that it can be immediately accessed, which is not always
true.
## How to reproduce
Unfortunately, there's no steps to reproduce it consistently. We've just
seen reports by hosts that this happens occassionally in certain
transition states for the site (creation, migration, etc.).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64434>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list