[wp-trac] [WordPress Trac] #63665: Rename WP_Http_Cookie methods to snake_case to follow coding standards

WordPress Trac noreply at wordpress.org
Thu Jul 3 22:08:49 UTC 2025


#63665: Rename WP_Http_Cookie methods to snake_case to follow coding standards
-------------------------+--------------------------------------
 Reporter:  vxo2021      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  HTTP API     |    Version:  trunk
 Severity:  normal       |   Keywords:  good-first-bug has-patch
  Focuses:               |
-------------------------+--------------------------------------
 Currently, WP_Http_Cookie uses camelCase for some method names
 (getHeaderValue, getFullHeader), which is against the WordPress PHP coding
 standards. This patch renames them to get_header_value and
 get_full_header, updates all usages, and removes phpcs:ignore comments.
 This addresses the @todo in the class docblock.

 Steps:
 - Rename getHeaderValue() → get_header_value()
 - Rename getFullHeader() → get_full_header()
 - Update all usages in core
 - Remove phpcs:ignore comments

 This is a pure refactoring/consistency change, no functional impact.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63665>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list