[wp-trac] [WordPress Trac] #46679: Themes: Add a shim for wp_body_open()
WordPress Trac
noreply at wordpress.org
Fri Mar 29 12:20:21 UTC 2019
#46679: Themes: Add a shim for wp_body_open()
---------------------------+------------------------------
Reporter: pento | Owner: adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.2
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+------------------------------
Comment (by ramiy):
The default themes, and any other theme should use:
{{{
<?php if ( function_exists( 'wp_body_open' ) ) wp_body_open(); ?>
}}}
instead of just:
{{{
<?php wp_body_open(); ?>
}}}
Unless the theme "**Minimum Required WordPress Version**" is 5.2+.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46679#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list