#53359 closed task (blessed) (fixed)
Coding Standards fixes for WP 5.9
Reported by: | desrosj | Owned by: | |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Attachments (13)
Change History (90)
#1
@
4 years ago
In 53359.diff mostly fixed the strict comparison. here is the GitHub PR
This ticket was mentioned in PR #1509 on WordPress/wordpress-develop by jrfnl.
4 years ago
#8
- Keywords has-patch has-unit-tests added
Trac ticket: https://core.trac.wordpress.org/ticket/53359
#9
@
4 years ago
I've just uploaded 9 CS related patches to fix some low hanging fruit. To verify, one PR containing all these patches has been opened on GH and the build is passing: https://github.com/WordPress/wordpress-develop/pull/1509
hellofromtonya commented on PR #1509:
4 years ago
#10
@jrfnl Is this PR complete and ready for code review?
4 years ago
#11
@hellofromtonya There will always be more fixes to make, but the fixes as pulled here are ready for commit as far as I'm concerned.
This ticket was mentioned in PR #1510 on WordPress/wordpress-develop by jrfnl.
4 years ago
#13
Update the PHP_CodeSniffer dependency from version 3.5.5 to version 3.6.0.
I have also verified the ignore annotations, but no changes are needed there which are directly related to the PHPCS update. Changes which could be made have been added to #53359.
Trac ticket: https://core.trac.wordpress.org/ticket/53477
#14
@
4 years ago
- Keywords commit added
Marking submitted patches from [https://github.com/WordPress/wordpress-develop/pull/1509 PR 1509) ready for commit
.
4 years ago
#15
Closing as merged via changeset https://core.trac.wordpress.org/changeset/51470
This ticket was mentioned in PR #1552 on WordPress/wordpress-develop by jrfnl.
3 years ago
#27
If a closure doesn't use $this
, it can be made static
for improved performance.
Static closures are supported in PHP since PHP 5.4.
Trac ticket: https://core.trac.wordpress.org/ticket/53359
#28
@
3 years ago
I've just opened PR 1552 with two more patches to fix all closures not using $this
to be static
(performance tweak).
3 years ago
#29
I've rebased the remaining commits in this PR to solve the merge conflicts and make the patches commitable again.
hellofromtonya commented on PR #1552:
3 years ago
#33
Closing as committed with changeset https://core.trac.wordpress.org/changeset/51657.
#36
@
3 years ago
Just noting that some of the patches here make changes to the wp-includes/blocks
directory. However, these changes can be overwritten later with package updates from Gutenberg, so they would have to be made upstream in the Gutenberg repo first. The latest commits will skip those changes for now.
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 sergey. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by sergey. View the logs.
3 years ago
This ticket was mentioned in PR #2028 on WordPress/wordpress-develop by audrasjb.
3 years ago
#65
Trac ticket: https://core.trac.wordpress.org/ticket/53359
3 years ago
#67
Committed in https://core.trac.wordpress.org/changeset/52345
This ticket was mentioned in PR #2043 on WordPress/wordpress-develop by audrasjb.
3 years ago
#71
Trac ticket: https://core.trac.wordpress.org/ticket/53359
This ticket was mentioned in PR #2043 on WordPress/wordpress-develop by audrasjb.
3 years ago
#72
Trac ticket: https://core.trac.wordpress.org/ticket/53359
3 years ago
#74
Committed in https://core.trac.wordpress.org/changeset/52354
#76
@
3 years ago
- Resolution set to fixed
- Status changed from new to closed
With 5.9 RC1 tomorrow and 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 final 5.9 release, this can be referenced and reopened if necessary with dev-reviewed
.
#54728 is open for continuation during the 6.0 cycle.
Patch for PHPCS fixing in bundled themes.