[wp-trac] [WordPress Trac] #30770: Twenty Fifteen: Theme Review: Stylesheets and Scripts

WordPress Trac noreply at wordpress.org
Fri Dec 19 18:21:55 UTC 2014


#30770: Twenty Fifteen: Theme Review: Stylesheets and Scripts
---------------------------+----------------------
 Reporter:  emiluzelac     |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  4.1
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |     Focuses:
---------------------------+----------------------

Comment (by emiluzelac):

 @iamtakashi guidelines accepts only one script in the header.php and that
 is HTML5


 Rough example to make this work: (disregard the priority)

 {{{
 function twentyfifteen_js_class () {
     echo
 '<script>(function(){document.documentElement.className='js'})();</script>.
 "\n";
 }
 add_action( 'wp_head', twentyfifteen_js_class', 1 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30770#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list