WordPress.org

Make WordPress Core

Changeset 24692


Ignore:
Timestamp:
07/12/2013 10:11:42 PM (7 years ago)
Author:
nacin
Message:

Revert ?format= on post.php. see #24116.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r24388 r24692  
    8686$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
    8787
    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 
    10088if ( wp_is_mobile() )
    10189    $admin_body_class .= ' mobile';
Note: See TracChangeset for help on using the changeset viewer.