From bdd00b3902d44595c46cff161a82d3324918cc4f Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 6 Dec 2014 21:32:24 +0000 Subject: [PATCH] Improve various hook and filter docs so they are correctly parsed for the code reference. Fixes #30558 Props DrewAPicture Built from https://develop.svn.wordpress.org/trunk@30754 git-svn-id: http://core.svn.wordpress.org/trunk@30744 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 13 +++-- wp-admin/edit-form-advanced.php | 3 +- .../includes/class-wp-links-list-table.php | 20 ++++---- .../includes/class-wp-media-list-table.php | 28 +++++------ wp-admin/includes/export.php | 6 ++- wp-admin/includes/template.php | 27 ++++++---- wp-admin/user-edit.php | 44 ++++++++-------- wp-admin/user-new.php | 22 ++++---- wp-includes/feed-rdf.php | 12 +++-- wp-includes/feed-rss2-comments.php | 12 +++-- wp-includes/feed-rss2.php | 50 ++++++++++--------- wp-includes/theme-compat/comments-popup.php | 5 +- wp-includes/theme-compat/comments.php | 5 +- wp-includes/version.php | 2 +- 14 files changed, 140 insertions(+), 109 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 1104029b2f..664b32c7a4 100644 --- a/wp-admin/admin-header.php +++ b/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/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 217eb43356..5acdb87b54 100644 --- a/wp-admin/edit-form-advanced.php +++ b/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/wp-admin/includes/template.php b/wp-admin/includes/template.php index b407c5bc40..db50c89f7b 100644 --- a/wp-admin/includes/template.php +++ b/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 ">