Make WordPress Core

Ticket #41745: 41745.patch

File 41745.patch, 371 bytes (added by kbjohnson90, 8 years ago)
  • wp-includes/query.php

    diff --git wp-includes/query.php wp-includes/query.php
    index 0ed1fab575..4c21af453f 100644
     
    2525 */
    2626function get_query_var( $var, $default = '' ) {
    2727        global $wp_query;
     28    if( ! isset( $wp_query ) || ! method_exists( $wp_query, 'get' ) ) return $default;
    2829        return $wp_query->get( $var, $default );
    2930}
    3031