From 7082b703b2212708a044436dbccda8ba0dd21658 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 6 Dec 2014 21:31:41 +0000 Subject: [PATCH] Improve various hook and filter docs so they are correctly parsed for the code reference. Fixes #30558 Props DrewAPicture git-svn-id: https://develop.svn.wordpress.org/trunk@30754 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin-header.php | 13 +++-- src/wp-admin/edit-form-advanced.php | 3 +- .../includes/class-wp-links-list-table.php | 20 ++++---- .../includes/class-wp-media-list-table.php | 28 +++++------ src/wp-admin/includes/export.php | 6 ++- src/wp-admin/includes/template.php | 27 ++++++---- src/wp-admin/user-edit.php | 44 ++++++++-------- src/wp-admin/user-new.php | 22 ++++---- src/wp-includes/feed-rdf.php | 12 +++-- src/wp-includes/feed-rss2-comments.php | 12 +++-- src/wp-includes/feed-rss2.php | 50 ++++++++++--------- .../theme-compat/comments-popup.php | 5 +- src/wp-includes/theme-compat/comments.php | 5 +- 13 files changed, 139 insertions(+), 108 deletions(-) diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php index 1104029b2f..664b32c7a4 100644 --- a/src/wp-admin/admin-header.php +++ b/src/wp-admin/admin-header.php @@ -164,16 +164,19 @@ $admin_body_class .= ' no-customize-support no-svg'; /** * Filter the CSS classes for the body tag in the admin. * - * This filter differs from the post_class or body_class filters in two important ways: - * 1. $classes is a space-separated string of class names instead of an array. - * 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, and no-js cannot be removed. + * This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters + * in two important ways: + * 1. `$classes` is a space-separated string of class names instead of an array. + * 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, + * and no-js cannot be removed. * * @since 2.3.0 * - * @param string $classes Space-separated string of CSS classes. + * @param string $classes Space-separated list of CSS classes. */ +$admin_body_classes = apply_filters( 'admin_body_class', '' ); ?> -"> + diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index 217eb43356..5acdb87b54 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/wp-admin/edit-form-advanced.php @@ -464,8 +464,9 @@ do_action( 'edit_form_top', $post ); ?> * @param string $text Placeholder text. Default 'Enter title here'. * @param WP_Post $post Post object. */ + $title_placeholder = apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?> - + > - >link_id ); ?> + >link_id ); + ?> $column_display_name ) { break; } ?> - > - - ID ); ?> - + >ID ); + ?> ID ) ? 1 : 0; ?> - - <?php echo apply_filters( 'the_title_rss', $post->post_title ); ?> + <?php + /** This filter is documented in wp-includes/feed.php */ + echo apply_filters( 'the_title_rss', $post->post_title ); + ?> diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index b407c5bc40..db50c89f7b 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1585,8 +1585,11 @@ if ( is_rtl() ) ?> - - class="wp-admin wp-core-ui no-js iframe "> + + class="wp-admin wp-core-ui no-js iframe ">