[wp-trac] [WordPress Trac] #63168: Coding Standards fixes for WP 6.9
WordPress Trac
noreply at wordpress.org
Mon Nov 10 22:57:56 UTC 2025
#63168: Coding Standards fixes for WP 6.9
-------------------------------------------------+-------------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests changes- | Focuses: coding-
requested | standards
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"61200" 61200]:
{{{
#!CommitTicketReference repository="" revision="61200"
Coding Standards: Use more meaningful variable names in Admin Menu.
Per the [https://developer.wordpress.org/coding-standards/wordpress-
coding-standards/php/#naming-conventions Naming Conventions]:
> Don’t abbreviate variable names unnecessarily; let the code be
unambiguous and self-documenting.
This commit includes renaming of the following variables:
* `$i` to `$submenu_index`.
* `$cap` to `$capability`.
* `$tax` to `$taxonomy`.
* Several `$awaiting_mod_*` to `$awaiting_moderation_*`.
* Several `$ptype_*` to `$post_type_*`.
* `$types` to `$post_types`.
* `$appearance_cap` to `$appearance_capability`.
Follow-up to [12597], [14654], [21199], [23871], [33723], [33867].
Props costdev, SergeyBiryukov.
See #63168.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63168#comment:70>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list