Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r19522 r21010  
    1212
    1313// In case admin-header.php is included in a function.
    14 global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version, $is_iphone,
     14global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $wp_version,
    1515        $current_site, $update_title, $total_update_count, $parent_file;
    1616
    … …  
    5656                'time':'<?php echo time() ?>'
    5757        },
    58         ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',
     58        ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
    5959        pagenow = '<?php echo $current_screen->id; ?>',
    6060        typenow = '<?php echo $current_screen->post_type; ?>',
    … …  
    8686$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
    8787$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
     88$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
    8889
    89 if ( $is_iphone ) { ?>
    90 <style type="text/css">.row-actions{visibility:visible;}</style>
    91 <?php } ?>
     90if ( wp_is_mobile() )
     91        $admin_body_class .= ' mobile';
     92
     93$admin_body_class .= ' no-customize-support';
     94
     95?>
    9296</head>
    9397<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
    94 <script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
     98<script type="text/javascript">
     99        document.body.className = document.body.className.replace('no-js','js');
     100</script>
     101
     102<?php
     103// If the customize-loader script is enqueued, make sure the customize
     104// body classes are correct as early as possible.
     105if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_theme_options' ) )
     106        wp_customize_support_script();
     107?>
    95108
    96109<div id="wpwrap">
Note: See TracChangeset for help on using the changeset viewer.