WordPress.org

Make WordPress Core

Ticket #8873: dead_p_query_var_code.diff

File dead_p_query_var_code.diff, 439 bytes (added by filosofo, 7 years ago)
  • wp-includes/query.php

     
    17311731 
    17321732                if ( $q['page_id'] ) { 
    17331733                        if  ( ('page' != get_option('show_on_front') ) || ( $q['page_id'] != get_option('page_for_posts') ) ) { 
    1734                                 $q['p'] = $q['page_id']; 
    17351734                                $where = " AND {$wpdb->posts}.ID = " . $q['page_id']; 
    17361735                        } 
    17371736                }