#37346 closed defect (bug) (fixed)
In wp-mail.php file there is one "dmonths" array variable which is never used
Reported by: | vishalkakadiya | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Keywords: | has-patch | |
Focuses: | Cc: |
Description
In wp-mail.php
there are unused $dmonths = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
array variable which define in loop which is never used in that file or any other wordpress core files.
I think this should be removed.
Attachments (3)
Change History (10)
#2
@
8 years ago
- Summary changed from wp-mail.php file there are "dmonths" array variable which is not used to In wp-mail.php file there are "dmonths" array variable which is not used
#3
@
8 years ago
- Summary changed from In wp-mail.php file there are "dmonths" array variable which is not used to In wp-mail.php file there is one "dmonths" array variable which is never used
#4
@
8 years ago
- Component changed from General to Mail
- Keywords needs-refresh added
Hi @vishalkakadiya, thanks for the ticket!
Could you submit a patch without all the whitespace fixes? Large formatting cleanups are generally discouraged, see https://make.wordpress.org/core/2011/03/23/code-refactoring/.
#5
@
8 years ago
Hi @SergeyBiryukov,
I attach new "37346_1.patch" file with new patch as you ask without white space fixes. Please check and let me know if anything else required.
Thanks.
Note: See
TracTickets for help on using
tickets.
And also i found Formatting issues, coding standard is not as per WordPress Coding Standard. So I fixed also that.