Docs: Remove duplicate docblocks for the `pre_user_login` and `link_category` filters.

Props coffee2code.
Fixes #45308.


Built from https://develop.svn.wordpress.org/trunk@44612


git-svn-id: http://core.svn.wordpress.org/trunk@44443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-16 05:29:49 +00:00
parent 655d44ffe8
commit 97aef0e336
4 changed files with 5 additions and 17 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() ) {
$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

View File

@ -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 );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta1-44611';
$wp_version = '5.1-beta1-44612';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -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 );
?>