Opened 4 weeks ago
Last modified 2 weeks ago
#64226 new task (blessed)
Coding Standards fixes for WP 7.0
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | coding-standards | Cc: |
Change History (6)
This ticket was mentioned in PR #3198 on WordPress/wordpress-develop by @costdev.
4 weeks ago
#1
- Keywords has-patch added
This ticket was mentioned in PR #10147 on WordPress/wordpress-develop by @mukesh27.
4 weeks ago
#2
@SergeyBiryukov commented on PR #3198:
4 weeks ago
#4
Thanks for the PR! Merged in r61224.
Note: See
TracTickets for help on using
tickets.
Per naming conventions, don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting.
See PHP Coding Standards - Naming Conventions.
This PR includes renaming of the following variables:
$post_IDto$post_id. - "Use lowercase letters in variable, action/filter, and function names"$ext_typeto$extension_type.$extto$extension.$id3datato$id3_data. - "Separate words via underscores."$msgto$message.$sbto$sidebar.$altto$alternate.$pidto$post_id.$menu_objto$menu_object.$noparentsto$no_parents. - "Separate words via underscores."$supto$supplemental.$cat_idto$category_id.$cat_nameto$category_name.$outto$output.$rto$edit_result.$tto$taxonomy.$uto$update_result.$rto$result.$responseto$response_data.$xto$response.Trac ticket:
https://core.trac.wordpress.org/ticket/64226
https://core.trac.wordpress.org/ticket/63168
https://core.trac.wordpress.org/ticket/55647