jeremyclark13 / automatic-theme-plugin-update

Self hosted plugin and theme update scripts
http://clark-technet.com/2010/12/wordpress-self-hosted-plugin-update-api
546 stars 146 forks source link

Child Theme - theme X update process - no update #48

Open stoffl6781 opened 6 years ago

stoffl6781 commented 6 years ago

Hi, i have make a "theme x" - child theme and i will integrate the update process. in the update in the Dashboard there are no updates to do. What make i wrong?

Style.css from the child theme

/* CSS Document */

/*
Theme Name:   ENSPowerPack
Description:  ENS Power Pack Security Plugin
Author:       ENS
Author URI:   http://www.ens.gmbh
Version: 1.0
Template: pro
*/

and the packages - that make i wrong?

<?php
// Theme with update info
$packages['ENSPowerPack'] = array( //Replace theme with theme stylesheet slug that the update is for
    'versions' => array(
        '1.0' => array( //Array name should be set to current version of update
            'version' => '1.2', //Current version available
            'date' => '2018-01-26', //Date version was released
            //theme.zip is the same as file_name
            'package' => 'https://update.ens.gmbh/api/download.php?key=' . md5('powerpackpro.zip' . mktime(0,0,0,date("n"),date("j"),date("Y"))),
            //file_name is the name of the file in the update folder.
            'file_name' => 'powerpackpro.zip',  //File name of theme zip file
            'author' => 'ENS', //Author of theme
            'name' => 'ENSPowerPack', //Name of theme
            'requires' => '3.1', //Wordpress version required
            'tested' => '4.9.2', //WordPress version tested up to
            'screenshot_url' => 'http://url_to_your_theme_site/screenshot.png' //url of screenshot of theme
        )
    ),
    'info' => array(
        'url' => 'http://www.ens.gmbh'  // Website devoted to theme if available
    )
);

I have test it with: '1.1' => array( //Array name should be set to current version of update '1.2' => array( //Array name should be set to current version of update etc ...

and my file structur: https://screencast.com/t/qqe8ty2zK8

what make i wrong?