Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#48237 closed defect (bug) (fixed)

Remove spaces around non-variable array items

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

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 7 years ago.

Download all attachments as: .zip

Change History (4)

@itowhid06
7 years ago

#1 @jrf
7 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
7 years ago

  • Component General → Networks and Sites
  • Focuses multisite added
  • Milestone Awaiting Review → 5.3

#3 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.