Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33843 closed defect (bug) (fixed)

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

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

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 11 years ago.

Download all attachments as: .zip

Change History (6)

#1 @jfarthing84
11 years ago

  • Component GeneralThemes
  • Keywords dev-feedback added

#2 follow-up: @SergeyBiryukov
11 years ago

  • Component ThemesLogin and Registration
  • Focuses multisite added
  • Milestone Awaiting Review4.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
11 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
11 years ago

#4 @jfarthing84
11 years ago

  • Keywords has-patch added; dev-feedback removed

#5 @wonderboymusic
11 years ago

  • Owner set to wonderboymusic
  • Resolutionfixed
  • Status newclosed

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.