[wp-trac] [WordPress Trac] #52845: Admin template.php file javascript code enhancement

WordPress Trac noreply at wordpress.org
Thu Mar 18 07:16:51 UTC 2021


#52845: Admin template.php file javascript code enhancement
------------------------------------------+-----------------------------
 Reporter:  nayanchamp7                   |      Owner:  (none)
     Type:  enhancement                   |     Status:  new
 Priority:  normal                        |  Milestone:  Awaiting Review
Component:  Administration                |    Version:  5.7
 Severity:  normal                        |   Keywords:  has-patch
  Focuses:  javascript, coding-standards  |
------------------------------------------+-----------------------------
 Here in wp-admin/includes/template.php file has some codes which are not
 standards according to [https://make.wordpress.org/core/handbook/best-
 practices/coding-standards/javascript/ 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52845>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list