From e1edb8a3c8a069e90d19822a961a9d212a92f035 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 12 Jul 2013 22:11:42 +0000 Subject: [PATCH] Revert ?format= on post.php. see #24116. git-svn-id: https://develop.svn.wordpress.org/trunk@24692 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-header.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index b2655b8ee1..00ad299695 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -85,18 +85,6 @@ $admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0- $admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' ); $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); -if ( isset( $post ) && is_a( $post, 'WP_Post' ) && post_type_supports( get_post_type(), 'post-formats' ) ) { - $post_format = get_post_format(); - - if ( ! empty( $_REQUEST['format'] ) && in_array( $_REQUEST['format'], get_post_format_slugs() ) ) - $post_format = $_REQUEST['format']; - - if ( ! $post_format ) - $post_format = 'standard'; - - $admin_body_class .= ' wp-format-' . $post_format; -} - if ( wp_is_mobile() ) $admin_body_class .= ' mobile';