Commit Graph

450 Commits

Author SHA1 Message Date
Mikk3lRo eaa06eae6c My IDE still refuses to use tabs for indentation - sorry :p 2017-11-01 16:53:50 +01:00
Mikk3lRo 5703f6e338 Make "Visit Plugin Site"-link detection more robust and correct comment to reflect new default position. 2017-11-01 16:51:33 +01:00
Mikk3lRo 727b99573c Rename first -> before and last -> after and set default to before for placement of View details link. 2017-11-01 16:39:00 +01:00
Mikk3lRo 844c1fdb53 Update docblock 2017-10-31 03:07:23 +01:00
Mikk3lRo 1ebe29e1a4 Add spaces inside some paranthesis. 2017-10-31 03:04:04 +01:00
Mikk3lRo 5a4e5a44a2 Remove filter to add View Details Link. Extend / modify order of links. 2017-10-31 02:35:00 +01:00
Mikk3lRo eb12e77706 Added third argument to addViewDetailsLink. 2017-10-30 19:18:52 +01:00
Mikk3lRo 5e987d8982 Use the same method of checking for empty linkText as used in the pre-
existing addCheckForUpdatesLink
2017-10-23 23:59:09 +02:00
Mikk3lRo e5d96dbf05 Whoops, we use tabs in this one, not spaces. 2017-10-23 23:49:14 +02:00
Mikk3lRo d39c1e400c Wrong hook 2017-10-23 23:41:00 +02:00
Mikk3lRo 732179b0c0 Always show the plugin details link on the plugin list 2017-10-23 23:38:36 +02:00
Yahnis Elsts 1d3893edf9 Merge pull request #143 from Mikk3lRo/add-danish-language
Add Danish translation.
2017-10-17 19:44:46 +03:00
Mikkel-i123 1f810e1015 Add Danish translation. 2017-10-17 11:07:53 +02:00
Yahnis Elsts 21814c43a3 Merge pull request #141 from dylanmoller/master
Add Swedish translation
2017-10-17 11:48:21 +03:00
dylanmoller 6ae193fb26 added po/mo language files for Swedish translation 2017-10-16 15:23:20 +02:00
Yahnis Elsts 18818714c3 Merge pull request #140 from DavidAnderson684/patch-9
Use the wp_get_installed_translations function conditionally

This function was introduced in WP 3.7.
2017-10-13 19:09:03 +03:00
David Anderson f0a10eaca9 Use a WP 3.7+ function conditionally
`wp_get_installed_translations()` was introduced in WP 3.7. This change returns an empty result for the translations list if the function does not exist. (Encountered in the wild, fatal error).
2017-10-13 12:26:16 +00:00
Yahnis Elsts 818ceaffc0 Merge pull request #139 from Mikk3lRo/add-note-about-134
Add note about issue #134 until a better solution is found.
2017-10-11 17:47:13 +03:00
Yahnis Elsts e48d41e30d Remove PUC hooks upon uninstallation to prevent a crash
See #138 for details.
2017-10-11 17:24:23 +03:00
Mikkel-i123 500e5ebb86 Add note about issue #134 until a better solution is found. 2017-10-10 16:41:48 +02:00
Yahnis Elsts 1cc6a90acf Merge pull request #137 from aaronkirkham/master
GitLab Integration
2017-10-06 10:56:25 +03:00
aaronlad 58e28b8fd7 code style consistency changes 2017-10-05 16:52:41 +01:00
Yahnis Elsts 76c3e1cea1 Merge pull request #136 from DavidAnderson684/patch-8
Work on WP versions without wp_normalize_path()
2017-09-30 19:12:38 +03:00
David Anderson aa4272cbcc Correct typo 2017-09-30 16:08:50 +00:00
David Anderson 36eb8e3b10 Use Puc_v4_Factory::normalizePath() 2017-09-30 16:06:46 +00:00
David Anderson 972d649614 Make normalizePath public 2017-09-30 16:03:50 +00:00
aaronkirkham07@gmail.com 50b5d7170e removed getLatestCommit method
removed Factory magic to detect self-hosted gitlab instances
updated readme with gitlab instructions
2017-09-30 16:15:00 +01:00
David Anderson 2f225bdcce Code style consistency 2017-09-30 14:40:07 +00:00
aaronkirkham07@gmail.com a2ca0ba0f2 support gitlab instances installed in a subdirectory
no longer checking for 'gitlab' in the hostname
2017-09-30 15:38:16 +01:00
Yahnis Elsts 8db5115e69 Minor: Update year in license.txt 2017-09-30 12:34:06 +03:00
aaronkirkham07@gmail.com ccc07e9ce3 sprintf consistency 2017-09-30 01:55:37 +01:00
aaronkirkham07@gmail.com 4339460aed fix weird tab/spaces 2017-09-30 01:45:09 +01:00
aaronkirkham07@gmail.com cf2c07a531 support downloads from gitlab
added support for branches
implemented getLatestCommitTime method
2017-09-30 01:32:10 +01:00
aaronkirkham07@gmail.com 84f2efda8f fix spaces 2017-09-30 00:45:46 +01:00
aaronkirkham07@gmail.com 3760c5140e initial support for GitLab 2017-09-30 00:43:58 +01:00
David Anderson fbe1d818c1 Work on WP versions without wp_normalize_path()
WP < 3.9 does not have the wp_normalize_path() function available. This edit restores the ability to work on such versions.
2017-09-29 21:37:31 +00:00
Yahnis Elsts a0e272295a Merge pull request #131 from anugupta/PHP7
Fix a false-positive PHP 7 compatibility issue

