Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16264, comment 13


Ignore:
Timestamp:
02/14/2015 12:30:08 PM (10 years ago)
Author:
F J Kaiser
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16264, comment 13

    initial v1  
    11I'd at least vote to return the full `\WP_Query` object and not just the `$result->posts` property. Having access to the WP loop with `if ( have_posts() )` is a bonus and it's usage should be encouraged.
    22
    3 The filter itself imho is useless. There's pretty much no chance to really pinpoint a specific call in its current state. Every callback would affect any call to the function everywhere.
     3The filter itself imho is useless. There's pretty much no chance to really pinpoint a specific call in its current state. Every callback would affect any call to the function everywhere. If there really has to be a filter, then I'd at least add the template name as second arg.
     4
     5About the argument: I'd drop the `.php` extension from the input. That could - if there really needs to be a filter - also used as second arg on the filter.