#57482 closed defect (bug) (fixed)
Remove the Unused variables in the wp-includes folder.
Reported by: | upadalavipul | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | coding-standards | Cc: |
Description
I have reviewed the code and found Unused variables in some of the below files. Please below files:
Files:
- /wp-includes/SimplePie/Item.php
- /wp-includes/SimplePie/Locator.php
- /wp-includes/class-wp-comment-query.php
- /wp-includes/feed-atom.php
Attachments (3)
Change History (8)
#2
@
20 months ago
- Focuses coding-standards added
- Version trunk deleted
Hello and thanks for the ticket/patch,
Yes, SimplePie is an external dependency that need to be fixed upstream: https://github.com/simplepie/simplepie
#3
@
18 months ago
- Milestone changed from Awaiting Review to 6.3
- Owner set to SergeyBiryukov
- Status changed from new to accepted
#5
@
17 months ago
Re: 57482.2.patch, as noted above, SimplePie is an external library and should not be patched here, any suggested changes to its files should be submitted upstream: https://github.com/simplepie/simplepie.
Note: See
TracTickets for help on using
tickets.
Isn't SimplePie a bundled lib for RSS? Not sure, but maybe this should be fixed upstream?
Also, in the Locator.php, you have just commented the lines out, if things are not used, then it's better that they are removed (they are all versioned files, so the change can always be reverted).
For the
$more
variable, I'm not sure it's unused (all the other feed files have it so it could be used in some way). Also Phpstorm didn't report it as unused for me.