WordPress.org

Make WordPress Core

Opened 6 weeks ago

Closed 6 weeks 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:
PR Number:

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 6 weeks ago.

Download all attachments as: .zip

Change History (4)

@itowhid06
6 weeks ago

#1 @jrf
6 weeks ago

  • Keywords commit added

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

#2 @SergeyBiryukov
6 weeks ago

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

#3 @SergeyBiryukov
6 weeks 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.