diff --git wp-includes/general-template.php wp-includes/general-template.php
index 23525b5..5990158 100644
|
|
function get_search_form( $echo = true ) { |
271 | 271 | * @param bool $echo Default to echo and not return the link. |
272 | 272 | * @return string|void String when retrieving. |
273 | 273 | */ |
274 | | function wp_loginout($redirect = '', $echo = true) { |
275 | | if ( ! is_user_logged_in() ) |
276 | | $link = '<a href="' . esc_url( wp_login_url($redirect) ) . '">' . __('Log in') . '</a>'; |
277 | | else |
278 | | $link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>'; |
| 274 | function wp_loginout( $redirect = '', $echo = true ) { |
| 275 | if ( ! is_user_logged_in() ) { |
| 276 | /** |
| 277 | * Filter the "Login" text. |
| 278 | * |
| 279 | * @since 4.3.1 |
| 280 | * |
| 281 | * @var string The filtered text shown when logging in. |
| 282 | */ |
| 283 | $login = apply_filters( 'login_text', __( 'Log in' ) ); |
| 284 | $link = '<a href="' . esc_url( wp_login_url( $redirect ) ) . '">' . $login . '</a>'; |
| 285 | } else { |
| 286 | /** |
| 287 | * Filter the "Logout" text. |
| 288 | * |
| 289 | * @since 4.3.1 |
| 290 | * |
| 291 | * @var string The filtered text shown when logging out. |
| 292 | */ |
| 293 | $logout = apply_filters( 'logout_text', __( 'Log out' ) ); |
| 294 | $link = '<a href="' . esc_url( wp_logout_url( $redirect ) ) . '">' . $logout . '</a>'; |
| 295 | } |
279 | 296 | |
280 | 297 | if ( $echo ) { |
281 | 298 | /** |