Make WordPress Core


Ignore:
Timestamp:
01/14/2026 11:57:24 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Administration: Ensure get_current_screen() returns WP_Screen or null.

This adds a check that the $current_screen global is not only defined, but also has the correct type.

Follow-up to [15746].

Props marian1, mayanktripathi32, abcd95, im3dabasia1, SergeyBiryukov.
Fixes #62562.

File:
1 edited

Legend:

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