WordPress.org

Make WordPress Core

Opened 8 weeks ago

Last modified 4 weeks 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:

Description

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

"hook_string-{$variable}"

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

regards

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 8 weeks ago.
patch
##.JPG (52.7 KB) - added by arena 4 weeks ago.
undercore missing

Download all attachments as: .zip

Change History (4)

@arena
8 weeks ago

patch

#1 @desrosj
4 weeks 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
4 weeks ago

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

Last edited 4 weeks ago by arena (previous) (diff)

@arena
4 weeks ago

undercore missing

Note: See TracTickets for help on using tickets.