Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #16264, comment 19


Ignore:
Timestamp:
12/13/2015 09:31:58 PM (8 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16264, comment 19

    v2 v3  
    1818For example, someone writes a `WP_Query` that hardcodes the page ID for a pricing page into a check for whether to modify a query based in `'pre_get_posts'`.  With this function they could instead hardcode the page template filename and modify the query when that matched. 
    1919
    20 Tying to page templates instead of slugs and post IDS is a more for robust solution.  And I would expect the reason most people who tie to slugs and post IDs do so because it does not occur to them that there is another way. If this function where built-in and and blogs posts about it existed, it might occur to them to do it more robustly.
     20Tying to page templates instead of slugs and post IDS is a more for robust solution.  And I would expect the reason most people who tie to slugs and post IDs do so because it does not occur to them that there is a better way. If this function where built-in and and blogs posts about it existed, it might occur to them to do it more robustly.
    2121