Permalink
Commits on Aug 24, 2016
  1. Fix occasional double slashes in download URLs.

    In some environments, the guessServerUrl() method could return an invalid URL containing two forward slashes "//" instead of one. This caused update downloads to fail in WP 4.6. See bug report:
    YahnisElsts/plugin-update-checker#66
    
    The bug was in the *nix-like branch in guessServerUrl() that always added a forward slash to the path, even if there was one there already. Fixed by simplifying the method and only adding the slash only when necessary.
    committed Aug 24, 2016
Commits on Jul 28, 2016
  1. Minor: Fix text indentation in some lists

    committed on GitHub Jul 28, 2016
  2. Update a code sample so that it works as-is

    The code in the "running the server from another script" section was originally intended as a brief illustration, not as a fully working example that can be used as-is. Now it should work even without modification.
    
    Closes #40
    committed on GitHub Jul 28, 2016
Commits on May 14, 2016
Commits on May 5, 2016
  1. Minor: Remove variable intializer that did nothing since it would get…

    … overwritten immediately.
    committed May 5, 2016
Commits on Jan 28, 2016
  1. Fix a couple of notices about deprecated constructors (PHP 7).

    The bundled Markdown library originally used PHP4-style class constructors. I've renamed them to `__construct`. Closes #35.
    committed Jan 28, 2016
Commits on Nov 2, 2015
  1. Fix: Don't try to re-encode readme contents as UTF-8.

    Assume plugin files are already encoded as UTF-8. Treating them as ISO-8859-1 is just plain wrong, and trying to detect the encoding automatically would be a pain.
    committed Nov 2, 2015
Commits on Jan 10, 2015
  1. Merge pull request #21 from jrfnl/split-off-metadata

    Split off metadata parsing as a separate class
    committed Jan 10, 2015
Commits on Jan 9, 2015
  1. spaces

    jrfnl committed Jan 9, 2015
Commits on Jan 8, 2015
  1. Some simplification of code

    jrfnl committed Jan 8, 2015
Commits on Jan 7, 2015
  1. Minor hiccups

    jrfnl committed Jan 7, 2015
  2. Merge branch 'master' of github.com:YahnisElsts/wp-update-server into…

    … split-off-metadata
    
    Conflicts:
    	includes/Wpup/Package.php
    jrfnl committed Jan 7, 2015
  3. Merge pull request #23 from jrfnl/Bug-fix-cache

    Bug fix: Prevent lots of unnecessary metadata cache writes.
    committed Jan 7, 2015
  4. Bug fix for metadata caching

    jrfnl committed Jan 7, 2015
  5. Merge pull request #22 from jrfnl/Clear-cache-if-expired

    Delete a cache file if it's expired
    committed Jan 7, 2015
  6. Oops..

    jrfnl committed Jan 7, 2015
Commits on Jan 6, 2015
  1. Prevent error notices

    jrfnl committed Jan 6, 2015
  2. Merge branch 'master' of github.com:YahnisElsts/wp-update-server into…

    … split-off-metadata
    jrfnl committed Jan 6, 2015
Commits on Dec 17, 2014
Commits on Dec 15, 2014
  1. Merge changes from master

    committed Dec 15, 2014
Commits on Dec 4, 2014
Commits on Oct 1, 2014
  1. Merge branch 'master' of github.com:YahnisElsts/wp-update-server into…

    … split-off-metadata
    
    Conflicts:
    	includes/Wpup/Package.php
    jrfnl committed Oct 1, 2014
Commits on Sep 30, 2014
  1. Merge pull request #11 from jrfnl/Fix-serialization-issues

    Base64-encode cached data to fix serialization issues
    committed Sep 30, 2014
Commits on Sep 28, 2014
  1. Make $packageInfo a class property so it will be available for use in…

    … an extended constructor
    jrfnl committed Sep 28, 2014
  2. Keep $cacheTime static

    jrfnl committed Sep 28, 2014
  3. Whitespace

    jrfnl committed Sep 28, 2014
  4. Split off the static metadata retrieval from the package class

    This will make it a lot easier to add additional information to the metadata for a package.
    All you need to do is extend the Metadata class and overload the $cacheTime $headerMap, $readmeMap and/or constructor to add additional data.
    You will of course also need to overload the Package::fromArchive() method to use your extended class rather than the original, but as it's now a small method, it doesn't break the upgrade path as much as before.
    jrfnl committed Sep 28, 2014