Commit Graph

161 Commits

Author SHA1 Message Date
Yahnis Elsts 60ec73fddc Minor: Update year in license block. 2025-05-22 16:13:04 +03:00
Yahnis Elsts dc93f32388 Bump version number to 5.6 2025-05-20 15:20:21 +03:00
Yahnis Elsts c74a3bcde2 Bump version number to 5.5 2024-10-16 17:14:29 +03:00
Yahnis Elsts e8e53e6d98 Minor: Update copyright year 2024-02-24 11:56:49 +02:00
Yahnis Elsts 1ee425c37b Bump version number to 5.4 2024-02-24 11:54:53 +02:00
Yahnis Elsts 0b6bd7cd32 Bump version number to 5.3 2023-11-09 10:34:00 +02:00
Yahnis Elsts 565a071b59 Bump version number to 5.2 2023-08-17 15:42:19 +03:00
Yahnis Elsts 48b03e93c9 Bump version number to 5.1 2023-05-20 14:55:43 +03:00
Yahnis Elsts 0d4d717cde Bump version number to 5.0 2022-10-08 20:07:42 +03:00
Yahnis Elsts 6eb27a6911 Bump version to 4.13
Also updated the POT file. No new strings, but some of the source code references were out of date.
2022-07-29 15:36:25 +03:00
Yahnis Elsts ae5789b5a7 Rename classes for 4.12 2022-07-25 00:33:05 +03:00
Yahnis Elsts 4525927a6b Rename loader file 2022-07-25 00:27:58 +03: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 5a98cfdae1 Change version number to 4.10 everywhere 2020-08-08 14:30:02 +03:00
Yahnis Elsts 28f29c940c Bump version number to 4.9 2020-02-07 13:07:19 +02:00
Yahnis Elsts 2a7c818f18 Alternative fix to Composer autoloading issues.
It may be possible to overcome the limitations of the "files" autoloading mechanism by changing the file name in every version.
2019-10-08 15:06:40 +03:00
Yahnis Elsts a78cbb71d3 Bump version number to 4.8 2019-09-28 15:47:47 +03:00
Yahnis Elsts bbe88a70d6 Attempt to fix errors caused by using Composer-generated autoloaders when multiple versions of the library are loaded at the same time.
See #300. Apparently, when using the `files` autoloading mechanism, Composer will only include the files for one version of the library (i.e. the first one loaded). Let's see if we can fix that by switching to a `psr-0` autoloader. This requires a bunch of changes to the standalone autoloader and the factory registration process.
2019-09-27 17:06:01 +03:00
Yahnis Elsts 6da68b1192 Changed version number to 4.7 2019-07-05 21:39:53 +03:00
Yahnis Elsts 4643dec114 Minor: Add newlines to the end of each file.
Some code analysers require this.
2019-04-18 22:53:23 +03:00
Yahnis Elsts 45374e3c02 Bump version number to 4.6 2019-04-02 20:56:11 +03:00
Yahnis Elsts 006bb9394f Probably fixed a bug where, if an older version of PUC 4.x is loaded first, the more recent version's factory (Puc_v4pN_Factory) won't be able to instantiate any classes.
This bug was caused by a combination of two facts:

1) The version that gets loaded first takes the Puc_v4_Factory alias.
2) All other versions register their class names with the existing Puc_v4_Factory, not their own factory class.

We can't really do much about the first one, but we can work around the second one by also registering each class with the version-specific factory.

See also #279
2019-03-29 19:17:36 +02:00
Yahnis Elsts d98d6bc6ca Bump version to 4.5 - step 2
Rename files and update file paths.
2018-12-30 12:38:32 +02:00
Yahnis Elsts d460807de8 Bump version to 4.5 - step #1
Renaming all of the clases and updating version numbers.
2018-12-30 12:35:16 +02:00
Yahnis Elsts da42863436 Bump version number to 4.4. 2017-12-22 12:39:11 +02:00
Yahnis Elsts af5207d349 Minor: Include the v4 factory. 2017-11-26 21:55:24 +02:00
Yahnis Elsts 150d3d8165 Rename Puc_v4_Factory to Puc_v4p3_Factory
This should fix the fatal error that happens when running PUC 4.3 together with an older 4.x release while Debug Bar is active.

