mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Convert various uses of (optional) in core parameter descriptions to use the style prescribed in the inline documentation standards for PHP.
The style for marking parameters optional in inline PHP docs is: `@param type $var Optional. Description. Accepts. Default.`, where Accepts can be omitted on a case-by-case basis. Props coffee2code. Fixes #30591. git-svn-id: https://develop.svn.wordpress.org/trunk@30753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -840,18 +840,18 @@ function update_meta_cache($meta_type, $object_ids) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a meta query, generates SQL clauses to be appended to a main query
|
||||
* Given a meta query, generates SQL clauses to be appended to a main query.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @see WP_Meta_Query
|
||||
*
|
||||
* @param array $meta_query A meta query
|
||||
* @param string $type Type of meta
|
||||
* @param string $primary_table
|
||||
* @param string $primary_id_column
|
||||
* @param object $context (optional) The main query object
|
||||
* @return array( 'join' => $join_sql, 'where' => $where_sql )
|
||||
* @param array $meta_query A meta query.
|
||||
* @param string $type Type of meta.
|
||||
* @param string $primary_table Primary database table name.
|
||||
* @param string $primary_id_column Primary ID column name.
|
||||
* @param object $context Optional. The main query object
|
||||
* @return array Associative array of `JOIN` and `WHERE` SQL.
|
||||
*/
|
||||
function get_meta_sql( $meta_query, $type, $primary_table, $primary_id_column, $context = null ) {
|
||||
$meta_query_obj = new WP_Meta_Query( $meta_query );
|
||||
|
||||
Reference in New Issue
Block a user