WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25669, comment 9


Ignore:
Timestamp:
10/24/2013 01:26:43 PM (6 years ago)
Author:
TJNowell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25669, comment 9

    initial v1  
    11The problems:
    22
    3  - Code relying on DOING_AJAX is harder to test in isolation than code that relies on a function
     3 - Code relying on `DOING_AJAX` is harder to test in isolation than code that relies on a function
    44 - It's easier to filter such a functions output than to redefine it ( after all what would be the point if we swapped redefining a constant with redefining a function? )
    55 - A lot of codebases and developers define functions exactly like this, thus this function results in a reduction in boilerplate and duplication