Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27208, comment 7


Ignore:
Timestamp:
03/04/2014 01:28:42 PM (12 years ago)
Author:
Denis-de-Bernardy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27208, comment 7

    initial v1  
    4646
    4747As you can see in the above, things would be more sensible with an `add_filter()` call.  I could admittedly require PHP 5.4 instead of PHP 5.3, since the latter allows to catch the status code using a built-in function. But I can readily picture other scenarios where adding a filter here and there without needing to load WP in full might be useful.
     48
     49Moreover, I can foresee how fragile the above implementation is in the event the plugin API's internals change at some point or another.