Docs: Improve documentation for some more variadic functions.

Fixes #37402

Built from https://develop.svn.wordpress.org/trunk@45450


git-svn-id: http://core.svn.wordpress.org/trunk@45261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2019-05-26 22:48:51 +00:00
parent 557ef04409
commit 6aab3f2f05
3 changed files with 9 additions and 7 deletions

View File

@ -988,9 +988,10 @@ function wp_dashboard_rss_output( $widget_id ) {
* *
* @since 2.5.0 * @since 2.5.0
* *
* @param string $widget_id * @param string $widget_id The widget ID.
* @param callable $callback * @param callable $callback The callback funtion used to display each feed.
* @param array $check_urls RSS feeds * @param array $check_urls RSS feeds
* @param mixed ...$args Optional additional parameters to pass to the callback function when it's called.
* @return bool False on failure. True on success. * @return bool False on failure. True on success.
*/ */
function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) { function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) {

View File

@ -476,15 +476,16 @@ function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data
} }
/** /**
* Adds the iframe to display content for the media upload page * Outputs the iframe to display the media upload page.
* *
* @since 2.5.0 * @since 2.5.0
* *
* @global int $body_id * @global int $body_id
* *
* @param string|callable $content_func * @param callable $content_func Function that outputs the content.
* @param mixed ...$args Optional additional parameters to pass to the callback function when it's called.
*/ */
function wp_iframe( $content_func /* ... */ ) { function wp_iframe( $content_func ) {
_wp_admin_html_begin(); _wp_admin_html_begin();
?> ?>
<title><?php bloginfo( 'name' ); ?> &rsaquo; <?php _e( 'Uploads' ); ?> &#8212; <?php _e( 'WordPress' ); ?></title> <title><?php bloginfo( 'name' ); ?> &rsaquo; <?php _e( 'Uploads' ); ?> &#8212; <?php _e( 'WordPress' ); ?></title>

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45449'; $wp_version = '5.3-alpha-45450';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.