Ticket #34352: 34352.diff
File 34352.diff, 1.9 KB (added by , 9 years ago) |
---|
-
src/wp-includes/general-template.php
293 293 } 294 294 295 295 /** 296 * Returns the Log Out URL.296 * Returns the HTML encoded Log Out URL. 297 297 * 298 298 * Returns the URL that allows the user to log out of the site. 299 299 * … … 300 300 * @since 2.7.0 301 301 * 302 302 * @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. 304 304 */ 305 305 function wp_logout_url($redirect = '') { 306 306 $args = array( 'action' => 'logout' ); … … 316 316 * 317 317 * @since 2.8.0 318 318 * 319 * @param string $logout_url The Log Out URL.319 * @param string $logout_url The HTML encoded Log Out URL. 320 320 * @param string $redirect Path to redirect to on logout. 321 321 */ 322 322 return apply_filters( 'logout_url', $logout_url, $redirect ); … … 323 323 } 324 324 325 325 /** 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. 327 327 * 328 328 * @since 2.7.0 329 329 * 330 330 * @param string $redirect Path to redirect to on login. 331 331 * @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. 333 333 */ 334 334 function wp_login_url($redirect = '', $force_reauth = false) { 335 335 $login_url = site_url('wp-login.php', 'login'); … … 346 346 * @since 2.8.0 347 347 * @since 4.2.0 The `$force_reauth` parameter was added. 348 348 * 349 * @param string $login_url The login URL.349 * @param string $login_url The non-HTML encoded login URL. 350 350 * @param string $redirect The path to redirect to on login, if supplied. 351 351 * @param bool $force_reauth Whether to force reauthorization, even if a cookie is present. 352 352 */