WordPress.org

Make WordPress Core

Ticket #14783: 14783.more-params.diff

File 14783.more-params.diff, 10.3 KB (added by duck_, 10 years ago)
  • wp-includes/post-template.php

     
    675675 * @since 3.1.0
    676676 * @access private
    677677 *
    678  * @param $i Page number.
     678 * @param int $i Page number.
    679679 * @return string Link.
    680680 */
    681681function _wp_link_page( $i ) {
  • wp-includes/post.php

     
    50425042 *
    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 */
    50485049function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) {
  • wp-includes/functions.php

     
    43604360 * @access private
    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
    43674367 */
     
    43844384 * @access private
    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
    43904390 * @param bool $_return_loop Return loop members or just detect presence of loop?
  • wp-includes/class.wp-dependencies.php

     
    3737         *
    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 );
    4747
     
    7272         *
    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 ) {
    8080                if ( !$handles = (array) $handles )
     
    125125         *
    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         */
    134134        function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
     
    143143         *
    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         */
    151151        function add_data( $handle, $data_name, $data ) {
  • wp-includes/class.wp-scripts.php

     
    3939         *
    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         */
    4646        function print_scripts( $handles = false, $group = false ) {
     
    135135         *
    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         */
    143143        function localize( $handle, $object_name, $l10n ) {
  • wp-includes/ms-blogs.php

     
    664664 *
    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.
    670670 * @return array The list of blogs
    671671 */
    672672function get_last_updated( $deprecated = '', $start = 0, $quantity = 40 ) {
    673673        global $wpdb;
     674       
     675        if ( ! empty($deprecated) )
     676                _deprecated_argument( __FUNCTION__, '0.0' ); // 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}
    676680
  • wp-includes/cache.php

     
    171171 * this function instructs the backend to reset those keys and perform any cleanup since blog or site IDs have changed since cache init.
    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() {
    178176        global $wp_object_cache;
  • wp-includes/formatting.php

     
    15771577 *
    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 ) {
    15831583        return chr( hexdec( strtolower( $match[1] ) ) );
  • wp-includes/category-template.php

     
    11741174 *
    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 */
    11801180function has_term( $term = '', $taxonomy = '', $post = null ) {
  • wp-admin/includes/plugin-install.php

     
    157157 * Display plugin content based on plugin list.
    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() {
    165162        global $wp_list_table;
  • wp-admin/includes/class-wp-list-table.php

     
    738738         * @since 3.1.0
    739739         * @access protected
    740740         *
    741          * @param $object $item The current item
     741         * @param object $item The current item
    742742         */
    743743        function single_row( $item ) {
    744744                static $row_class = '';
     
    755755         * @since 3.1.0
    756756         * @access protected
    757757         *
    758          * @param $object $item The current item
     758         * @param object $item The current item
    759759         */
    760760        function single_row_columns( $item ) {
    761761                list( $columns, $hidden ) = $this->get_column_info();