Opened 6 years ago
Closed 6 years ago
#51014 closed defect (bug) (fixed)
Improve the structure format on the class-wp-media-list-table file
| Reported by: | Laxman Prajapati | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7 |
| Component: | Administration | Version: | 4.0 |
| Severity: | normal | Keywords: | good-first-bug has-patch early commit |
| Cc: | Focuses: | coding-standards |
Description
Improve the structure format of PHP code on the class-wp-media-list-table file for the understanding of which section are where closed.
Attachments (2)
Change History (12)
#2
@
6 years ago
- Component General → Administration
- Milestone Awaiting Review → 5.6
- Owner set to
- Status new → reviewing
#5
@
6 years ago
When reviewing we (a few colleagues: @justinahinon and @noudwordpress and myself) noticed a few code standard issues in the patch, which we addressed in 51014-2.patch:
- The
ifstatement on lines 272 to 276 was not correctly indented. It had one tab too many. - Line 425 had a trailing whitespace.
There is one code standard issue left about a strict comparison:
FILE: src/wp-admin/includes/class-wp-media-list-table.php
-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
656 | WARNING | Found: ==. Use strict comparisons (=== or !==).
| | (WordPress.PHP.StrictComparisons.LooseComparison)
-------------------------------------------------------------------------------------------------------------------
Since this is a pre-existing issue, where fixing it could change the behavior, we decided to leave it as is.
#6
@
6 years ago
- Keywords early added
- Milestone 5.6 → 5.7
I know this isn't a functional change but I don't really want to get into these types of changes here in late beta, marking for 5.7 early.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Created patch.