Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17019, comment 14


Ignore:
Timestamp:
04/07/2011 06:53:14 AM (14 years ago)
Author:
kevinB
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17019, comment 14

    initial v1  
    88The change was to make apply_filters_ref_array(), before calling each hooked filter as it currently does, to check whether that filter was added with a context arg... and if so, to '''not''' call it if the current context doesn't match.
    99
    10 The changes to WP_Query and plugin.php were to apply fewer filters, not more.  So is the performance concern for the isset / empty statements?  The is_array() check in add_filter?  Or the optional arg to apply_filters_ref_array?
     10The changes to WP_Query and plugin.php were to apply fewer filters, not more - to '''let me''' fire my query-related filters only where I want them.  So is the performance concern for the isset / empty statements?  The is_array() check in add_filter?  Or the optional arg to apply_filters_ref_array?