Commit Graph

486 Commits

Author SHA1 Message Date
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
Vojtěch Sajdl d3aeafa06c Czech translation 2017-07-05 17:42:09 +02:00
Yahnis Elsts be797d2f7a Suppress warnings about set_time_limit being disabled.
Some hosts disable set_time_limit() and a few other functions. Calling the disabled function triggers a warning. In our case, using set_time_limit() is optional - PUC will usually work fine even if it can't increase the time limit - so lets just ignore the warning and carry on. 

Reported in #111.
2017-06-17 22:18:41 +03:00
Yahnis Elsts 8f39bceb12 Merge pull request #108 from GoodMorningCall/update-Japanese-POT-for-v4.1
Update Japanese translation for v4.1
2017-06-04 10:23:33 +03:00
tak 9555c169fa Update for v4.1
Update Japanese translations to adapt to v4.1
2017-06-04 15:30:44 +09:00
Yahnis Elsts c81fd974d1 Update POT to include _x() contexts 2017-05-20 10:59:45 +03:00
Yahnis Elsts 6f5e7a478c Merge pull request #104 from iiandrade/master
Add Portuguese Brazilian translation
2017-05-20 10:54:44 +03:00
Italo Izaac d6a34a0f36 Portuguese Brazilian translation 2017-05-19 16:02:28 -03:00
Yahnis Elsts 235a810e90 Fix an issue with Debug Bar 0.9 where the content of some PUC panels was not visible. See issue #102.
Cause: Debug Bar 0.9 now includes an admin bar menu that lists the available panels. This means that the special element that PUC uses to identify its panel titles (<span id="puc-debug-menu-link-$uid">) is no longer unique. This breaks the JS that's supposed to work around the fact that Debug Bar incorrectly assumes that every panel will have a unique PHP class name.
2017-05-16 21:16:08 +03:00
Yahnis Elsts ea2bf49144 Minor: Remove commented-out code. 2017-05-01 13:20:22 +03:00
Yahnis Elsts d4c32356fb Fix metadata documentation link 2017-04-28 18:36:43 +03:00
Yahnis Elsts 22689ce0cc Add GitHub API response to the `Vcs_Reference` instance.
This is intended for use in subclasses, e.g. to change the `downloadUrl` from `zipball_url` to an asset URL.
2017-04-12 12:13:53 +03:00
Yahnis Elsts a3f314b052 Update POT file 2017-04-07 15:58:40 +03:00
Yahnis Elsts e1395c0c22 Update readme 2017-04-07 15:45:33 +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