Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#30437 closed defect (bug) (fixed)

Escape title tag in 'admin_title' hook docs

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

Description

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
10 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
10 years ago

  • Keywords good-first-bug removed

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


10 years ago

Note: See TracTickets for help on using tickets.