Make WordPress Core

Ticket #34352: 34352.diff

File 34352.diff, 1.9 KB (added by akibjorklund, 9 years ago)
  • src/wp-includes/general-template.php

     
    293293}
    294294
    295295/**
    296  * Returns the Log Out URL.
     296 * Returns the HTML encoded Log Out URL.
    297297 *
    298298 * Returns the URL that allows the user to log out of the site.
    299299 *
     
    300300 * @since 2.7.0
    301301 *
    302302 * @param string $redirect Path to redirect to on logout.
    303  * @return string A log out URL.
     303 * @return string An HTML encoded log out URL.
    304304 */
    305305function wp_logout_url($redirect = '') {
    306306        $args = array( 'action' => 'logout' );
     
    316316         *
    317317         * @since 2.8.0
    318318         *
    319          * @param string $logout_url The Log Out URL.
     319         * @param string $logout_url The HTML encoded Log Out URL.
    320320         * @param string $redirect   Path to redirect to on logout.
    321321         */
    322322        return apply_filters( 'logout_url', $logout_url, $redirect );
     
    323323}
    324324
    325325/**
    326  * Returns the URL that allows the user to log in to the site.
     326 * Returns the non-HTML encoded URL that allows the user to log in to the site.
    327327 *
    328328 * @since 2.7.0
    329329 *
    330330 * @param string $redirect     Path to redirect to on login.
    331331 * @param bool   $force_reauth Whether to force reauthorization, even if a cookie is present. Default is false.
    332  * @return string A log in URL.
     332 * @return string A log in URL, not HTML encoded.
    333333 */
    334334function wp_login_url($redirect = '', $force_reauth = false) {
    335335        $login_url = site_url('wp-login.php', 'login');
     
    346346         * @since 2.8.0
    347347         * @since 4.2.0 The `$force_reauth` parameter was added.
    348348         *
    349          * @param string $login_url    The login URL.
     349         * @param string $login_url    The non-HTML encoded login URL.
    350350         * @param string $redirect     The path to redirect to on login, if supplied.
    351351         * @param bool   $force_reauth Whether to force reauthorization, even if a cookie is present.
    352352         */