Make WordPress Core

Changeset 31212


Ignore:
Timestamp:
01/16/2015 07:02:26 PM (10 years ago)
Author:
wonderboymusic
Message:

@param cleanup:

  • get_metadata() will return literally anything, needs to be mixed
  • wp() and WP_Query::__construct() no longer just take a query string
  • Clarify a few others

See #30799.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-base.php

    r31208 r31212  
    169169     *
    170170     * @param string $folder the folder to locate.
    171      * @return string The location of the remote path.
     171     * @return string|false The location of the remote path, false on failure.
    172172     */
    173173    public function find_folder( $folder ) {
     
    237237     * @param string $base   The folder to start searching from.
    238238     * @param bool   $loop   If the function has recursed, Internal use only.
    239      * @return string The location of the remote path.
     239     * @return string|false The location of the remote path, false to cease looping.
    240240     */
    241241    public function search_for_folder( $folder, $base = '.', $loop = false ) {
  • trunk/src/wp-admin/includes/file.php

    r31090 r31212  
    192192 * @see wp_handle_upload_error
    193193 *
    194  * @param array  $file      Reference to a single element of $_FILES. Call the function once for
    195  *                          each uploaded file.
    196  * @param array  $overrides An associative array of names => values to override default variables.
    197  * @param string $time      Time formatted in 'yyyy/mm'.
    198  * @param string $action    Expected value for $_POST['action'].
     194 * @param array       $file      Reference to a single element of $_FILES. Call the function once for each uploaded file.
     195 * @param array|false $overrides An associative array of names => values to override default variables. Default false.
     196 * @param string      $time      Time formatted in 'yyyy/mm'.
     197 * @param string      $action    Expected value for $_POST['action'].
    199198 * @return array On success, returns an associative array of file attributes. On failure, returns
    200199 *               $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ).
  • trunk/src/wp-includes/deprecated.php

    r31188 r31212  
    21622162 * @param callback $output_callback Run when widget is called.
    21632163 * @param string $classname Classname widget option.
    2164  * @param mixed $params,... Widget parameters.
     2164 * @param mixed $params ,... Widget parameters.
    21652165 */
    21662166function register_sidebar_widget($name, $output_callback, $classname = '') {
  • trunk/src/wp-includes/functions.php

    r31170 r31212  
    870870 * @since 2.0.0
    871871 *
    872  * @param string $query_vars Default WP_Query arguments.
     872 * @param string|array $query_vars Default WP_Query arguments.
    873873 */
    874874function wp( $query_vars = '' ) {
  • trunk/src/wp-includes/meta.php

    r31090 r31212  
    450450 * @param bool $single Optional, default is false. If true, return only the first value of the
    451451 *      specified meta_key. This parameter has no effect if meta_key is not specified.
    452  * @return string|array Single metadata value, or array of values
     452 * @return mixed Single metadata value, or array of values
    453453 */
    454454function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) {
  • trunk/src/wp-includes/query.php

    r31151 r31212  
    39433943     * @access public
    39443944     *
    3945      * @param string $query URL query string.
     3945     * @param string|array $query URL query string or array of vars.
    39463946     */
    39473947    public function __construct($query = '') {
Note: See TracChangeset for help on using the changeset viewer.