Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stoffl6781 opened this issue Jan 29, 2018 · 0 comments
Open

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

stoffl6781 opened this issue Jan 29, 2018 · 0 comments

Comments

@stoffl6781
Copy link

stoffl6781 commented Jan 29, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant