[wp-trac] [WordPress Trac] #64226: Coding Standards fixes for WP 7.0
WordPress Trac
noreply at wordpress.org
Wed Nov 12 14:48:15 UTC 2025
#64226: Coding Standards fixes for WP 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 SergeyBiryukov):
In [changeset:"61224" 61224]:
{{{
#!CommitTicketReference repository="" revision="61224"
Coding Standards: Use more meaningful variable names in Admin Ajax
actions.
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:
- `$post_ID` to `$post_id` — “Use lowercase letters in variable,
action/filter, and function names”.
- `$ext_type` to `$extension_type`.
- `$ext` to `$extension`.
- `$id3data` to `$id3_data` — “Separate words via underscores”.
- `$msg` to `$message`.
- `$sb` to `$sidebar`.
- `$alt` to `$alternate`.
- `$pid` to `$post_id`.
- `$mid` to `$meta_id`.
- `$menu_obj` to `$menu_object`.
- `$noparents` to `$no_parents` — “Separate words via underscores”.
- `$sup` to `$supplemental`.
- `$cat_id` to `$category_id`.
- `$cat_name` to `$category_name`.
- `$out` to `$output`.
- `$r` to `$edit_result`.
- `$t` to `$taxonomy`.
- `$u` to `$update_result`.
- `$r` to `$result`.
- `$response` to `$response_data`.
- `$x` to `$response`.
Follow-up to [53723], [55365].
Props costdev, mukesh27, SergeyBiryukov.
See #64226.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64226#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list