Bundled Theme: trigger a new `wp_body_open` action immediately after the opening `body` tag.
* Enables inserting (asynchronous) JavaScript right after the opening `body` tag. * Add a `wp_body_open` helper function that triggers the `wp_body_open` action. * Call `wp_body_open` in core themes immediately after the opening `body` tag. Props joostdevalk, valendesigns, nacin, saracup, jorbin, mikeschinkel, jonnybojangles, lgedeon, Willscrlt, Denis-de-Bernardy, lexiqueen, sky_76, welcher, westonruter, ramiy, joyously. Fixes #12563. Built from https://develop.svn.wordpress.org/trunk@45042 git-svn-id: http://core.svn.wordpress.org/trunk@44851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2c485568c
commit
c1c1abd211
|
@ -32,6 +32,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
|
<?php wp_body_open(); ?>
|
||||||
<div id="page" class="hfeed site">
|
<div id="page" class="hfeed site">
|
||||||
<header id="masthead" class="site-header" role="banner">
|
<header id="masthead" class="site-header" role="banner">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
|
|
Loading…
Reference in New Issue