WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27120, comment 2


Ignore:
Timestamp:
02/13/2014 09:56:00 AM (7 years ago)
Author:
Clorith
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27120, comment 2

    initial v1  
    22
    33If someone has defined the menu location and it matches `theme_location`, there is no caching done pre-patch.
     4
     5The two queries being ran with each iteration of wp_nav_menu() as mentioned;
     6
     7{{{
     8SELECT
     9        tr.object_id
     10FROM
     11        wp_term_relationships AS tr
     12INNER JOIN
     13        wp_term_taxonomy AS tt
     14                ON tr.term_taxonomy_id = tt.term_taxonomy_id
     15WHERE
     16        tt.taxonomy IN ('nav_menu')
     17AND
     18        tt.term_id IN ('2')
     19ORDER BY
     20        tr.object_id ASC
     21}}}
     22
     23and
     24
     25{{{
     26SELECT
     27        wp_posts.*
     28FROM
     29        wp_posts
     30WHERE
     31        1=1
     32AND
     33        wp_posts.ID IN (35,36,38,39,50,51,118,130,131,132,133,134)
     34AND
     35        wp_posts.post_type = 'nav_menu_item'
     36AND
     37        ((wp_posts.post_status = 'publish'))
     38ORDER BY
     39        wp_posts.menu_order ASC
     40}}}