Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #13239, comment 15


Ignore:
Timestamp:
02/24/2011 10:24:59 PM (14 years ago)
Author:
andrewlawson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13239, comment 15

    v1 v2  
    1 My patch wasn't to replace your's, I'd simply written it before I came across this ticket.
     1My patch wasn't to replace yours, I'd simply written it before I came across this ticket.
    22
    33I can see the benefit of filtering $template_name instead of a list of directories, although there could be a problem with your patch:
     
    1313but that may cause problems for non-absolute paths depending on where the filter callback is defined.
    1414
    15 I know windows isn't ideal for development, never mind production, yet it's still used for both, and needs to be accommodated for.
     15I know windows isn't ideal for development, never mind production, yet it's still used for both and needs to be accommodated for.
    1616
    1717The only solution I can see is to use two filters; one to filter a list of directories, and another to filter the template names.