[wp-trac] [WordPress Trac] #56754: Use consistent, coding standard compliant naming for category ID variables

WordPress Trac noreply at wordpress.org
Thu Feb 2 13:11:43 UTC 2023


#56754: Use consistent, coding standard compliant naming for category ID variables
--------------------------+-------------------------------
 Reporter:  hilayt24      |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.2
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:7 costdev]:
 > I've left [https://github.com/WordPress/wordpress-
 develop/pull/3961#discussion_r1093970319 a review] noting that we can't
 change function parameter casing due to named parameters in PHP 8, which
 are case-sensitive.

 That's correct, but as noted in the
 [https://make.wordpress.org/core/2020/11/23/wordpress-and-php-8-0/ PHP 8.0
 dev note], WordPress does not support named parameters at this time:
 > Using named parameters when calling WordPress functions and class
 methods is explicitly not supported and highly discouraged until this
 audit can be completed, as during the audit, parameter names are subject
 to change without notice. When this audit has been completed, it will be
 announced in a future developer note.

 See tickets #51553, #55327, #55650, #56788 for continued work on this.

 So I think we can include those parameter renamings here too.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56754#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list