Make WordPress Core

Changeset 65203

Timestamp:
11/02/2026 04:54:35 PM (4 hours ago)
Author:
lancewillett
Message:

Tests: Cover post type lookup from the global post.

Verify get_post_type() uses the global post when called without an argument. Use a local page fixture and rely on the existing test lifecycle to reset global state.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/15343

Props shailu25.
See #65819.

File:
1 added

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