Make WordPress Core

Opened 12 years ago

Closed 10 years ago

#21168 closed enhancement (invalid)

Add ability to remove a parent theme's page templates

Reported by: billerickson's profile billerickson Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:

Description

When building a website using a child theme, I'll often want to remove page templates that the parent theme provides but aren't useful/relevant to the specific site I'm building.

You can create a page template with the same name to override the parent theme's, but you can't simply remove it.

This could be a use case of #13265, or we could add function that leverages #13265

Change History (4)

#1 @Mamaduka
12 years ago

  • Cc georgemamadashvili@… added

#2 @sabreuse
12 years ago

  • Cc sabreuse@… added

#3 @nacin
10 years ago

  • Component changed from General to Themes

#4 @obenland
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This was addressed in r27297 and r27470, with the theme_page_templates filter.

Note: See TracTickets for help on using tickets.