Make WordPress Core

Changeset 16469


Ignore:
Timestamp:
11/18/2010 07:12:48 PM (14 years ago)
Author:
nacin
Message:

More param fixes, props duck_. see #14783.

Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r16465 r16469  
    738738     * @access protected
    739739     *
    740      * @param $object $item The current item
     740     * @param object $item The current item
    741741     */
    742742    function single_row( $item ) {
     
    755755     * @access protected
    756756     *
    757      * @param $object $item The current item
     757     * @param object $item The current item
    758758     */
    759759    function single_row_columns( $item ) {
  • trunk/wp-admin/includes/plugin-install.php

    r16061 r16469  
    158158 *
    159159 * @since 2.7.0
    160  *
    161  * @param array $plugins List of plugins.
    162  * @param int $total_plugins Number of plugins.
    163160 */
    164161function display_plugins_table() {
  • trunk/wp-includes/cache.php

    r16288 r16469  
    172172 *
    173173 * @since 2.6.0
    174  *
    175  * @param string|array $groups A group or an array of groups to add
    176174 */
    177175function wp_cache_reset() {
  • trunk/wp-includes/category-template.php

    r16430 r16469  
    11751175 * @param string|int|array $term Optional. The term name/term_id/slug or array of them to check for.
    11761176 * @param string $taxonomy Taxonomy name
    1177  * @param int|post object Optional. Post to check instead of the current post.
     1177 * @param int|object $post Optional. Post to check instead of the current post.
    11781178 * @return bool True if the current post has any of the given tags (or any tag, if no tag specified).
    11791179 */
  • trunk/wp-includes/class.wp-dependencies.php

    r15639 r16469  
    3838     * Process the items passed to it or the queue.  Processes all dependencies.
    3939     *
    40      * @param mixed handles (optional) items to be processed. (void) processes queue, (string) process that item, (array of strings) process those items
     40     * @param mixed $handles (optional) items to be processed. (void) processes queue, (string) process that item, (array of strings) process those items
    4141     * @return array Items that have been processed
    4242     */
    4343    function do_items( $handles = false, $group = false ) {
    44         // Print the queue if nothing is passed.  If a string is passed, print that script. If an array is passed, print those scripts.
     44        // Print the queue if nothing is passed. If a string is passed, print that script. If an array is passed, print those scripts.
    4545        $handles = false === $handles ? $this->queue : (array) $handles;
    4646        $this->all_deps( $handles );
     
    7373     * Recursively builds array of items to process taking dependencies into account.  Does NOT catch infinite loops.
    7474     *
    75 
    76      * @param mixed handles Accepts (string) dep name or (array of strings) dep names
    77      * @param bool recursion Used internally when function calls itself
     75     *
     76     * @param mixed $handles Accepts (string) dep name or (array of strings) dep names
     77     * @param bool $recursion Used internally when function calls itself
    7878     */
    7979    function all_deps( $handles, $recursion = false, $group = false ) {
     
    126126     * Adds the item only if no item of that name already exists
    127127     *
    128      * @param string handle Script name
    129      * @param string src Script url
    130      * @param array deps (optional) Array of script names on which this script depends
    131      * @param string ver (optional) Script version (used for cache busting)
     128     * @param string $handle Script name
     129     * @param string $src Script url
     130     * @param array $deps (optional) Array of script names on which this script depends
     131     * @param string $ver (optional) Script version (used for cache busting)
    132132     * @return array Hierarchical array of dependencies
    133133     */
     
    144144     * Adds data only if script has already been added
    145145     *
    146      * @param string handle Script name
    147      * @param string data_name Name of object in which to store extra data
    148      * @param array data Array of extra data
     146     * @param string $handle Script name
     147     * @param string $data_name Name of object in which to store extra data
     148     * @param array $data Array of extra data
    149149     * @return bool success
    150150     */
  • trunk/wp-includes/class.wp-scripts.php

    r16438 r16469  
    4040     * Prints the scripts passed to it or the print queue.  Also prints all necessary dependencies.
    4141     *
    42      * @param mixed handles (optional) Scripts to be printed.  (void) prints queue, (string) prints that script, (array of strings) prints those scripts.
    43      * @param int group (optional) If scripts were queued in groups prints this group number.
     42     * @param mixed $handles (optional) Scripts to be printed.  (void) prints queue, (string) prints that script, (array of strings) prints those scripts.
     43     * @param int $group (optional) If scripts were queued in groups prints this group number.
    4444     * @return array Scripts that have been printed
    4545     */
     
    136136     * Localizes only if script has already been added
    137137     *
    138      * @param string handle Script name
    139      * @param string object_name Name of JS object to hold l10n info
    140      * @param array l10n Array of JS var name => localized string
     138     * @param string $handle Script name
     139     * @param string $object_name Name of JS object to hold l10n info
     140     * @param array $l10n Array of JS var name => localized string
    141141     * @return bool Successful localization
    142142     */
  • trunk/wp-includes/formatting.php

    r16438 r16469  
    15781578 * @since 3.1.0
    15791579 * @access private
    1580  * @param $match the preg_replace_callback matches array
     1580 * @param array $match the preg_replace_callback matches array
    15811581 */
    15821582function _wp_iso_convert( $match ) {
  • trunk/wp-includes/functions.php

    r16438 r16469  
    43614361 *
    43624362 * @param callback $callback function that accepts ( ID, $callback_args ) and outputs parent_ID
    4363  * @param $start The ID to start the loop check at
    4364  * @param $start_parent the parent_ID of $start to use instead of calling $callback( $start ). Use null to always use $callback
     4363 * @param int $start The ID to start the loop check at
     4364 * @param int $start_parent the parent_ID of $start to use instead of calling $callback( $start ). Use null to always use $callback
    43654365 * @param array $callback_args optional additional arguments to send to $callback
    43664366 * @return array IDs of all members of loop
     
    43854385 *
    43864386 * @param callback $callback function that accupts ( ID, callback_arg, ... ) and outputs parent_ID
    4387  * @param $start The ID to start the loop check at
     4387 * @param int $start The ID to start the loop check at
    43884388 * @param array $override an array of ( ID => parent_ID, ... ) to use instead of $callback
    43894389 * @param array $callback_args optional additional arguments to send to $callback
  • trunk/wp-includes/ms-blogs.php

    r16359 r16469  
    665665 * @since MU
    666666 *
    667  * @param $deprecated Not used
     667 * @param mixed $deprecated Not used
    668668 * @param int $start The offset
    669669 * @param int $quantity The maximum number of blogs to retrieve. Default is 40.
     
    672672function get_last_updated( $deprecated = '', $start = 0, $quantity = 40 ) {
    673673    global $wpdb;
     674   
     675    if ( ! empty( $deprecated ) )
     676        _deprecated_argument( __FUNCTION__, 'MU' ); // never used
     677   
    674678    return $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit %d, %d", $wpdb->siteid, $start, $quantity ) , ARRAY_A );
    675679}
  • trunk/wp-includes/post-template.php

    r16446 r16469  
    676676 * @access private
    677677 *
    678  * @param $i Page number.
     678 * @param int $i Page number.
    679679 * @return string Link.
    680680 */
  • trunk/wp-includes/post.php

    r16438 r16469  
    50435043 * @since 2.0.0
    50445044 *
    5045  * @param string A post type string, defaults to 'post'.
     5045 * @param string $post_type A post type string, defaults to 'post'.
     5046 * @param bool $create_in_db If true then also insert an auto-draft into database
    50465047 * @return object stdClass object containing all the default post data as attributes
    50475048 */
Note: See TracChangeset for help on using the changeset viewer.