[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
Thu Apr 23 15:42: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:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Posts, Post Types             |     Version:  1.5
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  docs, performance
------------------------------------------+--------------------------------

Comment (by LewisCowles):

 Replying to [comment:4 helen]:
 > Pages are a post type. If one is wandering into refactoring this
 function, perhaps it is prudent to consider that the general movement of
 its existence should be to utilizing our own query API.

 I am not disputing what Helen is saying as part of a separate issue. This
 has nothing to do with her proposal to ensure pages follow the post's, and
 in-fact should make that easier by compartmentalizing the functionality of
 a huge dinosaur function.

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


More information about the wp-trac mailing list