Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#33843 closed defect (bug) (fixed)

Invalid HTML on wp-signup.php or wp-activate.php with default themes

Reported by: jfarthing84's profile jfarthing84 Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.3
Component: Login and Registration Keywords: has-patch
Focuses: multisite Cc:

Description

I don't know if this was indeed invalid 5 years ago as described in #13832, but it's not anymore. You most certainly do get two div tags with an id of "content" when using Twenty Fifteen or Twenty Sixteen while viewing either wp-signup.php or wp-activate.php.

Attachments (1)

33843.patch (748 bytes) - added by jfarthing84 9 years ago.

Download all attachments as: .zip

Change History (6)

#1 @jfarthing84
9 years ago

  • Component changed from General to Themes
  • Keywords dev-feedback added

#2 follow-up: @SergeyBiryukov
9 years ago

  • Component changed from Themes to Login and Registration
  • Focuses multisite added
  • Milestone changed from Awaiting Review to 4.4

Confirmed. This wasn't an issue with previous themes, as they only had id="content" in content templates, but Twenty Fifteen and Sixteen have it in header.php, which results in this markup:

<div id="content" class="site-content">
<div id="content" class="widecolumn">

Changing Twenty Fifteen is no longer feasible, as that could break child themes. I guess we should change the ID in wp-signup.php and wp-activate.php to something unique to those files.

#3 in reply to: ↑ 2 @jeremyfelt
9 years ago

Replying to SergeyBiryukov:

I guess we should change the ID in wp-signup.php and wp-activate.php to something unique to those files.

This seems like the route to go.

If anybody is relying on existing behavior for custom signup styling or JS, we could be introducing a breaking change. Though I think the audience actually designing themes for integrated use with these is pretty small. And those specifically using #content to create a custom experience even smaller. :)

We could probably change now and make sure to note it on Make/Core and with the theme team.

@jfarthing84
9 years ago

#4 @jfarthing84
9 years ago

  • Keywords has-patch added; dev-feedback removed

#5 @wonderboymusic
9 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 34162:

TwentyFifteen|Sixteen themes have a <div id="content"> in the header. Change the <div> IDs in wp-activate.php and wp-signup.php to be unique to each page.

Props jfarthing84.
Fixes #33843.

Note: See TracTickets for help on using tickets.