[wp-trac] [WordPress Trac] #21321: Remove is_null() checks in apply_filters(), do_action(), et al.

WordPress Trac noreply at wordpress.org
Thu Oct 1 02:01:12 UTC 2015


#21321: Remove is_null() checks in apply_filters(), do_action(), et al.
--------------------------+-----------------------------
 Reporter:  nacin         |       Owner:  nacin
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:  Future Release
Component:  Plugins       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  performance
--------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:   => dev-feedback


Comment:

 This might be mooted by #17817, but FWIW `null !== $x` is marginally
 faster than `! is_null( $x )`. On 10,000 iterations you save around 200ms.

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


More information about the wp-trac mailing list