Changeset 24692
- Timestamp:
- 07/12/2013 10:11:42 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r24388 r24692 86 86 $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); 87 87 88 if ( isset( $post ) && is_a( $post, 'WP_Post' ) && post_type_supports( get_post_type(), 'post-formats' ) ) {89 $post_format = get_post_format();90 91 if ( ! empty( $_REQUEST['format'] ) && in_array( $_REQUEST['format'], get_post_format_slugs() ) )92 $post_format = $_REQUEST['format'];93 94 if ( ! $post_format )95 $post_format = 'standard';96 97 $admin_body_class .= ' wp-format-' . $post_format;98 }99 100 88 if ( wp_is_mobile() ) 101 89 $admin_body_class .= ' mobile';
Note: See TracChangeset
for help on using the changeset viewer.