[wp-trac] [WordPress Trac] #17920: Unnecessary code in wp.getPage

WordPress Trac noreply at wordpress.org
Thu Sep 11 08:43:51 UTC 2014

#17920: Unnecessary code in wp.getPage
 Reporter:  nprasath002             |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  4.1
Component:  XML-RPC                 |     Version:  3.2
 Severity:  minor                   |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
Changes (by markoheijnen):

 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => 4.1


 Created a new patch that adds a is_object_in_taxonomy() check. It will
 prevent one query like this one:

 {{{SELECT t.term_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt
 ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON
 tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN
 ('category') AND tr.object_id IN (2) ORDER BY t.name ASC}}}

 Moving to 4.1 for consideration.

Ticket URL: <https://core.trac.wordpress.org/ticket/17920#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list