mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Improve various hook and filter docs so they are correctly parsed for the code reference.
Fixes #30558 Props DrewAPicture git-svn-id: https://develop.svn.wordpress.org/trunk@30754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -164,16 +164,19 @@ $admin_body_class .= ' no-customize-support no-svg';
|
||||
/**
|
||||
* Filter the CSS classes for the body tag in the admin.
|
||||
*
|
||||
* This filter differs from the post_class or body_class filters in two important ways:
|
||||
* 1. $classes is a space-separated string of class names instead of an array.
|
||||
* 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, and no-js cannot be removed.
|
||||
* This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters
|
||||
* in two important ways:
|
||||
* 1. `$classes` is a space-separated string of class names instead of an array.
|
||||
* 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui,
|
||||
* and no-js cannot be removed.
|
||||
*
|
||||
* @since 2.3.0
|
||||
*
|
||||
* @param string $classes Space-separated string of CSS classes.
|
||||
* @param string $classes Space-separated list of CSS classes.
|
||||
*/
|
||||
$admin_body_classes = apply_filters( 'admin_body_class', '' );
|
||||
?>
|
||||
<body class="wp-admin wp-core-ui no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
|
||||
<body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
|
||||
<script type="text/javascript">
|
||||
document.body.className = document.body.className.replace('no-js','js');
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user