Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 18 months ago

#61098 closed defect (bug) (fixed)

phpcs error in wp-includes > capabilities.php line 1093

Reported by: dhruvang21 Owned by: SergeyBiryukov
Priority: normal Milestone: 6.6
Component: Role/Capability Version:
Severity: normal Keywords: has-patch needs-testing needs-test-info
Cc: Focuses: coding-standards

Description

If control structure block found as the only statement within an "else" block. Use elseif instead.phpcs

Change History (8)

This ticket was mentioned in ​Slack in #core-test by ankit-k-gupta. ​View the logs.


3 years ago

#3 @Ankit K Gupta
3 years ago

  • Keywords needs-testing needs-testing-info added

Thank you, @dhruvang21, for the report and PR. This ticket was discussed during this week's Test Team Triage Session. Could you provide the steps to test this fix and issue? This will greatly assist contributors in easily testing the fix.

#4 @dhruvang21
3 years ago

@ankit-k-gupta the issue is shown in the given screenshot ​https://www.awesomescreenshot.com/image/47850531?key=0abb0d1d7d0554d6fc35a906c2087273

and to test this fix you can run the phpcs checker command

#5 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review → 6.6

#6 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 58099:

Coding Standards: Remove extra conditional in is_super_admin().

Follow-up to [12612].

Props dhruvang21, ankit-k-gupta, audrasjb.
Fixes #61098.

​@SergeyBiryukov commented on ​PR #6459:


3 years ago
#7

Thanks for the PR! Merged in r58099.

#8 @wordpressdotorg
18 months ago

  • Keywords needs-test-info added; needs-testing-info removed
Note: See TracTickets for help on using tickets.