Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#47330 closed defect (bug) (wontfix)

wp-login.php login_header Title tag missing

Reported by: ravipatel's profile ravipatel Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2
Component: Login and Registration Keywords: has-patch needs-testing
Focuses: accessibility Cc:

Description

do_action( 'login_header' );
?>
    <div id="login">
            <h1><a href="<?php echo esc_url($login_header_url); ?>"><?php echo $login_header_text; ?></a></h1>
	

Change Code With

do_action( 'login_header' );
	?>
    <div id="login">
        <h1><a href="<?php echo esc_url($login_header_url); ?>" title="<?php echo $login_header_text; ?>"><?php echo $login_header_text; ?></a></h1>
	

Attachments (2)

47330.patch (600 bytes) - added by ravipatel 6 years ago.
Patch file for code
47330.2.patch (612 bytes) - added by ravipatel 6 years ago.
latest code with esc_attr

Download all attachments as: .zip

Change History (8)

#1 @davidbaumwald
6 years ago

  • Focuses accessibility added
  • Keywords needs-refresh added

@ravipatel Great job so far. I think the title should incorporate esc_attr as well.

@ravipatel
6 years ago

Patch file for code

#2 @ravipatel
6 years ago

@davidbaumwald I have updated code with patch please proceed for this, Please guide me if need any process for this. I have updated with esc_attr()

Last edited 6 years ago by ravipatel (previous) (diff)

@ravipatel
6 years ago

latest code with esc_attr

#3 @davidbaumwald
6 years ago

  • Keywords needs-refresh removed

Looks like this was discussed and removed in #42537.

#4 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Hi @ravipatel, thanks for the patch!

The title attribute was intentionally removed from login_header() in [44899] to improve accessibility. See #42537 for more details.

#5 follow-up: @ravipatel
5 years ago

[42537] @SergeyBiryukov ok, I have reviewed these changes. But as per HTML rules, a tag required a title tag.

Last edited 5 years ago by ravipatel (previous) (diff)

#6 in reply to: ↑ 5 @SergeyBiryukov
5 years ago

Replying to ravipatel:

But as per HTML rules, a tag required a title tag.

HTML indeed requires the title tag, but it's not the same as the title attribute (see also the Accessibility concerns section for the latter).

Last edited 5 years ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.