Several users have reported a PHP 7 compatibility issue in ParsedownLegacy.php. This file is never used on sites running PHP 7 (it's a back-compat thing for PHP 5.2 and below), but it seems like a good idea to merge the fix anyway as it will prevent any more time being wasted on this issue.
2017-09-07 11:22:38 +03:00
Anu Gupta c7fcfb38b1 Force evaluation order for PHP 7 conpat
As per http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.variable-handling.indirect

In PHP 7, indirect access to variables, properties, and methods is now evaluated strictly in left-to-right order. Code that used the old right-to-left evaluation order must be rewritten to explicitly use that evaluation order with curly braces
2017-09-07 00:49:29 +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 f0cc400fbd Refactor GitHubAPI: Extract URL generation as a method.
The code that builds API URLs is probably complicated enough to warrant a separate method: it performs placeholder substitution, does authentication-related stuff (access_token), and builds the query string.
2017-07-21 12:08:37 +03:00
Yahnis Elsts f352474fd0 Minor: Simplify Utils::get()
Behaviour change: An empty path now returns the collection itself, not the default value. This doesn't really matter for the current version because it only uses constant, non-empty paths.
2017-07-20 20:23:42 +03:00
Yahnis Elsts 4fd8135f17 Minor: Explicit visibility for methods 2017-07-20 19:54:44 +03:00
Yahnis Elsts 2b96d033a5 Minor: Use strict comparisons 2017-07-20 19:52:45 +03:00
Yahnis Elsts c98ccca312 Merge pull request #117 from DavidAnderson684/patch-7
Make wp_remote_get result filterable in requestMetadata

New filter name: puc_request_metadata_http_result-$slug OR puc_request_metadata_http_result_theme-$slug
2017-07-18 11:54:22 +03:00
David Anderson 7061a5b195 Update UpdateChecker.php
Tweak filter name
2017-07-17 21:27:23 +00:00
David Anderson ef91a9409d Make wp_remote_get result filterable
I want to filter the wp_remote_get result. In my use-case, if https fails, I switch back to http (in case the user had a bad curl setup/obsolete SSL certificates) and try again.

Until now I've been patching the code, but that is, of course, silly!
2017-07-17 14:12:39 +00:00
Yahnis Elsts 8e4959a17b Merge pull request #116 from rvola/master
Updated French translation
2017-07-07 16:16:05 +03:00
Nicolas GEHIN e036e0d775 Updated language file french 2017-07-07 14:55:53 +02:00
Yahnis Elsts 2c7a113010 Merge pull request #115 from Pryx/master
Add a Czech translation
2017-07-05 18:52:17 +03:00