Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#62648 closed defect (bug) (fixed)

Twenty Twenty-Two: Fixed PHPCS issues.

Reported by: pitamdey Owned by: SergeyBiryukov
Priority: normal Milestone: 6.8
Component: Bundled Theme Version:
Severity: normal Keywords: has-patch commit
Cc: Focuses: coding-standards

Description

Resolved PHPCS (PHP CodeSniffer) violations in the Twenty Twenty-Two theme to improve code quality and adhere to coding standards.

Warning in function.php file as shown below:

  • There must be exactly one blank line after the file comment
  • Inline comments must end in full stops, exclamation marks, or question marks

Attachments (1)

phpcsfixes.patch​ (577 bytes ) - added by pitamdey 2 years ago.
Patch for this issue

Download all attachments as: .zip

Change History (7)

@pitamdey
2 years ago

Patch for this issue

#1 @SergeyBiryukov
2 years ago

  • Milestone Awaiting Review → 6.8

#3 @mukesh27
2 years ago

  • Keywords commit added

These one ready to go.

​@mukesh27 commented on ​PR #7981:


2 years ago
#4

Props to @pitamdey

#5 @SergeyBiryukov
2 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 59504:

Twenty Twenty-Two: Fix PHPCS issues in functions.php.

  • Inline comments must end in full stops, exclamation marks, or question marks.
  • There must be exactly one blank line after the file comment.

Follow-up to [52081].

Props pitamdey, mukesh27.
Fixes #62648.

​@SergeyBiryukov commented on ​PR #7981:


2 years ago
#6

Thanks for the PR! Merged in r59504.

Note: See TracTickets for help on using tickets.