Skip to content

Commit 0f98254

Browse files
author
pento
committed
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
1 parent f61ee94 commit 0f98254

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

wp-admin/user-new.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,7 @@
165165
if ( is_wp_error( $user_details['errors'] ) && $user_details['errors']->has_errors() ) {
166166
$add_user_errors = $user_details['errors'];
167167
} else {
168-
/**
169-
* Filters the user_login, also known as the username, before it is added to the site.
170-
*
171-
* @since 2.0.3
172-
*
173-
* @param string $user_login The sanitized username.
174-
*/
168+
/** This filter is documented in wp-includes/user.php */
175169
$new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) );
176170
if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) {
177171
add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email

wp-includes/bookmark-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ function wp_list_bookmarks( $args = '' ) {
266266
$r['category_before']
267267
);
268268
/**
269-
* Filters the bookmarks category name.
269+
* Filters the category name.
270270
*
271271
* @since 2.2.0
272272
*
273-
* @param string $cat_name The category name of bookmarks.
273+
* @param string $cat_name The category name.
274274
*/
275275
$catname = apply_filters( 'link_category', $cat->name );
276276

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @global string $wp_version
1515
*/
16-
$wp_version = '5.1-beta1-44611';
16+
$wp_version = '5.1-beta1-44612';
1717

1818
/**
1919
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

wp-links-opml.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,7 @@
6363
}
6464

6565
foreach ( (array) $cats as $cat ) :
66-
/**
67-
* Filters the OPML outline link category name.
68-
*
69-
* @since 2.2.0
70-
*
71-
* @param string $catname The OPML outline category name.
72-
*/
66+
/** This filter is documented in wp-includes/bookmark-template.php */
7367
$catname = apply_filters( 'link_category', $cat->name );
7468

7569
?>

0 commit comments

Comments
 (0)