Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#51307 new defect (bug)

Document title broken when "Homepage" isn't set in Settings > Reading

Reported by: henrywright's profile henry.wright Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch has-unit-tests
Focuses: template Cc:


Steps to reproduce the bug

  1. Go to Settings > Reading
  2. For "Your homepage displays" select "A static page"
  3. Do not set "Homepage"
  4. Set "Posts page" to a page you have already created
  5. Save

Visit the homepage and check the document title. For example <title>The document title is here</title>

Instead of the expected {blogName} - {blogDescription} you will get just {blogName}

Attachments (1)

51307.2.patch (1.4 KB) - added by mukesh27 4 years ago.
Initial patch.

Download all attachments as: .zip

Change History (5)

4 years ago

Initial patch.

#1 @mukesh27
4 years ago

  • Keywords has-patch added

Hi there!

Thanks for the ticket. Initial patch added.

#2 @SergeyBiryukov
4 years ago

  • Focuses template added
  • Keywords needs-unit-tests added

This ticket was mentioned in PR #1080 on WordPress/wordpress-develop by nielslange.

3 years ago

  • Keywords has-unit-tests added; needs-unit-tests removed

#4 @nielslange
3 years ago

@SergeyBiryukov or @mukesh27, could I get your thoughts on the unit test I just added? I'm fairly new to unit tests and this is the first one I contribute to the core.

Note: See TracTickets for help on using tickets.