Commit Graph

459 Commits

Author SHA1 Message Date
Tim Wiel 824348c036 Adding checks for the assets to ensure they are zip files which is what wordpress needs to update 2021-09-22 12:11:37 +12:00
Tim Wiel 1c63404e98 README.md update to reflect Gitlab releases functionality 2021-09-21 14:00:53 +12:00
Tim Wiel cb44a6ede1 Adding releases to GitLab API with option for release asset download from either: source OR generic package releases (see https://gitlab.com/gitlab-org/release-cli/-/tree/master/docs/examples/release-assets-as-generic-package/) 2021-09-21 13:48:25 +12:00
Yahnis Elsts 2292442efc
Merge pull request #433 from geoffthibeau/bitbucket-default-branch-main
Adds possible default branch name 'main': Bitbucket
2021-05-19 13:51:58 +03:00
Geoff Thibeau 048b78cdd5
Adds possible default branch name 'main': Bitbucket
Adds `main` as a possible default branch name to invoke `$this->getLatestTag()` inside of `Puc_v4p11_Vcs_BitBucketApi::chooseReference()`.

Previously, only branches named `master` inherited this special behavior. With more VCS providers opting for an inclusive default branch name, this commit adds `main` as a default branch name configuration.

Related to #422.
2021-05-18 18:49:36 -05:00
Yahnis Elsts cd4df885c4
Merge pull request #432 from YahnisElsts/wp55-auto-updates
Merge a BitBucket API fix
2021-05-12 21:52:34 +03:00
Yahnis Elsts e5384a52c7 Merge branch 'master' into wp55-auto-updates 2021-05-12 21:30:14 +03:00
Yahnis Elsts 703cbd854d
Docs: Imply that the branch name is not optional
The update checker will look for a `master` branch by default, but new repositories use the name `main` instead, and it is technically possible to use any branch as the default branch. So while you don't *have to* set the branch name, it's probably a good idea to always do that.
2021-03-31 17:30:10 +03:00
Yahnis Elsts 3155f2d3f1 Change version number in file/directory names
Step 2 of version bump
2021-03-15 18:07:52 +02:00
Yahnis Elsts 06bc75f9af Change version infix from v4p10 to v4p11
Step 1 of version bump
2021-03-15 18:02:04 +02:00
Yahnis Elsts d057b36eb4
Merge pull request #419 from marcorocca/master
Fixed a call to non-existent lastRequestApiErrors property
2021-03-12 13:57:29 +02:00
Marco Rocca 8a1a779f00 Fixed wrong call to inexistent property 2021-03-12 00:10:50 +01:00
Yahnis Elsts 369c19ab1a BitBucket: Use commit hash instead of branch name when the branch is not URL-safe.
Apparently, the "/src" subsection of the BitBucket API doesn't do well with branch names that contain slashes. urlencode() doesn't help. See #409 for the initial report.
2021-01-28 19:10:17 +02:00
Yahnis Elsts 4e59df1958 Fixed a few warnings about deprecated jQuery features 2020-12-09 17:07:15 +02:00
Yahnis Elsts 4bd0a820d1 Move code that prefixes the API class with the current namespace so that getCompatibleClassVersion() gets the unprefixed name.
Alternative fix for the problem described in #396.
2020-10-14 19:13:02 +03:00
Yahnis Elsts 4778dd3eb4 Add the current namespace to metadata class names 2020-10-07 18:51:24 +03:00
Yahnis Elsts dee87bbfe6 Remove defined('__NAMESPACE__') checks since that apparently doesn't work 2020-10-06 13:01:30 +03:00
Yahnis Elsts 3c55658638 Don't change the Debug Bar panel class name if it already includes a namespace. 2020-10-05 16:51:09 +03:00
Yahnis Elsts 8125be8df7 Improve compatibility with PHP Scoper and other tools that add namespaces to third-party libraries.
See #394 for discussion.
2020-10-05 16:45:03 +03:00
Yahnis Elsts 0edd15f678 Minor: Fix incorrect version number in a doc-comment 2020-08-21 14:36:45 +03:00
Yahnis Elsts 97885642cc Merge branch 'master' into wp55-auto-updates 2020-08-21 14:33:01 +03:00
Yahnis Elsts 8c4a998c63 Hopefully fixed a fatal error related to Debug Bar
Apparently, upgrading a plugin that uses PUC 4.9 to a version that uses PUC 4.10 may trigger two fatal errors, one of which happens inside the Debug Bar extension. Cause is unclear and the errors are not reproduced, but I suspect it has to do with PUC trying to set up a Debug Bar panel after the currently active PUC version has already been replaced. This patch should fix that.
2020-08-10 22:08:34 +03:00
Yahnis Elsts 9ff0a29f38 Minor: Add .gitignore 2020-08-08 15:04:17 +03:00
Yahnis Elsts 244a3d73b0 Update translation template (POT)
No significant changes, just updated file names and line numbers.
2020-08-08 14:38:22 +03:00
Yahnis Elsts 5a98cfdae1 Change version number to 4.10 everywhere 2020-08-08 14:30:02 +03:00
Yahnis Elsts 66f5cf10c2 Change version number in directory name 2020-08-08 14:21:30 +03:00
Yahnis Elsts 08a2836c88
Merge pull request #383 from seatonjiang/master
feat: add Simplified Chinese (zh_CN) translations
2020-08-04 14:16:37 +03:00
Seaton Jiang d00fef5ca0 feat: add Simplified Chinese (zh_CN) translations 2020-08-04 08:14:31 +08:00
Yahnis Elsts 5d3e93d267 Support the auto-update feature introduced in WP 5.5
Discussed in #376
2020-08-03 19:48:01 +03:00
Yahnis Elsts 4e0d4ade46
Minor documentation edits 2020-04-13 15:29:05 +03:00
Yahnis Elsts 9835b98970
Merge pull request #361 from DavidAnderson684/patch-14
Advice on when to load the plugin updates checker
2020-04-13 15:20:00 +03:00
David Anderson 1d9e64368f
Advice on when to load the plugin updates checker
Over the past couple of years when maintaining Easy Updates Manager - https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/ - we've had a lots of reports from people with third party plugins and themes whose upgrades aren't detected or performed. On investigation, this is invariably because the component loads PUC only during an `admin_*` hook, which means that those updates are effectively invisible except for a logged-in user viewing a page in the WP dashboard. So, tools like EUM, ManageWP, JetPack Manage, UpdraftCentral, WP-CLI, etc., don't see them - they're invisible.
2020-04-13 10:16:49 +00:00
Yahnis Elsts 9748abe1bd Add support for "Requires PHP" header fields.
In the update metadata the field is called "requires_php".

Closes #355
2020-04-07 16:06:24 +03:00
Yahnis Elsts ce3f43c10f Don't change "tested":"x.y" to "tested":"x.y.999" when x.y already matches the current WordPress release.
See #356
2020-04-07 15:21:40 +03:00
Yahnis Elsts 949842cee6 Minor cleanup and formatting changes 2020-03-31 17:52:07 +03:00
Yahnis Elsts 0af94b5609
Merge pull request #354 from RichardCoffee/master
Add a new factory method that allows array as parameter argument and pulls update server URI from file header
2020-03-31 16:55:26 +03:00
Richard Coffee b2ca059c05 change method name, add EXTR_SKIP to extract call 2020-03-30 15:15:35 -04:00
Richard Coffee e61f3f5cba Fix logic error 2020-03-29 15:29:23 -04:00
Richard Coffee dcc817106a add updateChecker and getServiceURI methods 2020-03-29 14:25:16 -04:00
Yahnis Elsts d4b0f965b3
Merge pull request #352 from YordanSoares/master
Updates all the Spanish locales laguage packages
2020-03-22 12:42:17 +02:00
Yordan Soares eca14fd459 Updates all the Spanish locales laguage packages
New language packages for:
1. Spanish (Argentina)
2. Spanish (Chile)
3. Spanish (Colombia)
4. Spanish (Costa Rica)
5. Spanish (Dominican Republic)
6. Spanish (Guatemala)
7. Spanish (Honduras)
8. Spanish (Mexico)
9. Spanish (Peru)
10. Spanish (Puerto Rico)
11. Spanish (Spain)
12. Spanish (Uruguay)
13. Spanish (Venezuela)
2020-03-21 15:20:24 -04:00
Yahnis Elsts 5c6c45d561 Fixed a fatal error triggered when trying to autoload some classes while inside a Phar archive 2020-02-23 12:38:27 +02:00
Yahnis Elsts e3cc1c03c9 Fixed a potential fatal error when the current PUC version is removed during an upgrade.
By default, PUC automatically checks for updates immediately after the user upgrades the plugin or theme. This can become a problem if the upgrade overwrites the PUC library with a different version. While checking for updates, PUC may attempt to autoload a class, which will trigger a fatal error if the class file was deleted during the upgrade.

Fixed by checking if the running PUC version still exists after the upgrade. If it doesn't, remove hooks and stop.
2020-02-15 15:28:12 +02:00
Yahnis Elsts 5cdadd0369 Fixed a bug where PUC might not properly whitelist the hostname used in the metadata URL if there were at least two active plugins using the same version of PUC. 2020-02-13 22:14:49 +02:00
Yahnis Elsts 28f29c940c Bump version number to 4.9 2020-02-07 13:07:19 +02:00
Yahnis Elsts 3857481c65 GitHub support: Use Basic auth instead of the access_token query parameter
See #337, #338
2020-02-04 20:29:25 +02:00
Yahnis Elsts 8e79543bf7 Minor: Add ext-json to composer.json 2020-02-04 17:43:31 +02:00
Yahnis Elsts 760225bbfe Fix fatal error "Call to a member function isMuPlugin() on null"
In certain configurations, PUC could call a method that uses the $package property before calling the parent class constructor that initialises that property. This has now been fixed by moving the parent constructor call a few lines up.

Fixes #335
2020-01-24 19:05:40 +02:00
Yahnis Elsts 8212c5235e
Add link to the metadata format reference table 2019-12-03 17:55:04 +02:00
Yahnis Elsts 7014c9d9fd Randomly offset the update check schedule within $checkPeriod
This helps spread out update requests over all hours of the day and may prevent the update server from being hit with daily traffic spikes.
See #323 for discussion.
2019-11-03 12:33:09 +02:00