• Resolved Tejas Hapani

    (@tejashapani-1)


    Hi All,

    I am using WP 4.2.1 with latest version for my site.

    I have a customized theme and i used the same theme for 2 different site.
    My issue is i have added a code in second theme, so when there is any new updates in my first theme, it will show Theme Update notification on backend.

    All going good, the theme is updating with the latest changes but only issue is, its changing theme name with “.tmp”.

    Suppose theme name is “mytheme” and when i update theme on second site, it renames to “mytheme.tmp” file.

    I don’t know why this happing. ??

    Below is the code i used on functions.php file to check for updates:

    require 'theme-updates/theme-update-checker.php';
    $example_update_checker = new ThemeUpdateChecker(
            'mytheme',
            'https://localhost/mysite1/info.json'
    );

    Anyone have any clue on this?

    Thanks in advance.
    Tejas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Tejas Hapani

    (@tejashapani-1)

    Hi

    Anyone have any idea about this issue?

    Thanks
    Tejas

    Thread Starter Tejas Hapani

    (@tejashapani-1)

    After long head bang, i got that its my mistake to generate zip of the theme.

    We need to zip the file from root folder of the theme, not from inside the theme folder.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme updates’ is closed to new replies.