[wp-trac] [WordPress Trac] #62783: WordPress.org theme replacing custom theme of same name.

WordPress Trac noreply at wordpress.org
Wed Jan 8 16:35:59 UTC 2025


#62783: WordPress.org theme replacing custom theme of same name.
-------------------------------+------------------------------
 Reporter:  mattk1980          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Themes             |     Version:  6.7.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by mattk1980):

 Replying to [comment:8 siliconforks]:
 > Replying to [comment:7 mattk1980]:
 > > Just to understand this correctly.  If I changed my theme name back to
 "Starburst" and "Starburst" existed as a theme in my local folder it
 wouldn't pick the "Starburst" theme from wordpress.org by default, is that
 right?
 >
 > No, the theme will likely be overwritten with the theme from the
 wordpress.org theme directory the next time WordPress checks for updates.
 >
 > > I think i've possibly misunderstood the logic. If thats the case then
 i think this isn't really an issue more of a mistake i've made when
 setting up this new theme.
 >
 > Well, this ''is'' a known issue, and has been for a long time - that's
 the reason the `Update URI` header was designed and implemented: to
 prevent this from happening.


 I understand the solution, it seems ok but it seems that its quite a
 critical piece of text to have in the style.css. accidently adding a theme
 name that you didnt know exists on wordpress.org without this URI could be
 quite confusing.   I actually thought my website had been hacked at first,
 but thought it was an odd hack.

 Would a child theme ever be a theme from wordpress.org e.g my parent theme
 is generatepress, my child theme has this in the css:

 {{{
 Template: generatepress
 }}}

 Would it still need to be overriden by a wordpress.org theme for an
 update? I can't imagine that scenario being common.

 I guess if this issue has been around for a while someone far more
 advanced than me would of thought of a solution by now!

 Thanks for your help again.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62783#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list