Make WordPress Core


Ignore:
Timestamp:
06/06/2012 09:45:17 PM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805.

Also fixes uploader UIs on iOS and Kindle Fire by improving wp.Uploader.
Adds mobile viewport specifications.
Moves scrollbar back to fixed positioning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r21002 r21014  
    16061606    $cross_domain = ( strtolower( $admin_origin[ 'host' ] ) != strtolower( $home_origin[ 'host' ] ) );
    16071607
     1608    $browser = array(
     1609        'mobile' => wp_is_mobile(),
     1610        'ios'    => wp_is_mobile() && preg_match( '/iPad|iPod|iPhone/', $_SERVER['HTTP_USER_AGENT'] ),
     1611    );
     1612
    16081613    $settings = array(
    16091614        'url'           => esc_url( admin_url( 'customize.php' ) ),
    16101615        'isCrossDomain' => $cross_domain,
     1616        'browser'       => $browser,
    16111617    );
    16121618
Note: See TracChangeset for help on using the changeset viewer.