Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #24429, comment 4


Ignore:
Timestamp:
05/27/2013 04:33:19 AM (11 years ago)
Author:
ryanve
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24429, comment 4

    v1 v2  
    1 I've read #23259, #14671, and #14280. The performance lost by adding one filter here could be regained elsewhere. I know `add_filter` is called a lot. The extra capability here seems worth it.
     1I've read #23259, #14671, and #14280. The performance lost by adding a filter here could be regained elsewhere. I know `add_filter` runs a lot. The extra capability here seems worth it.
    22
    33Applying the old hooks in place is not ideal and does not achieve the same effect. It is messy and mixes up the priorities. There currently is no way to perfectly alias a hook b/c one fires before the other. Applying unused hooks is a waste itself. The `return false` above can stop hooks from being added and thus **save** performance. They'd never exist in the `apply_filters`  stack in the first place.