Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#41176 closed defect (bug) (fixed)

PHP DocBlock spilling into HTML/JS

Reported by: chris@… Owned by: SergeyBiryukov
Priority: normal Milestone: 4.9
Component: Login and Registration Version: 4.8
Severity: normal Keywords:
Cc: Focuses:

Description

This is a follow-up to #40301. The original patch's PHP DocBlock commenting is outside of the PHP tags so it is appearing in the HTML source. The specific source section is JS so the browser just ignores it as a JS comment but it should probably be removed.

The attached patch moves the comments back into PHP.

Attachments (1)

wp-login.diff (619 bytes ) - added by chris@… 9 years ago.

Download all attachments as: .zip

Change History (4)

@chris@…
9 years ago

#1 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review4.9

#2 @SergeyBiryukov
9 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 40954:

Login and Registration: Prevent the enable_login_autofocus filter DocBlock from spilling into JS code.

Props chris@….
Fixes #41176.

#3 @SergeyBiryukov
9 years ago

#41912 was marked as a duplicate.

Note: See TracTickets for help on using tickets.