Make WordPress Core

Ticket #54279: 54279.diff

File 54279.diff, 865 bytes (added by sabbirshouvo, 3 years ago)
  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 41b0a174c0..206aea6697 100644
    a b function wp_login_form( $args = array() ) { 
    577577        $login_form_bottom = apply_filters( 'login_form_bottom', '', $args );
    578578
    579579        $form = '
    580                 <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . esc_url( site_url( 'wp-login.php', 'login_post' ) ) . '" method="post">
     580                <form name="' . esc_attr( $args['form_id'] ) . '" id="' . esc_attr( $args['form_id'] ) . '" action="' . esc_url( site_url( 'wp-login.php', 'login_post' ) ) . '" method="post">
    581581                        ' . $login_form_top . '
    582582                        <p class="login-username">
    583583                                <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label>