Make WordPress Core

Ticket #46768: 46768.diff

File 46768.diff, 662 bytes (added by Howdy_McGee, 5 years ago)

Adds tt.parent to id=>name and id=>slug to account for child_of and parent

  • class-wp-term-query.php

     
    610610                                $selects = array( 'COUNT(*)' );
    611611                                break;
    612612                        case 'id=>name':
    613                                 $selects = array( 't.term_id', 't.name', 'tt.count', 'tt.taxonomy' );
     613                                $selects = array( 't.term_id', 't.name', 'tt.parent', 'tt.count', 'tt.taxonomy' );
    614614                                break;
    615615                        case 'id=>slug':
    616                                 $selects = array( 't.term_id', 't.slug', 'tt.count', 'tt.taxonomy' );
     616                                $selects = array( 't.term_id', 't.slug', 'tt.parent', 'tt.count', 'tt.taxonomy' );
    617617                                break;
    618618                }
    619619