WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#48237 closed defect (bug) (fixed)

Remove spaces around non-variable array items

Reported by: itowhid06 Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: trivial Version:
Component: Networks and Sites Keywords: has-patch commit
Focuses: multisite, coding-standards Cc:

Description

From coding standards handbook-
When referring to array items, only include a space around the index if it is a variable

Attachments (1)

48237.diff (683 bytes) - added by itowhid06 2 years ago.

Download all attachments as: .zip

Change History (4)

@itowhid06
2 years ago

#1 @jrf
2 years ago

  • Keywords commit added

LGTM, though I'm a bit surprised this wasn't caught in one of the auto-fixer rounds.

#2 @SergeyBiryukov
2 years ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added
  • Milestone changed from Awaiting Review to 5.3

#3 @SergeyBiryukov
2 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 46420:

Coding Standards: Fix WPCS issues in wp-includes/ms-deprecated.php.

Props itowhid06.
Fixes #48237.

Note: See TracTickets for help on using tickets.