Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35976, comment 9


Ignore:
Timestamp:
03/03/2016 03:32:50 AM (8 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35976, comment 9

    initial v1  
    22{{{
    33#!CommitTicketReference repository="" revision="36813"
    4 Uploads: Remove an unnecessary static var from `wp_is_mobile()` to allow its direct and indirect use within unit tests. The static `$is_m
    5 obile` var was only used to avoid a handful of calls to `strpos()`, which are exceptionally fast and result in no measurable increase in
    6 processing time on each call to `wp_is_mobile()`.
     4Uploads: Remove an unnecessary static var from `wp_is_mobile()` to allow its direct and indirect use within unit tests. The static `$is_mobile` var was only used to avoid a handful of calls to `strpos()`, which are exceptionally fast and result in no measurable increase in processing time on each call to `wp_is_mobile()`.
    75
    86See #35976, #20014