Changeset 32650 for trunk/src/wp-includes/vars.php
- Timestamp:
- 05/29/2015 03:42:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/vars.php
r32116 r32650 119 119 * Test if the current browser runs on a mobile device (smart phone, tablet, etc.) 120 120 * 121 * @staticvar bool $is_mobile 122 * 121 123 * @return bool true|false 122 124 */ 123 125 function wp_is_mobile() { 124 static $is_mobile ;126 static $is_mobile = null; 125 127 126 if ( isset( $is_mobile) )128 if ( isset( $is_mobile ) ) { 127 129 return $is_mobile; 130 } 128 131 129 132 if ( empty($_SERVER['HTTP_USER_AGENT']) ) {
Note: See TracChangeset
for help on using the changeset viewer.