Make WordPress Core

Changeset 45450


Ignore:
Timestamp:
05/26/2019 10:47:23 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Improve documentation for some more variadic functions.

Fixes #37402

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r45438 r45450  
    989989 * @since 2.5.0
    990990 *
    991  * @param string $widget_id
    992  * @param callable $callback
    993  * @param array $check_urls RSS feeds
     991 * @param string   $widget_id  The widget ID.
     992 * @param callable $callback   The callback funtion used to display each feed.
     993 * @param array    $check_urls RSS feeds
     994 * @param mixed    ...$args    Optional additional parameters to pass to the callback function when it's called.
    994995 * @return bool False on failure. True on success.
    995996 */
  • trunk/src/wp-admin/includes/media.php

    r45334 r45450  
    477477
    478478/**
    479  * Adds the iframe to display content for the media upload page
     479 * Outputs the iframe to display the media upload page.
    480480 *
    481481 * @since 2.5.0
     
    483483 * @global int $body_id
    484484 *
    485  * @param string|callable $content_func
    486  */
    487 function wp_iframe( $content_func /* ... */ ) {
     485 * @param callable $content_func Function that outputs the content.
     486 * @param mixed    ...$args      Optional additional parameters to pass to the callback function when it's called.
     487 */
     488function wp_iframe( $content_func ) {
    488489    _wp_admin_html_begin();
    489490    ?>
Note: See TracChangeset for help on using the changeset viewer.