WordPress.org

Make WordPress Core

Changeset 36812


Ignore:
Timestamp:
03/03/16 03:22:54 (20 months ago)
Author:
johnbillion
Message:

Revert r36811.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/vars.php

    r36811 r36812  
    121121 * Test if the current browser runs on a mobile device (smart phone, tablet, etc.) 
    122122 * 
     123 * @staticvar bool $is_mobile 
     124 * 
    123125 * @return bool 
    124126 */ 
    125127function wp_is_mobile() { 
     128    static $is_mobile = null; 
     129 
     130    if ( isset( $is_mobile ) ) { 
     131        return $is_mobile; 
     132    } 
     133 
    126134    if ( empty($_SERVER['HTTP_USER_AGENT']) ) { 
    127135        $is_mobile = false; 
Note: See TracChangeset for help on using the changeset viewer.