WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
05/27/2013 04:32:51 AM (8 years ago)
Author:
ryanve
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24429, comment 4

    initial v1  
    1 I've read #23259, #14671, and #14280. I think the performance lost by adding one filter 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 one filter here could be regained elsewhere. I know `add_filter` is called 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.