Yahnis Elsts
4f1ec59f98
Remove unused property
2017-01-10 16:20:01 +02:00
Yahnis Elsts
57df68d407
Extract state storage as a new class.
...
Lazy-loading is a bit messy. Could it be improved with magic __get() and __set()?
2017-01-10 15:25:36 +02:00
Yahnis Elsts
aeeda3c330
Reduce code duplication by moving most similar code from requestUpdate and requestInfo into a new method: requestMetadata.
2017-01-06 10:40:42 +02:00
Yahnis Elsts
3004e10f75
Add a way to filter the HTTP options used when making GitHub/BitBucket API requests.
...
Example:
$updateChecker->addHttpRequestArgFilter('my_callback');
function my_callback($options) {
$options['timeout'] = 30;
return $options;
}
2016-12-28 17:15:42 +02:00
Yahnis Elsts
f41dc30d28
Minor fixes and some comments
2016-12-28 16:09:28 +02:00
Yahnis Elsts
16ab2457df
Support themes hosted on GitHub.
...
What should "View version 1.2.3 details" link to? Theme URI, the changelog, the release, or the repository itself?
2016-12-19 19:26:34 +02:00
Yahnis Elsts
0cd1c51c57
Autoload Parsedown and the readme parser.
...
Refactor requestUpdate() filtering.
Rename getFilterName to getUniqueName because it's used for more than just filter names.
Added a couple of utility methods.
2016-12-17 19:04:52 +02:00
Yahnis Elsts
3e11878ac8
DebugBar integration for themes.
...
Change filter structure from puc_/tuc_* to puc_tag_[theme]-$slug. Not happy with that yet.
Fix a bunch of minor bugs.
2016-12-17 17:57:27 +02:00
Yahnis Elsts
2a176fc665
Move update injection and directory name fixes to the base UpdateChecker class.
2016-12-16 17:53:15 +02:00
Yahnis Elsts
f5ae142e63
Translation, localization. Fix a bunch of crashes.
2016-12-14 21:13:51 +02:00
Yahnis Elsts
26c24167ab
WIP: Theme updates.
...
- Refactor the scheduler so that it can be used in themes.
- Add state storage to the base update checker.
- Move the "allow metadata host" workaround to the base class.
- Rename cron hook from "check_plugin_updates-$slug" to "puc_cron_check_updates-$slug" and "tuc_cron_check_updates-$slug".
2016-12-14 11:18:58 +02:00
Yahnis Elsts
9effd33bfa
WIP: Theme updates
2016-12-12 16:26:41 +02:00
Yahnis Elsts
79c2439464
Start reorganizing directory structure to comply with PSR-0 (mostly).
2016-12-08 16:56:24 +02:00