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
This commit is contained in:
Gary Pendergast 2019-01-16 05:28:56 +00:00
parent e79bddcb02
commit e23ffe3145
3 changed files with 4 additions and 16 deletions

View File

@ -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() ) { if ( is_wp_error( $user_details['errors'] ) && $user_details['errors']->has_errors() ) {
$add_user_errors = $user_details['errors']; $add_user_errors = $user_details['errors'];
} else { } else {
/** /** This filter is documented in wp-includes/user.php */
* 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.
*/
$new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); $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' ) ) { if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) {
add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email

View File

@ -266,11 +266,11 @@ function wp_list_bookmarks( $args = '' ) {
$r['category_before'] $r['category_before']
); );
/** /**
* Filters the bookmarks category name. * Filters the category name.
* *
* @since 2.2.0 * @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 ); $catname = apply_filters( 'link_category', $cat->name );

View File

@ -63,13 +63,7 @@ if ( empty( $link_cat ) ) {
} }
foreach ( (array) $cats as $cat ) : foreach ( (array) $cats as $cat ) :
/** /** This filter is documented in wp-includes/bookmark-template.php */
* Filters the OPML outline link category name.
*
* @since 2.2.0
*
* @param string $catname The OPML outline category name.
*/
$catname = apply_filters( 'link_category', $cat->name ); $catname = apply_filters( 'link_category', $cat->name );
?> ?>