[wp-trac] [WordPress Trac] #37463: Abstract Query Class

WordPress Trac noreply at wordpress.org
Mon Jul 25 20:50:03 UTC 2016


#37463: Abstract Query Class
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 All of the query classes WP_Comment_Query, WP_Network_Query,
 WP_Site_Query, WP_Term_Query and WP_User_Query are based on WP_Query
 class. For that reason they have a lot of similar methods and variables.
 As all the classes basically do the same thing, we can use an abstract
 class, so all related methods and variables are on the abstract class. If
 all query classes extend this abstract class, we can keep structure and
 consistency. It would also mean, for example, we could just add filters
 and actions in the abstract class and these would filter down.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37463>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list