Make WordPress Core

Opened 14 years ago

Closed 12 years ago

#21168 closed enhancement (invalid)

Add ability to remove a parent theme's page templates

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

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

  • Cc georgemamadashvili@… added

#2 @sabreuse
14 years ago

  • Cc sabreuse@… added

#3 @nacin
13 years ago

  • Component General → Themes

#4 @obenland
12 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

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

Note: See TracTickets for help on using tickets.