diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
index 9cae9b930d..c37b71b75d 100644
|
a
|
b
|
function get_search_form( $args = array() ) {
|
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | if ( $args['echo'] ) { |
| 358 | | echo $result; |
| | 358 | echo esc_html( $result ); |
| 359 | 359 | } else { |
| 360 | | return $result; |
| | 360 | return esc_html( $result ); |
| 361 | 361 | } |
| 362 | 362 | } |
| 363 | 363 | |
| … |
… |
function wp_login_form( $args = array() ) {
|
| 512 | 512 | $defaults = array( |
| 513 | 513 | 'echo' => true, |
| 514 | 514 | // Default 'redirect' value takes the user back to the request URI. |
| 515 | | 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], |
| | 515 | 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . sanitize_text_field( $_SERVER['HTTP_HOST'] ) . sanitize_text_field( $_SERVER['REQUEST_URI'] ), |
| 516 | 516 | 'form_id' => 'loginform', |
| 517 | 517 | 'label_username' => __( 'Username or Email Address' ), |
| 518 | 518 | 'label_password' => __( 'Password' ), |
| … |
… |
function wp_register( $before = '<li>', $after = '</li>', $echo = true ) {
|
| 705 | 705 | $link = apply_filters( 'register', $link ); |
| 706 | 706 | |
| 707 | 707 | if ( $echo ) { |
| 708 | | echo $link; |
| | 708 | echo esc_html( $link ); |
| 709 | 709 | } else { |
| 710 | | return $link; |
| | 710 | return esc_html( $link ); |
| 711 | 711 | } |
| 712 | 712 | } |
| 713 | 713 | |