diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 9ac28066e9..1df023de77 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) { ?>@@ -369,6 +434,13 @@ function post_password_meta_box($post) { } add_meta_box('passworddiv', __('Privacy Options'), 'post_password_meta_box', 'post', 'normal', 'core'); +/** + * Display post slug form fields. + * + * @since 2.6.0 + * + * @param object $post + */ function post_slug_meta_box($post) { ?> @@ -381,6 +453,13 @@ $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) $authors[] = $post->post_author; if ( $authors && count( $authors ) > 1 ) : +/** + * Display form field with list of authors. + * + * @since 2.6.0 + * + * @param object $post + */ function post_author_meta_box($post) { global $current_user, $user_ID; $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM @@ -394,6 +473,13 @@ add_meta_box('authordiv', __('Post Author'), 'post_author_meta_box', 'post', 'no endif; if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : +/** + * Display list of post revisions. + * + * @since 2.6.0 + * + * @param object $post + */ function post_revisions_meta_box($post) { wp_list_post_revisions(); } diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 28753234ee..8024c41870 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -25,7 +25,16 @@ $form_extra = "' />\n