Make WordPress Core

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


Ignore:
Timestamp:
04/08/2011 04:55:17 PM (13 years ago)
Author:
kevinB
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17019, comment 23

    initial v1  
    22> To put it another way: you're moving the context check from the callback to the caller - apply_filters().
    33>
    4 Yes, and doing so also reduces the risk of query destruction by filters which incorrectly return null.  If the offending filter was added for a specific context, it will only wreck one query and not all of them.
     4Yes, but the caller is apply_filters_ref_array().
     5
     6And moving the context check to that caller also reduces the risk of query destruction by filters which incorrectly return null.  If the offending filter was added for a specific context, it will only wreck one query and not all of them.