Make WordPress Core


Ignore:
Timestamp:
04/10/2012 01:19:30 AM (14 years ago)
Author:
azaozz
Message:

Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014

File:
1 edited

Legend:

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

    r19871 r20417  
    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
     
    8888$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
    8989
    90 if ( $is_iphone ) { ?>
    91 <style type="text/css">.row-actions{visibility:visible;}</style>
    92 <?php } ?>
     90if ( wp_is_mobile() )
     91    $admin_body_class .= ' mobile';
     92
     93?>
    9394</head>
    9495<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
Note: See TracChangeset for help on using the changeset viewer.