WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23259, comment 3


Ignore:
Timestamp:
01/22/13 05:02:14 (15 months ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23259, comment 3

    initial v1  
    3232>  * This would potentially slow down an API that needs to be very fast because it is called so often. Worse, performance would degrade further as more plugins opt into these filters. 
    3333 
    34 True.  Well if the we only considered a string and first character were an indicator it would be a very fast check before running the filter. I've uploaded another patch for consideration. 
     34True.  Well if the we only considered a string and first character were an indicator it would be a very fast check before running the filter. I've uploaded another patch for consideration. With this approach we could support one of these syntaxes: 
     35 
     36{{{ 
     37remove_action( 'the_content', '@My_Plugin::the_content' ); 
     38remove_action( 'the_content', '@My_Plugin->the_content' ); 
     39}}} 
    3540 
    3641And if not would you consider it if we limit the scope to `remove_filter()` then, as that's where the issue arose?