WordPress.org

Make WordPress Core

Ticket #41023: 41023.patch

File 41023.patch, 495 bytes (added by PressLabs, 4 years ago)
  • wp-includes/vars.php

     
    139139                $is_mobile = false;
    140140        }
    141141
    142         return $is_mobile;
     142        /**
     143         * Filters weather the request should be treated as mobile or not.
     144         *
     145         * @since 4.8.1
     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}