Make WordPress Core

Ticket #38283: 38283.patch

File 38283.patch, 5.5 KB (added by milana_cap, 8 years ago)

Far from finished but it's a start.

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

     
    647647         * @param string|array $query {
    648648         *     Optional. Array or string of Query parameters.
    649649         *
     650         *     @type string       $attachment
    650651         *     @type int          $attachment_id           Attachment post ID. Used for 'attachment' post_type.
    651652         *     @type int|string   $author                  Author ID, or comma-separated list of IDs.
    652653         *     @type string       $author_name             User 'user_nicename'.
     
    669670         *                                                 See WP_Date_Query::__construct().
    670671         *     @type int          $day                     Day of the month. Default empty. Accepts numbers 1-31.
    671672         *     @type bool         $exact                   Whether to search by exact keyword. Default false.
     673         *     @type string       $embed
     674         *     @type string       $error
     675         *     @type string       $feed
    672676         *     @type string|array $fields                  Which fields to return. Single field or all fields (string),
    673677         *                                                 or array of fields. 'id=>parent' uses 'id' and 'post_parent'.
    674678         *                                                 Default all fields. Accepts 'ids', 'id=>parent'.
     
    684688         *     @type string       $meta_value              Custom field value.
    685689         *     @type int          $meta_value_num          Custom field value number.
    686690         *     @type int          $menu_order              The menu order of the posts.
     691         *     @type int          $minute                  Minute of the hour. Default empty. Accepts numbers 0-60.
    687692         *     @type int          $monthnum                The two-digit month. Default empty. Accepts numbers 1-12.
    688693         *     @type string       $name                    Post slug.
    689694         *     @type bool         $nopaging                Show all posts (true) or paginate (false). Default false.
     
    690695         *     @type bool         $no_found_rows           Whether to skip counting the total rows found. Enabling can improve
    691696         *                                                 performance. Default false.
    692697         *     @type int          $offset                  The number of posts to offset before retrieval.
     698         *     @type string       $operator                Operator to test. Possible values are 'IN', 'NOT IN', 'AND',
     699         *                                                 'EXISTS' and 'NOT EXISTS'. Default value is 'IN'.
    693700         *     @type string       $order                   Designates ascending or descending order of posts. Default 'DESC'.
    694701         *                                                 Accepts 'ASC', 'DESC'.
    695702         *     @type string|array $orderby                 Sort retrieved posts by parameter. One or more options may be
     
    727734         *     @type int          $posts_per_archive_page  The number of posts to query for by archive page. Overrides
    728735         *                                                 'posts_per_page' when is_archive(), or is_search() are true.
    729736         *     @type array        $post_name__in           An array of post slugs that results must match.
     737         *     @type string       $preview
     738         *     @type              $robots
    730739         *     @type string       $s                       Search keyword(s). Prepending a term with a hyphen will
    731740         *                                                 exclude posts matching that term. Eg, 'pillow -sofa' will
    732741         *                                                 return posts containing 'pillow' but not 'sofa'. The
     
    734743         *                                                 the 'wp_query_search_exclusion_prefix' filter.
    735744         *     @type int          $second                  Second of the minute. Default empty. Accepts numbers 0-60.
    736745         *     @type bool         $sentence                Whether to search by phrase. Default false.
     746         *     @type string       $static
    737747         *     @type bool         $suppress_filters        Whether to suppress filters. Default false.
    738748         *     @type string       $tag                     Tag slug. Comma-separated (either), Plus-separated (all).
    739749         *     @type array        $tag__and                An array of tag ids (AND in).
     
    745755         *                                                 true. Note: a string of comma-separated IDs will NOT work.
    746756         *     @type array        $tax_query               An associative array of WP_Tax_Query arguments.
    747757         *                                                 See WP_Tax_Query->queries.
     758         *     @type string       $taxonomy                Taxonomy.
     759         *     @type string       $tb
     760         *     @type string       $term                    Term.
     761         *     @type int          $term_id                 Term ID.
    748762         *     @type string       $title                   Post title.
    749763         *     @type bool         $update_post_meta_cache  Whether to update the post meta cache. Default true.
    750764         *     @type bool         $update_post_term_cache  Whether to update the post term cache. Default true.
     
    753767         *                                                 get_term_meta() call will hit the database.
    754768         *                                                 Defaults to the value of `$update_post_term_cache`.
    755769         *     @type int          $w                       The week number of the year. Default empty. Accepts numbers 0-53.
     770         *     @type bool         $withcomments
     771         *     @type bool         $withoutcomments
    756772         *     @type int          $year                    The four-digit year. Default empty. Accepts any four-digit year.
    757773         * }
    758774         */