[wp-trac] [WordPress Trac] #32077: get_pages re-factor to reduce line-count, DRY up code & give more specific functions for some of it's main processes

WordPress Trac noreply at wordpress.org
Wed Jun 3 13:18:45 UTC 2015


#32077: get_pages re-factor to reduce line-count, DRY up code & give more specific
functions for some of it's main processes
------------------------------------------+--------------------------------
 Reporter:  LewisCowles                   |       Owner:
     Type:  enhancement                   |      Status:  closed
 Priority:  normal                        |   Milestone:
Component:  Posts, Post Types             |     Version:  1.5
 Severity:  normal                        |  Resolution:  duplicate
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  docs, performance
------------------------------------------+--------------------------------
Changes (by helen):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 I don't think `get_pages()` is worth futzing with on its own until we've
 moved it to actually use our own query API. At that point, I imagine there
 would be significantly less code to construct SQL and do caching, etc., so
 realistically, this is a duplicate of #12821 as far as what the problem is
 (tickets are ideally about problems, not solutions).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32077#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list