Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16264, comment 13

    v1 v2  
    33The 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.
    44
    5 About 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.
     5About the arguments: 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. And I still believe that `menu_order` would be much more appropriate than using a publish date for orderby.