WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/25/2014 06:23:31 AM (6 years ago)
Author:
DrewAPicture
Message:

Ensure the register filter hook is only documented once.

See #26869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r28131 r28208  
    545545    }
    546546
     547    /**
     548     * Filter the HTML link to the Registration or Admin page.
     549     *
     550     * Users are sent to the admin page if logged-in, or the registration page
     551     * if enabled and logged-out.
     552     *
     553     * @since 1.5.0
     554     *
     555     * @param string $link The HTML code for the link to the Registration or Admin page.
     556     */
     557    $link = apply_filters( 'register', $link );
     558
    547559    if ( $echo ) {
    548         /**
    549          * Filter the HTML link to the Registration or Admin page.
    550          *
    551          * Users are sent to the admin page if logged-in, or the registration page
    552          * if enabled and logged-out.
    553          *
    554          * @since 1.5.0
    555          *
    556          * @param string $link The HTML code for the link to the Registration or Admin page.
    557          */
    558         echo apply_filters( 'register', $link );
     560        echo $link;
    559561    } else {
    560         /** This filter is documented in wp-includes/general-template.php */
    561         return apply_filters( 'register', $link );
     562        return $link;
    562563    }
    563564}
Note: See TracChangeset for help on using the changeset viewer.