From 9ce46d39372ddbf23ecb522d96cbb688abd4a7e4 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 10 Oct 2008 18:21:16 +0000 Subject: [PATCH] phpdoc for wp-admin. Props jacobsantos. see #7527 git-svn-id: http://svn.automattic.com/wordpress/trunk@9119 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 86 +++++++++++++++++ wp-admin/edit-form-comment.php | 11 ++- wp-admin/edit-link-form.php | 48 +++++++++- wp-admin/edit-page-form.php | 72 +++++++++++++- wp-admin/includes/comment.php | 2 +- wp-admin/includes/image.php | 53 ++++++----- wp-admin/includes/import.php | 34 +++---- wp-admin/includes/plugin-install.php | 134 ++++++++++++++++++++++++--- wp-admin/includes/post.php | 2 +- wp-admin/includes/schema.php | 13 ++- wp-admin/includes/update.php | 6 ++ wp-admin/menu-header.php | 10 ++ wp-admin/plugins.php | 6 ++ wp-admin/press-this.php | 16 +++- wp-admin/setup-config.php | 4 +- wp-admin/themes.php | 10 ++ wp-admin/user-edit.php | 11 ++- 17 files changed, 445 insertions(+), 73 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 9ac28066e..1df023de7 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -55,6 +55,14 @@ if ( 0 == $post_ID ) { } // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). + +/** + * Display post submit form fields. + * + * @since 2.7.0 + * + * @param object $post + */ function post_submit_meta_box($post) { global $action; @@ -186,6 +194,13 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post-> } add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', 'post', 'side', 'core'); +/** + * Display post tags form fields. + * + * @since 2.6.0 + * + * @param object $post + */ function post_tags_meta_box($post) { ?>

@@ -195,6 +210,14 @@ function post_tags_meta_box($post) { } add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'side', 'core'); +/** + * Display add post media and current post media form fields and images. + * + * @todo Complete. + * @since 2.7.0 + * + * @param object $post + */ function post_media_meta_box($post) { echo "

This feature isn't fully functional in this prototype.

"; @@ -231,6 +254,13 @@ function post_media_meta_box($post) { } add_meta_box( 'mediadiv', __('Media' ), 'post_media_meta_box', 'post', 'side', 'core' ); +/** + * Display post categories form fields. + * + * @since 2.6.0 + * + * @param object $post + */ function post_categories_meta_box($post) { ?>