Make WordPress Core

Opened 5 months ago

Closed 5 months ago

Last modified 4 months ago

#62457 closed defect (bug) (worksforme)

Custom templates in 2012 are not copied during update

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

Description

On a regular basis the custom template, in a 2012 theme, is not copied during update. Resulting in broken pages. Adding the template solves the problem

Change History (3)

#1 @knutsp
5 months ago

  • Keywords close added

Hello @petergekko and welcome to Trac!

Updates to themes (and plugins) never copy any additions (or changes) from the old to the new. This is by design, not a defect. If you want custom templates they must reside in a child theme. The child theme is first checked when WP is looking for a template, then the parent theme.

See https://developer.wordpress.org/themes/advanced-topics/child-themes/

For further assistance I can recommend the support forums.

#2 @petergekko
5 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Well, that makes sense. I'll create a child theme

#3 @desrosj
4 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.