turtlepod / fx-updater

Your Own Update Server For WordPress Themes and Plugins
https://genbumedia.com/plugins/fx-updater/
GNU General Public License v2.0
28 stars 16 forks source link

Update for not active theme not recognized #12

Open Henk57 opened 5 years ago

Henk57 commented 5 years ago

I use the plugin for more then 2 years now with compliments.

I had made a new child theme update. I can put in in the repos, but this update is not shown to a site that has the child installed, but now uses an other active theme. Normally updates of non-active themes are shown. After selecting the child once, the update is found. Switching back to the earlier theme, and the update notification stays. Perhaps you can have a look at this issue, or tell me what I might have missed in the instructions.

turtlepod commented 5 years ago

Hi @Henk57 Inactive theme/plugin code are not loaded/run.

So, the updater is on inactive theme/plugin, no update will happen/displayed.

Inactive theme/plugin hosted at wordpress.org will still show, because it's how WP works (that's the default system in wordpress)

this updater is a custom updater, if the plugin/theme is not active. your wp installation will not aware it even exists.

Solution:

Add your theme/child theme updater in a plugin using the "group updater" feature. https://genbumedia.com/docs/fx-updater-groups/

Henk57 commented 5 years ago

Ok. I've changed the 'type' to 'group' (was 'theme') and put the slug of the group I made on the server to 'cs-zakra-child'. I made the child theme member of this group. But the update doesn't show up in the Wordpress updater (version 1.0.2 should go to 1.0.3). It does show up correctly when the child theme is selected first.