WordPress.org

Make WordPress Core

Ticket #41045: 41045-2.patch

File 41045-2.patch, 517 bytes (added by dixitadusara, 3 years ago)

Also add global tag for $wpdb

  • wp-includes/class-wp-query.php

     
    14421442        /**
    14431443         * Generate SQL for the ORDER BY condition based on passed search terms.
    14441444         *
     1445         * @since 3.7.0
     1446         * @access protected
     1447         *
     1448         * @global wpdb $wpdb WordPress database abstraction object.
     1449         *
    14451450         * @param array $q Query variables.
    14461451         * @return string ORDER BY clause.
    14471452         */