fx-updater icon indicating copy to clipboard operation
fx-updater copied to clipboard

Update for not active theme not recognized

Open Henk57 opened this issue 6 years ago • 2 comments

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.

Henk57 avatar May 31 '19 00:05 Henk57

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/

turtlepod avatar May 31 '19 02:05 turtlepod

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.

Henk57 avatar May 31 '19 15:05 Henk57