diff --git wp-includes/general-template.php wp-includes/general-template.php
index 939e9de..1a97424 100644
|
|
|
function wp_login_url($redirect = '', $force_reauth = false) { |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
| | 250 | * Whether the current request is for a login page |
| | 251 | * |
| | 252 | * @since 3.5.0 |
| | 253 | * |
| | 254 | * @return bool |
| | 255 | */ |
| | 256 | function is_login_page() { |
| | 257 | return (bool) did_action( 'login_form_login' ); |
| | 258 | } |
| | 259 | |
| | 260 | /** |
| | 261 | * Whether the current request is for the registration page |
| | 262 | * |
| | 263 | * @since 3.5.0 |
| | 264 | * |
| | 265 | * @return bool |
| | 266 | */ |
| | 267 | function is_register_page() { |
| | 268 | if ( is_multisite() && 'wp-signup.php' == $GLOBALS['pagenow'] ) |
| | 269 | return true; |
| | 270 | |
| | 271 | return (bool) did_action( 'login_form_register' ); |
| | 272 | } |
| | 273 | |
| | 274 | /** |
| 250 | 275 | * Provides a simple login form for use anywhere within WordPress. By default, it echoes |
| 251 | 276 | * the HTML immediately. Pass array('echo'=>false) to return the string instead. |
| 252 | 277 | * |