• Resolved itiab

    (@itiab)


    I inherited a theme with really old code and no documentation. I got most of the code stabilised (still learning wordpress) and upgraded the plugins, core etc (all over 5 years old).

    However the theme keeps saying it needs to update.
    After letting it update the theme is totally changed.

    The Original code had a theme called Blank.
    The theme also had a child theme called blank.
    Child theme is active.

    The sites name is [ redundant link removed ]

    When the update theme button is pushed the theme updates to a theme called festive (same name as the site). The updated themes author, sources, look etc are totally not anything to do with the blank theme.

    Some how the theme update code is using the theme called Festive to update the theme called blank.

    1 – where is the code to update a theme held?
    2 – I know you can add a filter to stop themes updating (but not where to put that code without making a muPlugin) but there must be a way to unhook the theme called festive from updating my clients site.

    any help appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress’ update system is not terribly sophisticated. It just looks in the directory for a theme with the same directory name as your theme. So if your theme folder was /festive, then WordPress looks in the directory for https://www.ads-software.com/themes/festive/ and if that theme has a higher version number than your theme, it will appear as an update.

    This article describes the issue and also links to some code that you can add to the theme to prevent it from being updated by WordPress.

    Thread Starter itiab

    (@itiab)

    Thank you for your reply. I was going mad trying to find where the code might be but it looks like I missed the obvious trying to work it out

    • This reply was modified 6 years, 7 months ago by itiab.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme updating from invalid theme source’ is closed to new replies.