WordPress.org

WordPress build repository browser

Changeset 40757


Ignore:
Timestamp:
06/15/17 12:05:42 (4 months ago)
Author:
johnbillion
Message:

General: Introduce a wp_is_mobile filter for controlling whether a request should be treated as coming from a mobile device.

Props PressLabs

Fixes #41023

Built from https://develop.svn.wordpress.org/trunk@40907

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r39578 r40757  
    140140    } 
    141141 
    142     return $is_mobile; 
     142    /** 
     143     * Filters whether the request should be treated as coming from a mobile device or not. 
     144     * 
     145     * @since 4.9.0 
     146     * 
     147     * @param bool $is_mobile Whether the request is from a mobile device or not. 
     148     */ 
     149    return apply_filters( 'wp_is_mobile', $is_mobile ); 
    143150} 
  • trunk/wp-includes/version.php

    r40756 r40757  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '4.9-alpha-40906'; 
     7$wp_version = '4.9-alpha-40907'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.