Opened 4 years ago
Closed 3 years ago
#52627 closed task (blessed) (fixed)
Coding Standards fixes for WP 5.8
Reported by: | SergeyBiryukov | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | coding-standards | Cc: |
Change History (62)
#7
follow-up:
↓ 9
@
4 years ago
In [50631]:
Coding Standards: Removing unnecessary parentheses from require_once in wp-admin/options-privacy.php.
In [47198], parentheses were removed from include and require statements, as they are language constructs, not function calls. However, [50161] introduced a new require_once instance in wp-admin/options-privacy.php. This change removes the unnecessary parentheses.
See #53627.
#9
in reply to:
↑ 7
;
follow-up:
↓ 10
@
4 years ago
@davidbaumwald Do we need to remove parentheses from here https://github.com/WordPress/WordPress/blob/master/wp-includes/class-requests.php#L146?
Replying to davidbaumwald:
In [50631]:
Coding Standards: Removing unnecessary parentheses from
require_once
inwp-admin/options-privacy.php
.
In [47198], parentheses were removed from
include
andrequire
statements, as they are language constructs, not function calls. However, [50161] introduced a newrequire_once
instance inwp-admin/options-privacy.php
. This change removes the unnecessary parentheses.
See #53627.
#10
in reply to:
↑ 9
@
4 years ago
Replying to mukesh27:
@davidbaumwald Do we need to remove parentheses from here https://github.com/WordPress/WordPress/blob/master/wp-includes/class-requests.php#L146?
Replying to davidbaumwald:
In [50631]:
Coding Standards: Removing unnecessary parentheses from
require_once
inwp-admin/options-privacy.php
.
In [47198], parentheses were removed from
include
andrequire
statements, as they are language constructs, not function calls. However, [50161] introduced a newrequire_once
instance inwp-admin/options-privacy.php
. This change removes the unnecessary parentheses.
See #53627.
@mukesh27 Good catch, but that's one of the third-party library exclusions. See https://core.trac.wordpress.org/browser/tags/5.7/phpcs.xml.dist#L116
#11
@
4 years ago
@davidbaumwald Thanks for the information.
https://github.com/WordPress/WordPress/commits/master/wp-includes/class-requests.php
If you check GitHub history for that file then you found that core developer's changed some code as per new possible updates.
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by sergey. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by david.baumwald. View the logs.
3 years ago
#46
@
3 years ago
- Resolution set to fixed
- Status changed from new to closed
Today is beta 1 day. Since coding standards updates usually touch code, I'm going to close this out.
If there are any more changes required between now and the actual 5.8 release, this can be referenced and reopened if necessary.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
3 years ago
#54
@
3 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to merge [51287] to the 5.8 branch.
#56
@
3 years ago
- Owner set to desrosj
- Resolution set to fixed
- Status changed from reopened to closed
In 51305:
#58
@
3 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to merge [51400] to the 5.8 branch.
In 50533: