Make WordPress Core


Ignore:
Timestamp:
10/05/2011 07:09:51 AM (12 years ago)
Author:
dd32
Message:

Fix admin_body_class filter for Menu's and Widgets pages, Include the filter in Iframe's. Props SergeyBiryukov & johnbillion. Fixes #18853

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r18860 r18882  
    13521352    global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale;
    13531353    $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
    1354     $admin_body_class .= ' iframe';
    13551354
    13561355?><!DOCTYPE html>
     
    13901389?>
    13911390</head>
    1392 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>  class="no-js <?php echo $admin_body_class; ?>">
     1391<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>  class="wp-admin no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">
    13931392<script type="text/javascript">
    13941393//<![CDATA[
Note: See TracChangeset for help on using the changeset viewer.