[wp-trac] [WordPress Trac] #54769: INNER JOIN missing "AS" in /wp-includes/link-template.php

WordPress Trac noreply at wordpress.org
Sat Jan 8 17:26:52 UTC 2022


#54769: INNER JOIN missing "AS" in /wp-includes/link-template.php
---------------------------+-----------------------------
 Reporter:  domainsupport  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Database       |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Line 1833 of /wp-includes/link-template.php reads ...

 {{{#!php
 <?php
                                 $join  .= " INNER JOIN
 $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN
 $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
 }}}


 ... but I believe it should read ...

 {{{#!php
 <?php
                                 $join  .= " INNER JOIN
 $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN
 $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
 }}}


 It appears to be missing an "AS" after the second INNER JOIN.

 Oliver

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


More information about the wp-trac mailing list