Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#30437 closed defect (bug) (fixed)

Escape title tag in 'admin_title' hook docs

Reported by: SergeyBiryukov Owned by: DrewAPicture
Milestone: 4.1 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: docs, administration Cc:


See https://developer.wordpress.org/reference/hooks/admin_title/, which only displays half of the page due to the lack of escaping:

<p>Filter the <title> content for an admin page.</p>

Apparently we need to escape <title> with backticks, like we do elsewhere, e.g. in wp_get_archives().

Change History (3)

#1 @DrewAPicture
6 years ago

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

In 30502:

Convert <title> to "title tag" in the DocBlock summary for the admin_title hook.

Fixes #30437.

#2 @DrewAPicture
6 years ago

  • Keywords good-first-bug removed

This ticket was mentioned in Slack in #core by drew. View the logs.

6 years ago

Note: See TracTickets for help on using tickets.