Opened 5 years ago
Closed 5 years ago
#52845 closed defect (bug) (fixed)
Admin template.php file javascript code enhancement
| Reported by: | nayanchamp7 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Administration | Version: | 5.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | javascript, coding-standards |
Description
Here in wp-admin/includes/template.php file has some codes which are not standards according to WordPress core javascript coding standards. In 2118 line, there is 'typeof' condition which is not given as strict equal condition.
<script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script>
These need to be updated.
Attachments (1)
Change History (5)
#3
@
5 years ago
Thanks for the patch!
Since the rest of this code is minified, I think we'd want to just use strict comparison and avoid adding extra spaces.
Version 0, edited 5 years ago by
(next)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Updated the codes and tested.