[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
Fri Jan 29 18:03:10 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:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------
Changes (by sabernhardt):

 * version:  5.6 => 3.4


Comment:

 (I updated the version because the function has been around since
 WordPress 3.4 - changeset:20417)

 Could the `stripos` function be appropriate and/or better here?

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


More information about the wp-trac mailing list