[wp-trac] [WordPress Trac] #52397: The function wp_is_mobile should accept also lower case strings as user agents

WordPress Trac noreply at wordpress.org
Sat Jan 30 09:33:01 UTC 2021


#52397: The function wp_is_mobile should accept also lower case strings as user
agents
-------------------------------+------------------------------
 Reporter:  giuse              |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  low                |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by giuse):

 Or better. as suggested by @sabernhardt, you could replace strpos with
 stripos that is supported from PHP 5+, so no problem with stripos and
 really no difference in terms of performance.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52397#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list