Open bahiirwa opened 4 years ago
Version 2 is out now and an update will improve performances. I can do a PR if you want, but i need 2 answer before:
UpdateClient.class.php
has removed text domains. More info here: codepotent/Update-Manager#44. As those are core strings, it's up to CP to translate them, but if you want i can add CC text-domain.assets/images
and this is fixed hardcoded in the class. There are two filters now to do that. I can modify the class or use the filters, but in the latter case please let me know which is the preferred location to add those filters.About
Thoughts welcome.
I'm not sure I want to be introducing any significant changes just as we're ready to release beta1 of CC so for beta1 at least, I'd say it's business as usual.
There is a new version of the Update manager client file that adds an extra line for security to lock the download location.
I'm not sure what happened with this issue, but do we want to look at updating the client file in the next release?
I can update the client and make the necessary to make it fully works.
Now it points to https://officialplugins.classicpress.net/
that seems not to be active.
Am I wrong?
The update server should be: const UPDATE_SERVER = 'https://classiccommerce.cc/';
Is that what you were asking?
Also for anyone updating this, note that the client file has been renamed to: class-wc-update-client.php
and the path to the images needs to be:
// Set path and URL to this plugin's own images directory.
$image_path = untrailingslashit(WP_PLUGIN_DIR).'/'.$plugin.'/assets/images';
$image_url = untrailingslashit(WP_PLUGIN_URL).'/'.$plugin.'/assets/images';
and the path to the images needs to be
I'm writing a PR to use filters to do this, and also to support usage statistics opt-out. So when/if a new version of the client will be released the update will be easier.
The current update manager client file needs an update since the new release.
_Originally posted by @nylen in https://github.com/_render_node/MDIzOlB1bGxSZXF1ZXN0UmV2aWV3VGhyZWFkMjMxMDEwODY2OnYy/pull_request_review_threads/discussion_