Yahnis Elsts
Yahnis Elsts
> why a library and not an actual plugin? It's more flexible this way. It's also easier to write since I don't have to worry about the compatibility hell that...
I think the simplest solution would be to just unset the `download_url` field instead of replacing it with a link to an "empty shell" .zip file. That's what I do...
Unless I'm missing something, you don't need to do anything special to accomplish that. Even if you replace the `download_url`, the update server should still return the same readme information....
Short answer: I'm talking about the file that's on the update server, not about the files that the user has. I'm not sure what your mental model is, so I'll...
That part of the documentation is for the old, unmaintained theme update checker library. It sounds like you're using the more recent plugin-update-checker library instead. That's a good thing, but...
> Would it be okay to use &slug=myBlog rather than a version prefix Of course. The slug in the URL basically just determines which file in the `packages` directory the...
There are several ways you could do that. One option would be to use the `$prefix_request_metadata_http_result-$slug` filter. For example: ```php $updateChecker->addFilter('request_metadata_http_result', function($httpResponse) { //Do something with $httpResponse here. It's the...
The next release is almost ready. If you have the time, please give it another try - it will help verify that I didn't miss anything while adding namespaces and...
The same basic code seems to work fine for me (to actually run it, I changed `$plugin_slug` to `test-slug` and `$file_path` to `__FILE__`). If you're using Composer, you may need...
The class is defined in [`/Puc/v5p0/Vcs/PluginUpdateChecker.php`](https://github.com/YahnisElsts/plugin-update-checker/blob/9bb19e44e25eb5579540ecf5da37d8c99155d97e/Puc/v5p0/Vcs/PluginUpdateChecker.php#L9). It is registered to the factory in [`load-v5p0.php`](https://github.com/YahnisElsts/plugin-update-checker/blob/9bb19e44e25eb5579540ecf5da37d8c99155d97e/load-v5p0.php#L20). At a glance, it seems like namespace resolution should work fine. I tested it on PHP...