mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Docs: Add more complete information to DocBlocks for private core functions _wp_dashboard_control_callback()
and _wp_dashboard_recent_comments_row()
.
See #32246. Built from https://develop.svn.wordpress.org/trunk@36474 git-svn-id: http://core.svn.wordpress.org/trunk@36441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6995ec613e
commit
26bf8cda9b
@ -169,9 +169,13 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Outputs controls for the current dashboard widget.
|
||||||
*
|
*
|
||||||
* @param type $dashboard
|
* @access private
|
||||||
* @param type $meta_box
|
* @since 2.7.0
|
||||||
|
*
|
||||||
|
* @param mixed $dashboard
|
||||||
|
* @param array $meta_box
|
||||||
*/
|
*/
|
||||||
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
|
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
|
||||||
echo '<form method="post" class="dashboard-widget-control-form">';
|
echo '<form method="post" class="dashboard-widget-control-form">';
|
||||||
@ -566,10 +570,15 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Outputs a row for the Recent Comments widget.
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @since 2.7.0
|
||||||
|
*
|
||||||
* @global WP_Comment $comment
|
* @global WP_Comment $comment
|
||||||
*
|
*
|
||||||
* @param WP_Comment $comment
|
* @param WP_Comment $comment The current comment.
|
||||||
* @param bool $show_date
|
* @param bool $show_date Optional. Whether to display the date.
|
||||||
*/
|
*/
|
||||||
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
||||||
$GLOBALS['comment'] = clone $comment;
|
$GLOBALS['comment'] = clone $comment;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36473';
|
$wp_version = '4.5-alpha-36474';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user