Make WordPress Core

Changeset 44612


Ignore:
Timestamp:
01/16/2019 05:28:56 AM (6 years ago)
Author:
pento
Message:

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

Props coffee2code.
Fixes #45308.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r43571 r44612  
    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' ) ) {
  • trunk/src/wp-includes/bookmark-template.php

    r43571 r44612  
    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 );
  • trunk/src/wp-links-opml.php

    r43571 r44612  
    6464
    6565foreach ( (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
Note: See TracChangeset for help on using the changeset viewer.