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
1e709c6199
Add branch name and authentication state (on/off) to the Debug Bar panel.
...
There's some code duplication here. Unpleasant.
2017-01-03 13:22:38 +02:00
Yahnis Elsts
b1fce3c2f4
Minor: Update PHPDoc to show that $update can be null (i.e. no update available).
2016-12-31 14:19:10 +02:00
Yahnis Elsts
e9b377e999
Simplify VCS-based theme checker.
2016-12-31 14:12:17 +02:00
Yahnis Elsts
36ef731e4f
Remove redundant if condition.
...
is_object(null) is false, so we don't need a separate empty($state) condition.
2016-12-30 19:44:00 +02:00
Yahnis Elsts
8e5bc8c321
Extract translation filter as a method.
2016-12-30 19:29: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