Opened 5 months ago
Last modified 6 days ago
#53359 new task (blessed)
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 (65)
#1
@
4 months 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.
3 months ago
- Keywords has-patch has-unit-tests added
Trac ticket: https://core.trac.wordpress.org/ticket/53359
#9
@
3 months 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
#10
@
3 months ago
hellofromtonya commented on PR #1509:
@jrfnl Is this PR complete and ready for code review?
This ticket was mentioned in PR #1510 on WordPress/wordpress-develop by jrfnl.
3 months ago
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
@
3 months ago
- Keywords commit added
Marking submitted patches from [https://github.com/WordPress/wordpress-develop/pull/1509 PR 1509) ready for commit
.
#15
@
3 months ago
jrfnl commented on PR #1510:
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 months ago
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 months ago
I've just opened PR 1552 with two more patches to fix all closures not using $this
to be static
(performance tweak).
#33
@
8 weeks ago
hellofromtonya commented on PR #1552:
Closing as committed with changeset https://core.trac.wordpress.org/changeset/51657.
#36
@
8 weeks 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.
Patch for PHPCS fixing in bundled themes.