[wp-trac] [WordPress Trac] #64224: Docblock improvements for 7.0
WordPress Trac
noreply at wordpress.org
Tue Nov 25 02:18:20 UTC 2025
#64224: Docblock improvements for 7.0
----------------------------+-------------------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by westonruter):
In [changeset:"61300" 61300]:
{{{
#!CommitTicketReference repository="" revision="61300"
Docs: Improve docblocks and types for `WP_Screen` properties.
* Correctly hint that `WP_Screen::$_show_screen_options` is null before
being instantiated.
* Correctly hint that `::get_option()`, `get_help_tab()` and
`get_screen_reader_text()` can return null.
* Ensure `$this->columns` is an `int`, by casting `$this->get_option(
'layout_columns', 'default' )` from its numeric string.
Developed in https://github.com/WordPress/wordpress-develop/pull/8860
Props justlevine, peterwilsoncc, westonruter.
See #64238, #64224.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64224#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list