WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#49108 closed defect (bug) (fixed)

Coding Standards: src/js/media/controllers/library.js

Reported by: ankitmaru Owned by: SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version: 5.3.2
Component: Media Keywords: has-patch
Focuses: javascript, coding-standards Cc:

Description

Coding Standard: Expected a conditional expression and instead saw an assignment.

Attachments (1)

if_condition_assignement_bug_library_js_fix.diff (1.0 KB) - added by ankitmaru 3 months ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
3 months ago

  • Component changed from General to Media
  • Milestone changed from Awaiting Review to 5.4
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
3 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 47030:

Coding Standards: Move assignment out of condition in js/media/controllers/library.js.

Props ankitmaru.
Fixes #49108.

Note: See TracTickets for help on using tickets.