Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#57994 closed defect (bug) (fixed)

Coding Standards fixes for WP 6.2.1

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Priority: normal Milestone: 6.2.1
Component: General Version:
Severity: normal Keywords: has-patch fixed-major
Cc: Focuses: coding-standards

Description

As part of the pre-release checks for 6.2, @davidbaumwald and I noticed some WPCS formatting issues that could be fixed by running composer format.

See the attached patch.

Follow-up to [55099], [55192], [55194], [55271].

Attachments (1)

57994.diff​ (3.5 KB ) - added by SergeyBiryukov 4 years ago.

Download all attachments as: .zip

Change History (6)

This ticket was mentioned in ​Slack in #core by sergey. ​View the logs.


4 years ago

#2 @jrf
4 years ago

I fully support this patch. Could it already be committed to trunk for 6.3 ?

#3 @SergeyBiryukov
4 years ago

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

In 55606:

Coding Standards: Apply various alignment corrections from composer format.

This fixes a few WPCS warnings along the lines of:

  • Array double arrow not aligned correctly
  • Equals sign not aligned with surrounding statements
  • Usage of ELSE IF is discouraged; use ELSEIF instead

Follow-up to [55099], [55192], [55194], [55271].

Props davidbaumwald, jrf, SergeyBiryukov.
Fixes #57994.

#4 @SergeyBiryukov
4 years ago

  • Keywords fixed-major added
  • Resolution fixed
  • Status closed → reopened

Reopening for 6.2.1 consideration.

#5 @SergeyBiryukov
4 years ago

  • Resolution → fixed
  • Status reopened → closed

In 55636:

Coding Standards: Apply various alignment corrections from composer format.

This fixes a few WPCS warnings along the lines of:

  • Array double arrow not aligned correctly
  • Equals sign not aligned with surrounding statements
  • Usage of ELSE IF is discouraged; use ELSEIF instead

Follow-up to [55099], [55192], [55194], [55271].

Props davidbaumwald, jrf, SergeyBiryukov.
Merges [55606] to the 6.2 branch.
Fixes #57994.

Note: See TracTickets for help on using tickets.