Make WordPress Core

Changeset 36811


Ignore:
Timestamp:
03/03/2016 03:16:55 AM (9 years ago)
Author:
johnbillion
Message:
 
File:
1 edited

Legend:

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

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