~canonical-sysadmins/wordpress/4.1.3

« back to all changes in this revision

Viewing changes to wp-admin/admin-header.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title );
35
35
 
36
36
/**
37
 
 * Filter the <title> content for an admin page.
 
37
 * Filter the title tag content for an admin page.
38
38
 *
39
39
 * @since 3.1.0
40
40
 *
108
108
do_action( 'admin_print_scripts' );
109
109
 
110
110
/**
111
 
 * Fires in <head> for a specific admin page based on $hook_suffix.
 
111
 * Fires in head section for a specific admin page.
 
112
 *
 
113
 * The dynamic portion of the hook, `$hook_suffix`, refers to the hook suffix
 
114
 * for the admin page.
112
115
 *
113
116
 * @since 2.1.0
114
117
 */
115
118
do_action( "admin_head-$hook_suffix" );
116
119
 
117
120
/**
118
 
 * Fires in <head> for all admin pages.
 
121
 * Fires in head section for all admin pages.
119
122
 *
120
123
 * @since 2.1.0
121
124
 */
159
162
</head>
160
163
<?php
161
164
/**
162
 
 * Filter the admin <body> CSS classes.
163
 
 *
164
 
 * This filter differs from the post_class or body_class filters in two important ways:
165
 
 * 1. $classes is a space-separated string of class names instead of an array.
166
 
 * 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, and no-js cannot be removed.
 
165
 * Filter the CSS classes for the body tag in the admin.
 
166
 *
 
167
 * This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters
 
168
 * in two important ways:
 
169
 *
 
170
 * 1. `$classes` is a space-separated string of class names instead of an array.
 
171
 * 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui,
 
172
 *    and no-js cannot be removed.
167
173
 *
168
174
 * @since 2.3.0
169
175
 *
170
 
 * @param string $classes Space-separated string of CSS classes.
 
176
 * @param string $classes Space-separated list of CSS classes.
171
177
 */
 
178
$admin_body_classes = apply_filters( 'admin_body_class', '' );
172
179
?>
173
 
<body class="wp-admin wp-core-ui no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
 
180
<body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>">
174
181
<script type="text/javascript">
175
182
        document.body.className = document.body.className.replace('no-js','js');
176
183
</script>