Docs: Document usage of the $wpdb global in WP_Query::parse_search() and WP_Query::parse_orderby().

Props avinapatel.
Fixes #41313.


git-svn-id: https://develop.svn.wordpress.org/trunk@41041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2017-07-13 15:41:15 +00:00
parent d3f21c09f8
commit f72de4fff3

View File

@ -1292,9 +1292,12 @@ class WP_Query {
} }
/** /**
* Generate SQL for the WHERE clause based on passed search terms. * Generates SQL for the WHERE clause based on passed search terms.
* *
* @since 3.7.0 * @since 3.7.0
* @access protected
*
* @global wpdb $wpdb WordPress database abstraction object.
* *
* @param array $q Query variables. * @param array $q Query variables.
* @return string WHERE clause. * @return string WHERE clause.
@ -1509,6 +1512,8 @@ class WP_Query {
* @since 4.0.0 * @since 4.0.0
* @access protected * @access protected
* *
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $orderby Alias for the field to order by. * @param string $orderby Alias for the field to order by.
* @return string|false Table-prefixed value to used in the ORDER clause. False otherwise. * @return string|false Table-prefixed value to used in the ORDER clause. False otherwise.
*/ */