From e23ffe314524577af967e10b3316c13bc63a4e79 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Wed, 16 Jan 2019 05:28:56 +0000 Subject: [PATCH] Docs: Remove duplicate docblocks for the `pre_user_login` and `link_category` filters. Props coffee2code. Fixes #45308. git-svn-id: https://develop.svn.wordpress.org/trunk@44612 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/user-new.php | 8 +------- src/wp-includes/bookmark-template.php | 4 ++-- src/wp-links-opml.php | 8 +------- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/wp-admin/user-new.php b/src/wp-admin/user-new.php index 48387b0373..7937fd8a3b 100644 --- a/src/wp-admin/user-new.php +++ b/src/wp-admin/user-new.php @@ -165,13 +165,7 @@ Please click the following link to confirm the invite: if ( is_wp_error( $user_details['errors'] ) && $user_details['errors']->has_errors() ) { $add_user_errors = $user_details['errors']; } else { - /** - * Filters the user_login, also known as the username, before it is added to the site. - * - * @since 2.0.3 - * - * @param string $user_login The sanitized username. - */ + /** This filter is documented in wp-includes/user.php */ $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) { add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email diff --git a/src/wp-includes/bookmark-template.php b/src/wp-includes/bookmark-template.php index 4b845190ad..78025b4550 100644 --- a/src/wp-includes/bookmark-template.php +++ b/src/wp-includes/bookmark-template.php @@ -266,11 +266,11 @@ function wp_list_bookmarks( $args = '' ) { $r['category_before'] ); /** - * Filters the bookmarks category name. + * Filters the category name. * * @since 2.2.0 * - * @param string $cat_name The category name of bookmarks. + * @param string $cat_name The category name. */ $catname = apply_filters( 'link_category', $cat->name ); diff --git a/src/wp-links-opml.php b/src/wp-links-opml.php index c64a5c036e..e0afb36257 100644 --- a/src/wp-links-opml.php +++ b/src/wp-links-opml.php @@ -63,13 +63,7 @@ if ( empty( $link_cat ) ) { } foreach ( (array) $cats as $cat ) : - /** - * Filters the OPML outline link category name. - * - * @since 2.2.0 - * - * @param string $catname The OPML outline category name. - */ + /** This filter is documented in wp-includes/bookmark-template.php */ $catname = apply_filters( 'link_category', $cat->name ); ?>