WordPress.org

Make WordPress Core

#44315 closed defect (bug) (fixed)

PHPCS: Assignments must be the first block of code on a line

Reported by: subrataemfluence Owned by:
Milestone: 5.1 Priority: normal
Severity: normal Version: 5.1
Component: Users Keywords: has-patch
Focuses: coding-standards Cc:
PR Number:

Description

At several areas of wp-includes/user.php the coding style is not compatible with PHPCS validations using WordPress standards.

Issue: Assignments must be the first block of code on a line.

Proposed solution uploaded.

Attachments (1)

44315.diff (1.5 KB) - added by subrataemfluence 18 months ago.

Download all attachments as: .zip

Change History (6)

#1 @subrataemfluence
18 months ago

  • Keywords has-patch added; needs-patch removed

#2 @netweb
18 months ago

  • Milestone changed from Awaiting Review to 5.0

#3 @pento
13 months ago

  • Milestone changed from 5.0 to 5.1

#4 @pento
10 months ago

In 44597:

Coding Standards: Move assignments out of conditions in wp-includes/user.php.

Props subrataemfluence.
See #44315.

#5 @pento
10 months ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.