See #152
2017-11-16 17:00:22 +02:00
Yahnis Elsts 92763829c6 Bump version number to 4.3 2017-11-03 13:22:55 +02:00
aaronkirkham07@gmail.com 3760c5140e initial support for GitLab 2017-09-30 00:43:58 +01:00
Yahnis Elsts 846d111947 Bump version: Step 2: Rename subdirectory 2017-07-21 14:27:31 +03:00
Yahnis Elsts f74c67145b Bump version number to 4.2 (step 1) 2017-07-21 14:16:21 +03:00
Yahnis Elsts 164aacf4c1 Bump version number to 4.1
This may look like a lot of changes, but it's essentially a simple search & replace from "v4" to "v4p1". Note that the factory class name stays the same: Puc_v4_Factory. It will only change on a major release.
2017-04-06 16:32:40 +03:00
Yahnis Elsts f2a2f80678 Minor: Bump version number 2017-01-31 17:42:57 +02:00
Yahnis Elsts fd62858e90 Fix "Cannot declare class Puc_v4_Autoloader".
Oops, I knew I'd missed something! Well, this is that something.
2017-01-13 18:49:54 +02:00
Yahnis Elsts 911d4cf7a0 Minor documentation updates 2017-01-10 18:08:25 +02:00
Yahnis Elsts cdf2d22243 Refactoring GitHub and BitBucket support.
Move most GitHub and BitBucket stuff to a general "VCS checker" class and put service-specific logic in API classes that follow a common interface.

Rationale: Upon further reflection, there's no need to have different theme & plugin checker implementations for each Git hosting service. The overall update detection algorithm stays the same. Only the API and authentication are different. 
 
 Not entirely happy with the code duplication in Vcs_PluginUpdateChecker and Vcs_ThemeUpdateChecker. Traits would be one solution, but can't use that in PHP 5.2. There's probably a "good enough" way to achieve the same thing through composition, but I haven't figured it out yet. 
 
 For private GH repositories, use setAuthentication('access_token_here') instead of setAccessToken().
2016-12-27 18:03:06 +02:00
Yahnis Elsts 55077f4a03 WIP: BitBucket support. Not usable yet! 2016-12-20 17:06:14 +02:00
Yahnis Elsts f1e59b183c Rename DebugBar AJAX actions to prevent conflicts with previous versions. 2016-12-19 19:05:06 +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
Yahnis Elsts 38dabff869 Bump version number to 3.2 2016-12-08 12:22:54 +02:00
Yahnis Elsts 93c9d661d5 Trigger a fatal error if the plugin slug is in use.
Slugs must be unique because they're used for option names, filter names and so on. This is a potentially breaking change.
2016-11-16 12:35:52 +02:00
Yahnis Elsts 4e2ad11aee Minor: Fix line separators 2016-07-28 11:08:49 +03:00
Yahnis Elsts bcade9eb51 Bump version number to 3.1 2016-05-11 18:28:19 +03:00
Yahnis Elsts a9ce2de7cf Merge remote-tracking branch 'refs/remotes/origin/master' into language-packs 2016-05-05 16:06:11 +03:00
Yahnis Elsts c6970fd883 Extract translation update filter as a method. 2016-05-03 18:32:39 +03:00
Yahnis Elsts 531c4d8247 Fix crash when running 3.x together with 2.x or lower while Debug Bar is active.
While most PUC class names use version number suffixes to avoid conflicts with older versions of the library, the classes responsible for Debug Bar integration did not (until now). This is because those classes are fairly simple and they have stayed mostly unchanged since version 1.0. Mostly, but not completely. For example, the debug bar panel depends on the getCronHookName() function, and that function was recently moved to the new PucScheduler class. 

This is a problem because when your site has two plugins using two different versions of this library (e.g. 3.0 and 1.3), you can end up in a situation where PluginUpdateChecker_3_0 unintentionally instantiates the old version of PluginUpdateCheckerPanel (1.3). Then the panel then tries to access a non-existent field or method of PluginUpdateChecker_3_0 and crashes. It produces errors like this:

[26-Apr-2016 13:34:14 UTC] PHP Fatal error:  Call to undefined method PluginUpdateChecker_3_0::getCronHookName() in [redacted]\wp-content\plugins\plugin-name-here\inc\plugin-updates\debug-bar-panel.php on line 58

Fixed by versioning debug bar panel class names.
2016-04-26 17:02:46 +03:00
Yahnis Elsts 0cfe8deaad Minor: Add a @see reference to the WP API that clears the update cache. 2016-04-19 15:42:38 +03:00
Yahnis Elsts 2c6bfc6309 Initial support for translation updates / language packs. Needs polishing and testing. 2016-04-19 13:56:54 +03:00
Yahnis Elsts 026fb99eef Initialize the $sections property with a default value (empty array).
This way we don't need to check if it's initialised.
2016-03-25 11:45:30 +02:00