Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#47052 reviewing enhancement

code consistency on hooks using string + variable

Reported by: arena Owned by: desrosj
Milestone: 5.3 Priority: normal
Severity: normal Version: 5.2
Component: General Keywords: has-patch
Focuses: coding-standards Cc:


most of hooks using a string and one or more variables are coded like this


except some of them ...

the purpose of this ticket is

  • to adress the issue
  • to include this rule as a wordpress coding standard
  • to propose a patch for hooks not applying this rule


ps :
and i need it to make a cross reference tool,
see first prototype here : https://blog.mailpress.org/hooks/wordpress-5-1/

Attachments (2)

#47052.patch (5.0 KB) - added by arena 4 months ago.
##.JPG (52.7 KB) - added by arena 3 months ago.
undercore missing

Download all attachments as: .zip

Change History (4)

4 months ago


#1 @desrosj
3 months ago

  • Focuses coding-standards added
  • Milestone changed from Awaiting Review to 5.3
  • Owner set to desrosj
  • Status changed from new to reviewing

Thanks for this, @arena.

For reference, here is the relevant part of the WordPress Core PHP coding standards.

#2 @arena
3 months ago

nice, for some reason there is a 'underscore' missing (see image)

Last edited 3 months ago by arena (previous) (diff)

3 months ago

undercore missing

Note: See TracTickets for help on using tickets.