<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[28887] trunk/src/wp-includes/query.php: First-run documention of `WP_Query` argument defaults.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/28887">28887</a></dd>
<dt>Author</dt> <dd>DrewAPicture</dd>
<dt>Date</dt> <dd>2014-06-28 23:02:05 +0000 (Sat, 28 Jun 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>First-run documention of `WP_Query` argument defaults.
Props siobhan for some language tweaks. Props DrewAPicture.
See <a href="http://core.trac.wordpress.org/ticket/25367">#25367</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludesqueryphp">trunk/src/wp-includes/query.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesqueryphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/query.php (28886 => 28887)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/query.php 2014-06-28 04:49:39 UTC (rev 28886)
+++ trunk/src/wp-includes/query.php 2014-06-28 23:02:05 UTC (rev 28887)
</span><span class="lines">@@ -1449,7 +1449,97 @@
</span><span class="cx"> * @since 1.5.0
</span><span class="cx"> * @access public
</span><span class="cx"> *
</span><del>- * @param string|array $query Optional query.
</del><ins>+ * @param string|array $query {
+ * Optional. Array or string of Query parameters.
+ *
+ * @type int $attachment_id Attachment post ID. Used for 'attachment' post_type.
+ * @type int|string $author Author ID, or comma-separated list of IDs.
+ * @type string $author_name User 'user_nicename'.
+ * @type array $author__in An array of author IDs to query from.
+ * @type array $author__not_in An array of author IDs not to query from.
+ * @type bool $cache_results Whether to cache post information. Default true.
+ * @type int|string $cat Category ID or comma-separated list of IDs (this or any children).
+ * @type array $category__and An array of category IDs (AND in).
+ * @type array $category__in An array of category IDs (OR in, no children).
+ * @type array $category__not_in An array of category IDs (NOT in).
+ * @type string $category_name Use category slug (not name, this or any children).
+ * @type int $comments_per_page The number of comments to return per page.
+ * Default 'comments_per_page' option.
+ * @type int|string $comments_popup Whether the query is within the comments popup. Default empty.
+ * @type array $date_query An associative array of WP_Date_Query arguments.
+ * {@see WP_Date_Query::__construct()}
+ * @type int $day Day of the month. Default empty. Accepts numbers 1-31.
+ * @type bool $exact Whether to search by exact keyword. Default false.
+ * @type string|array $fields Which fields to return. Single field or all fields (string),
+ * or array of fields. 'id=>parent' uses 'id' and 'post_parent'.
+ * Default all fields. Accepts 'ids', 'id=>parent'.
+ * @type int $hour Hour of the day. Default empty. Accepts numbers 0-23.
+ * @type bool $ignore_sticky_posts Whether to ignore sticky posts or not. Setting this to false
+ * excludes stickies from 'post__in'. Default 0|false. Accepts
+ * 1|true, 0|false.
+ * @type int $m Combination YearMonth. Default empty. Accepts any four-digit
+ * year and month numbers 1-12.
+ * @type string $meta_compare Comparison operator to test the 'meta_value'.
+ * @type string $meta_key Custom field key.
+ * @type array $meta_query An associative array of WP_Meta_Query arguments.
+ * {@see WP_Meta_Query->queries}
+ * @type string $meta_value Custom field value.
+ * @type int $meta_value_num Custom field value number.
+ * @type int $menu_order The menu order of the posts.
+ * @type int $monthnum The two-digit month. Default empty. Accepts numbers 1-12.
+ * @type string $name Post slug.
+ * @type bool $nopaging Show all posts (true) or paginate (false). Default false.
+ * @type bool $no_found_rows Whether to count the total rows found. Disabling can improve
+ * performance. Default true.
+ * @type int $offset The number of posts to offset before retrieval.
+ * @type string $order Designates ascending or descending order of posts. Default 'DESC'.
+ * Accepts 'ASC', 'DESC'.
+ * @type string $orderby Sort retrieved posts by parameter. One or more options can be
+ * passed. To use 'meta_value', or 'meta_value_num',
+ * 'meta_key=keyname' must be also be defined. Default 'date'.
+ * Accepts 'none', 'name', 'author', 'date', 'title', 'modified',
+ * 'menu_order', 'parent', 'ID', 'rand', 'comment_count'.
+ * @type int $p Post ID.
+ * @type int $page Show the number of posts that would show up on page X of a
+ * static front page.
+ * @type int $paged The number of the current page.
+ * @type int $page_id Page ID.
+ * @type string $pagename Page slug.
+ * @type string $perm Show posts if user has the appropriate capability.
+ * @type array $post__in An array of post IDs to retrieve, sticky posts will be included
+ * @type string $post_mime_type The mime type of the post. Used for 'attachment' post_type.
+ * @type array $post__not_in An array of post IDs not to retrieve. Note: a string of comma-
+ * @type int $post_parent Page ID to retrieve child pages for. Use 0 to only retrieve
+ * top-level pages.
+ * @type array $post_parent__in An array containing parent page IDs to query child pages from.
+ * @type array $post_parent__not_in An array containing parent page IDs not to query child pages from.
+ * separated IDs will NOT work.
+ * @type string|array $post_type A post type slug (string) or array of post type slugs.
+ * Default 'any' if using 'tax_query'.
+ * @type string|array $post_status A post status (string) or array of post statuses.
+ * @type int $posts_per_page The number of posts to query for. Use -1 to request all posts.
+ * @type int $posts_per_archive_page The number of posts to query for by archive page. Overrides
+ * 'posts_per_page' when is_archive(), or is_search() are true.
+ * @type string $s Search keyword.
+ * @type int $second Second of the minute. Default empty. Accepts numbers 0-60.
+ * @type array $search_terms Array of search terms.
+ * @type bool $sentence Whether to search by phrase. Default false.
+ * @type bool $suppress_filters Whether to suppress filters. Default false.
+ * @type string $tag Tag slug. Comma-separated (either), Plus-separated (all).
+ * @type array $tag__and An array of tag ids (AND in).
+ * @type array $tag__in An array of tag ids (OR in).
+ * @type array $tag__not_in An array of tag ids (NOT in).
+ * @type int $tag_id Tag id or comma-separated list of IDs.
+ * @type array $tag_slug__and An array of tag slugs (AND in).
+ * @type array $tag_slug__in An array of tag slugs (OR in). unless 'ignore_sticky_posts' is
+ * true. Note: a string of comma-separated IDs will NOT work.
+ * @type array $tax_query An associative array of WP_Tax_Query arguments.
+ * {@see WP_Tax_Query->queries}
+ * @type bool $update_post_meta_cache Whether to update the post meta cache. Default true.
+ * @type bool $update_post_term_cache Whether to update the post term cache. Default true.
+ * @type int $w The week number of the year. Default empty. Accepts numbers 0-53.
+ * @type int $year The four-digit year. Default empty. Accepts any four-digit year.
+ * }
</ins><span class="cx"> */
</span><span class="cx"> public function parse_query( $query = '' ) {
</span><span class="cx"> if ( ! empty( $query ) ) {
</span></span></pre>
</div>
</div>
</body>
</html>