Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#59934 new enhancement

Twenty Twenty-Four: PHPCS: Empty line required before block comment

Reported by: pratikharadava's profile pratikharadava Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4
Component: Bundled Theme Keywords: has-patch 2nd-opinion
Focuses: docs, coding-standards Cc:

Description

I have fixed Empty line required before block the comment PHPCS issue on the twenty-twentyfour theme's function file.

Attachments (2)

functions.php (5.6 KB) - added by pratikharadava 3 months ago.
59934.diff (3.6 KB) - added by sabernhardt 3 months ago.
moving the comments before register_block_style

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
3 months ago

  • Component changed from Themes to Bundled Theme
  • Summary changed from PHPCS : Empty line required before block comment to Twenty Twenty-Four: PHPCS: Empty line required before block comment

Hi there, welcome to WordPress Trac! Thanks for the ticket.

Could you clarify how you run the PHPCS checks?

When running WPCS checks for WordPress core with the default phpcs.xml.dist file, Twenty Twenty-Four appears to pass all the checks successfully in my testing.

@sabernhardt
3 months ago

moving the comments before register_block_style

#2 @sabernhardt
3 months ago

  • Focuses docs added
  • Keywords 2nd-opinion added
  • Version changed from trunk to 6.4

I did not find a spacing requirement before comments in the handbook.

Twenty Twenty-One added comments before each register_block_style function, though those arrays do not include inline_style. If it's worth moving the comments earlier in Twenty Twenty-Four, I found some related issues and pull requests to fill in the rest of the comments (and adjusted the quotes).

Note: See TracTickets for help on using tickets.