[wp-trac] [WordPress Trac] #35976: Unit test: Check if the device can upload

WordPress Trac noreply at wordpress.org
Thu Mar 3 03:24:04 UTC 2016


#35976: Unit test: Check if the device can upload
-------------------------+--------------------------
 Reporter:  borgesbruno  |       Owner:  johnbillion
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  4.5
Component:  Upload       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+--------------------------

Comment (by johnbillion):

 In [changeset:"36813"]:
 {{{
 #!CommitTicketReference repository="" revision="36813"
 Uploads: Remove an unnecessary static var from `wp_is_mobile()` to allow
 its direct and indirect use within unit tests. The static `$is_m
 obile` 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()`.

 See #35976, #20014
 }}}

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


More information about the wp-trac mailing list