Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 87bed1b
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 24 13:36:16 2016 -0700

    bump/changes

commit 62549ec
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 24 13:30:04 2016 -0700

    use is_doing_ajax function

commit 0439c1b
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 24 13:29:26 2016 -0700

    partial fix for AJAX updates of private

    Bitbucket repos. Still needs to reload page between AJAX updates. :P

commit f25e4d4
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 24 13:04:55 2016 -0700

    add functions to check heartbeat and DOING_AJAX

commit b56662d
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 22 12:05:54 2016 -0700

    fix refreshing transients section

    move closer to section on creating personal GitHub Access Token

commit ad8ba52
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 22 09:55:37 2016 -0700

    less smelly

commit f372e10
Author: Andy Fragen <[email protected]>
Date:   Thu Aug 18 22:59:26 2016 -0700

    update as WP 4.6 released

commit 686602f
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 15 11:43:04 2016 -0700

    syntax highlights PAnD readme

commit 8fa43cc
Author: Andy Fragen <[email protected]>
Date:   Sun Aug 14 09:31:07 2016 -0700

    update PAnD readme

commit 92b3c8d
Author: Andy Fragen <[email protected]>
Date:   Sun Aug 14 09:23:34 2016 -0700

    fix docblock

commit 42b3d9c
Author: Andy Fragen <[email protected]>
Date:   Sat Aug 13 08:33:24 2016 -0700

    update PAnD

commit 53a4bdf
Author: Andy Fragen <[email protected]>
Date:   Fri Aug 12 12:26:50 2016 -0700

    needs to be deleted for release

commit b8af232
Author: Andy Fragen <[email protected]>
Date:   Fri Aug 12 12:25:01 2016 -0700

    update PAnD

commit 19e7227
Author: Andy Fragen <[email protected]>
Date:   Thu Aug 11 21:53:03 2016 -0700

    switch from option to salted transient

commit 21a4832
Author: Andy Fragen <[email protected]>
Date:   Thu Aug 11 15:55:10 2016 -0700

    exit for feature project

commit 96ae175
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 10 11:01:01 2016 -0700

    fix #429, extended naming and branch switching

    problem was $this was an instance of Base not Plugin. Changing to $upgrader_object fixes.

commit 1a0149f
Author: Andy Fragen <[email protected]>
Date:   Sun Aug 7 11:50:22 2016 -0700

    bump and changes

commit 0aa3e03
Author: Andy Fragen <[email protected]>
Date:   Sun Aug 7 11:48:51 2016 -0700

    use official vendor files. ;)

commit 2f558a9
Author: Andy Fragen <[email protected]>
Date:   Sun Aug 7 10:32:29 2016 -0700

    change PAnD method to static per repo owner

commit b5a6d3e
Author: Andy Fragen <[email protected]>
Date:   Sun Aug 7 09:51:57 2016 -0700

    not a docblock, inline comment

commit e6647d3
Author: Andy Fragen <[email protected]>
Date:   Sat Aug 6 16:55:29 2016 -0700

    change changelog release separator

commit 98bae61
Author: Andy Fragen <[email protected]>
Date:   Sat Aug 6 11:21:02 2016 -0700

    update changes

    added release dates from v5.0.0 forward

commit 57e6d82
Author: Andy Fragen <[email protected]>
Date:   Sat Aug 6 11:20:00 2016 -0700

    update PAnD readme

commit a51c412
Author: Andy Fragen <[email protected]>
Date:   Fri Aug 5 11:49:13 2016 -0700

    use active verb in changes

commit 96a4600
Author: Andy Fragen <[email protected]>
Date:   Fri Aug 5 11:38:28 2016 -0700

    reformat with line breaks

commit cabeb68
Author: Andy Fragen <[email protected]>
Date:   Fri Aug 5 01:21:58 2016 -0700

    changes

commit 13572c3
Author: Andy Fragen <[email protected]>
Date:   Fri Aug 5 01:21:30 2016 -0700

    refactor function to update settings

    works for both network activated and single site installs

commit a805910
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 3 22:51:14 2016 -0700

    need to use update_option not add_option

    to dismiss more than once

commit 00faa9d
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 3 21:51:57 2016 -0700

    bump/changes

commit 7caee1a
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 3 21:51:41 2016 -0700

    need this to always fire so refresh transients

    works. If inside if/then the transients won't refresh on single site.

commit 0b85e16
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 3 16:39:25 2016 -0700

    use check_ajax_referrer to validate nonce

    dies if nonce invalid

commit 5c5f486
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 3 10:08:43 2016 -0700

    dismissal delete option if `time() + strtotime()`

    remove in release version

commit 84f153e
Author: Andy Fragen <[email protected]>
Date:   Wed Aug 3 10:05:41 2016 -0700

    nonce check is sufficient

commit e3e9bc9
Author: Andy Fragen <[email protected]>
Date:   Tue Aug 2 21:45:10 2016 -0700

    update dismissal readme

commit 3539cc6
Author: Andy Fragen <[email protected]>
Date:   Tue Aug 2 21:38:20 2016 -0700

    update composer.json

    I hope I did this correctly

commit f627b0b
Author: Andy Fragen <[email protected]>
Date:   Tue Aug 2 21:37:08 2016 -0700

    critical fix - dismissal otherwise always forever

commit 1077b36
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 1 11:11:23 2016 -0700

    I have better words

commit 31c3467
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 1 09:47:30 2016 -0700

    update POT

commit 307023d
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 1 09:24:02 2016 -0700

    updated PAnD readme

commit 2050099
Author: Andy Fragen <[email protected]>
Date:   Mon Aug 1 09:18:23 2016 -0700

    Squashed commit of the following:

    commit af8d5bc9ed5b96dba183ac9f163e9ff8a6fb4dd2
    Author: Andy Fragen <[email protected]>
    Date:   Mon Aug 1 09:16:40 2016 -0700

        update docblock

    commit 6b1af4ecbb072eabb041f121b67a191ca6518e54
    Author: Andy Fragen <[email protected]>
    Date:   Mon Aug 1 09:01:54 2016 -0700

        bump

    commit 33939b36fd914164e0f7bc97881cef45d1cb3a5c
    Author: Andy Fragen <[email protected]>
    Date:   Mon Aug 1 08:56:18 2016 -0700

        load from main plugin for consistency

    commit bd9364fd93785d4cd041f31449d439c19d9f925f
    Author: Andy Fragen <[email protected]>
    Date:   Mon Aug 1 00:03:11 2016 -0700

        update notice dismissal class

    commit 5903895177c6a4a174a7d430a8b7dd8c55414a95
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 23:45:01 2016 -0700

        use instance

    commit 0b3f69d
    Merge: c4e441e 41f683a
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 22:35:57 2016 -0700

        Merge branch 'develop' into dismiss-notices

        # Conflicts:
        #	CHANGES.md

    commit c4e441e
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 22:27:26 2016 -0700

        better formatting

    commit e9a9b5e
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 22:06:13 2016 -0700

        need to load class PAnD earlier

        admin_notices doesn't allow admin_enqueue_script to fire. it must be too late in order.

    commit dd11a9c
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 18:01:00 2016 -0700

        formating

    commit e87e9a7
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 14:57:14 2016 -0700

        bump and changes

    commit 6fd9578
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 14:41:26 2016 -0700

        simplify options setting when empty

        cast as array

    commit d89ba2c
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 14:40:41 2016 -0700

        skip on multisite

    commit 03cde21
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 14:38:20 2016 -0700

        move redirect directly after saving option

    commit 0b357e7
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 13:37:02 2016 -0700

        not necessary to set null values

        null values set at display of checkbox

    commit 1a83322
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 13:23:39 2016 -0700

        don't array_merge as unset checkboxes don't unset

    commit 684ce1e
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 13:20:45 2016 -0700

        check/set existence of checkbox option late

        avoids PHP notice

    commit 95744fb
    Author: Andy Fragen <[email protected]>
    Date:   Sun Jul 31 13:18:05 2016 -0700

        add dismissable notices, set for one day

commit 41f683a
Author: Andy Fragen <[email protected]>
Date:   Sun Jul 31 18:09:58 2016 -0700

    bump and changes

commit 7f03153
Author: Andy Fragen <[email protected]>
Date:   Sun Jul 31 18:07:37 2016 -0700

    don't merge old options

    causes problems with checkboxes that aren't present when not checked.

commit fce72bb
Author: Andy Fragen <[email protected]>
Date:   Sun Jul 31 18:06:00 2016 -0700

    don't set array, check value late and set

    avoids PHP notices

commit 5b30d67
Author: Andy Fragen <[email protected]>
Date:   Sat Jul 30 11:06:34 2016 -0700

    update POT

commit 14f076c
Merge: 4d90d4a a297f46
Author: Andy Fragen <[email protected]>
Date:   Tue Jul 26 20:47:59 2016 -0700

    Merge pull request #424 from pedro-mendonca/develop

    Translation update (pt_PT)

commit a297f46
Author: pedro-mendonca <[email protected]>
Date:   Mon Jul 25 10:12:13 2016 +0100

    Translation update (pt_PT)

commit 4d90d4a
Author: Andy Fragen <[email protected]>
Date:   Sat Jul 23 11:43:09 2016 -0700

    just set $token->private as that's the error if no update available
  • Loading branch information
afragen committed Aug 24, 2016
1 parent 619180f commit 85397cd
Show file tree
Hide file tree
Showing 14 changed files with 616 additions and 297 deletions.
143 changes: 74 additions & 69 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,124 +1,129 @@
#### 5.6.0
#### [unreleased]
* added `Refresh Transients` button to Settings page because the `Check Again` button is going away
* added `redirect_on_save()` for Settings page
* switched to modified version of [wp.org plugin readme parser](https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-parser.php), now accepts _Markdownified_ readme.txt files
* fixed re-activation of RESTful plugin update, multisite vs single site
* when creating Settings page, check current Plugin/Theme class instance, not transient. Fixes issue where remote install of private repo not having private settings saved.
* add default repo values in Settings page to fix PHP errors
* fixed PHP errors in Settings page
* fixed saving issues with checkboxes
* added one day dismissal of admin notices using [persist-admin-notices-dismissal library](https://github.com/collizo4sky/persist-admin-notices-dismissal)
* Settings page now uses same function to update settings for both single/multisite
* temporary fix for AJAX updates of private Bitbucket repos [#432](https://github.com/afragen/github-updater/issues/432), can only do one per page load, not very AJAXy :P

#### 5.5.0
#### 5.5.0 / 2016-07-02
* better internationalization for changing plugin _View details_ link
* refactor and improve `class Additions` for `GitHub Updater Additions` plugin
* fixed for using GitLab CE private token with using `class Install`
* refactored and improved `class Additions` for `GitHub Updater Additions` plugin
* fixed using GitLab CE private token with using `class Install`
* reworked GitHub repo meta as search was occasionally flaky, now also using owner's repos check
* refactor adding extra headers
* refactored adding extra headers
* added RESTful endpoints for updating from CLI or browser, courtesy of @limikael
* added reset of RESTful API key
* added CSS file to help display theme view details
* refactored `get_remote_{plugin|theme}_meta()` to `get_remote_repo_meta()` as it was in 4 different places :P
* updated for Shiny Updates
* fixed PHP fatal, thanks @charli-polo
* fixes for displaying WP_Errors
* fixed displaying WP_Errors
* made error messages non-static
* fixed pesky PHP notice when updating from 5.4.1.3 [#403](https://github.com/afragen/github-updater/issues/403)
* added _aria-labels_ for screen readers
* always display theme rollback/branch switcher in single site installation [#411](https://github.com/afragen/github-updater/issues/411)
* fixed extended naming issue when branch switching, [#429](https://github.com/afragen/github-updater/issues/429)

#### 5.4.1
#### 5.4.1 / 2016-04-21
* get tags for themes to rollback even if no updates are available. I was overzealous in cutting remote API calls.
* ManageWP now works for Remote Management.
* fix bug in `GitLab_API` to use `path` and not `name`. Thanks @marbetschar
* add filter for background updates if set globally. Thanks @jancbeck
* fix PHP notice when adding new Remote Management option
* delete all transients on uninstall
* fix logic for display of GitLab token fields and error notice
* display WP_Error message for `wp_remote_get()` error
* fixed bug in `GitLab_API` to use `path` and not `name`. Thanks @marbetschar
* added filter for background updates if set globally. Thanks @jancbeck
* fixed PHP notice when adding new Remote Management option
* deleted all transients on uninstall
* fixed logic for display of GitLab token fields and error notice
* displayed WP_Error message for `wp_remote_get()` error
* correctly get use GitLab namespace/project instead of project id when needed
* added `data-slug` to theme update rows so CSS may be applied
* now supports MainWP for remote management, thanks @ruben-
* typecast `readme.txt` response to array, fix for occasional malformed `readme.txt` file

#### 5.4.0
* fix deprecated PHP4 constructor in vendor class.
* add `class Additions` to process JSON config from hook to add repos to GitHub Updater, see [GitHub Updater Additions](https://github.com/afragen/github-updater-additions)
* add necessary code in `class Plugin` and `class Theme` for above
* skip many remote API calls if no update available and use local files, huge performance boost :-)
* remove check for GitHub asset, this eliminates an API call for a rarely used feature
#### 5.4.0 / 2016-3-18
* fixed deprecated PHP4 constructor in vendor class.
* added `class Additions` to process JSON config from hook to add repos to GitHub Updater, see [GitHub Updater Additions](https://github.com/afragen/github-updater-additions)
* added necessary code in `class Plugin` and `class Theme` for above
* skipped many remote API calls if no update available and use local files, huge performance boost :-)
* removed check for GitHub asset, this eliminates an API call for a rarely used feature
* added additional header `Release Asset: true` to add back ability to set download link to release asset.
* added function to remove _Basic Authentication_ header when downloading private Bitbucket release assets as they are stored on AmazonS3 and use [Query String Request Authentication Alternative](http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationQueryStringAuth)
* consolidate error messages to show only once per error
* add _Other Notes_ section to View details
* update readme.txt with _Other Notes_ information
* consolidated error messages to show only once per error
* added _Other Notes_ section to View details
* updated readme.txt with _Other Notes_ information

#### 5.3.4
#### 5.3.4 / 2016-01-24
* reset 'new_version' in update transient to avoid _up to date_ failure with branch switching.
* fix display of branch switching themes on single install.
* fix bug in getting Bitbucket branch names.
* fix to hide checkbox when active as mu-plugin.
* fixed display of branch switching themes on single install.
* fixed bug in getting Bitbucket branch names.
* fixed to hide checkbox when active as mu-plugin.
* work better with shiny updates.

#### 5.3.3
* remove added filters, below as they didn't add functionality to this plugin.
#### 5.3.3 / 2016-01-04
* removed added filters, below as they didn't add functionality to this plugin.
* try to use references to `&$this`
* added PHPUnit testing setup, I could use help writing tests. A great way to contribute. :-)

#### 5.3.2
#### 5.3.2 / 2015-12-21
* code simplification for `upgrader_source_selection`
* fix for plugin branch switching to override _up-to-date_ message (most of the time)
* fixed plugin branch switching to override _up-to-date_ message (most of the time)
* added filters for developers, well I wanted them anyway ;-)
* `github_updater_plugin_transient_update`
* `github_updater_theme_transient_update`
* `github_updater_plugin_row_meta`
* `github_updater_theme_row_meta`
* `github_updater_append_theme_action`
* fix for renaming of updating plugins that were never initially renamed when first installed. Strange bug.

#### 5.3.1
* fix PHP notice during remote installation
* fix remote install [#325](https://github.com/afragen/github-updater/issues/325)

#### 5.3.0
* fix parsing of `readme.txt` for donate link
* refactor transient storage resulting in significantly few database calls, more performant.
* move `{get|set}_transient` functions to `abstract class API`
* fix settings page saving errors.
* fix for shiny updates [#321](https://github.com/afragen/github-updater/issues/321)
* overhaul of renaming code back to using `upgrader_source_selection` and for WordPress 4.4 adding `$args['hook_extra'] to `upgrader_source_selection` filter. Thanks @dd32!

#### 5.2.0
* fix [#309](https://github.com/afragen/github-updater/issues/309) for proper GitHub Enterprise endpoints
* add setting for GitHub Enterprise personal access token
* fixed renaming of updating plugins that were never initially renamed when first installed. Strange bug.

#### 5.3.1 / 2015-12-03
* fixed PHP notice during remote installation
* fixed remote install [#325](https://github.com/afragen/github-updater/issues/325)

#### 5.3.0 / 2015-11-25
* fixed parsing of `readme.txt` for donate link
* refactored transient storage resulting in significantly few database calls, more performant.
* moved `{get|set}_transient` functions to `abstract class API`
* fixed settings page saving errors.
* fixed shiny updates [#321](https://github.com/afragen/github-updater/issues/321)
* overhauled of renaming code back to using `upgrader_source_selection` and for WordPress 4.4 adding `$args['hook_extra'] to `upgrader_source_selection` filter. Thanks @dd32!

#### 5.2.0 / 2015-10-14
* fixed [#309](https://github.com/afragen/github-updater/issues/309) for proper GitHub Enterprise endpoints
* added setting for GitHub Enterprise personal access token
* new `function _add_access_token()` for `class GitHub_API`
* update `erusev/parsedown` to current release
* updatede `erusev/parsedown` to current release

#### 5.1.2
* add `upgrader_source_selection` filter back for correct updating of current, active theme.
* fix [#293](https://github.com/afragen/github-updater/issues/293) and [#297](https://github.com/afragen/github-updater/issues/297)
* remove `pre_http_request` filter blocking
* fix javascript for theme rollback - @scarstens
#### 5.1.2 / 2015-09-25
* added `upgrader_source_selection` filter back for correct updating of current, active theme.
* fixed [#293](https://github.com/afragen/github-updater/issues/293) and [#297](https://github.com/afragen/github-updater/issues/297)
* removed `pre_http_request` filter blocking
* fixed javascript for theme rollback - @scarstens
* play nice with current master branch of wp-update-php

#### 5.1.1
#### 5.1.1 / 2015-09-09
* hotfix to comment out `pre_http_request` filter. Updating of plugin doesn't work. I need to re-think this one.

#### 5.1.0
* refactor of Plugin and Theme constructors moving code calling APIs getting remote data to separate functions
* fix [#281](https://github.com/afragen/github-updater/issues/281), removed 'Activate Plugin/Theme' buttons post-install
* fix [#284](https://github.com/afragen/github-updater/issues/284) for GitLab CE/Enterprise install and update
* fix to re-activate plugins after update, doesn't work with branch switching :person_frowning:
* fix to correctly rename plugin/theme on update if installed from upload.
* add filter to `pre_http_response` to bypass certain plugins check using `wp_remote_get` with each page load in GitHub Updater. Bypass is only for 12 hours.
#### 5.1.0 / 2015-09-09
* refactored Plugin and Theme constructors moving code calling APIs getting remote data to separate functions
* fixed [#281](https://github.com/afragen/github-updater/issues/281), removed 'Activate Plugin/Theme' buttons post-install
* fixed [#284](https://github.com/afragen/github-updater/issues/284) for GitLab CE/Enterprise install and update
* fixed to re-activate plugins after update, doesn't work with branch switching :person_frowning:
* fixed to correctly rename plugin/theme on update if installed from upload.
* added filter to `pre_http_response` to bypass certain plugins check using `wp_remote_get` with each page load in GitHub Updater. Bypass is only for 12 hours.
* cosmetic fix to display GitHub Updater as active when activated as mu-plugin
* fix to `theme_api` 'View version details' CSS; better scrolling for changelog info
* fix annoying PHP notice in `vendor/parse-readme.php` when _Upgrade Notice_ malformed
* fix `API::return_repo_type` to add 'type' to array; allows easier instance creation of API classes
* update POT file
* fixed to `theme_api` 'View version details' CSS; better scrolling for changelog info
* fixed annoying PHP notice in `vendor/parse-readme.php` when _Upgrade Notice_ malformed
* fixed `API::return_repo_type` to add 'type' to array; allows easier instance creation of API classes
* updated POT file

#### 5.0.1
* updated to current `erusev/parsedown` release, fixes PHP7 issue
#### 5.0.1 / 2015-08-18
* updated to current `erusev/p``arsedown` release, fixes PHP7 issue
* updated to current `WPupdatePHP/wp-update-php/release-1-1-0` branch

#### 5.0.0
#### 5.0.0 / 2015-08-15
* fix rollback for GitLab themes
* add branch switcher for themes
* escape all printed strings
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,6 @@ Example, `$repo-$tag.zip` where `$repo` is the repository slug and `$tag` is the

**You must tag your releases to use this feature.**

## Deleting Transients

Use the **Clear Transients** button in the `GitHub Updater Settings Page` screen and all the transients will be deleted and the API will be queried again. This may cause timeout issues against the API, especially the GitHub API which only allows 60 unauthenticated calls per hour.

Be careful about refreshing the browser window after this as you may be continually deleting the transients and hitting the API.

## Hosting Plugin in WP.org Repository

If you develop your plugin on GitHub and it also resides in the WP.org repo, the plugin will preferentially pull updates from WP.org if `GitHub Branch: master`. If `GitHub Branch` is anything other than `master` then the update will pull from GitHub. Make sure that the version of your plugin uploaded to WP.org has `GitHub Branch: master`.
Expand All @@ -263,6 +257,12 @@ From the `GitHub Updater Settings Page` there is a tabbed interface for remote i

![Remote Install of Plugin Tab](./assets/screenshot-2.png)

## Refreshing Transients

Use the **Refresh Transients** button in the `GitHub Updater Settings Page` screen and all the transients will be deleted and the API will be queried again. This may cause timeout issues against the API, especially the GitHub API which only allows 60 unauthenticated calls per hour. Please set a Personal GitHub Access Token to avoid these timeouts.

Be careful about refreshing the browser window after this as you may be continually deleting the transients and hitting the API.

## Error Messages

GitHub Updater now reports a small error message on certain pages in the dashboard. The error codes are HTTP status codes. Most often the code will be either 403 or 401. If you don't have an Access Token set for a private GitHub repo you will get a 404 error.
Expand Down
26 changes: 20 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "afragen/github-updater",
"type": "wordpress-plugin",
"keywords": ["wordpress", "plugin", "theme", "updater", "install"],
"keywords": [
"wordpress",
"plugin",
"theme",
"updater",
"install"
],
"license": "GPLv2",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/afragen/github-updater"
}
],
"require": {
"composer/installers": "^1.0",
"php": ">=5.3"
},
"authors": [
{
"name": "Andy Fragen",
Expand All @@ -21,5 +23,17 @@
"role": "Developer"
}
],
"prefer-stable": true
"prefer-stable": true,
"require": {
"composer/installers": "^1.0",
"php": ">=5.3"
},
"autoload": {
"psr-4": {
"Fragen\\GitHub_Updater\\": "src/GitHub_Updater/"
},
"classmap": [
"vendor/"
]
}
}
10 changes: 9 additions & 1 deletion github-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin Name: GitHub Updater
* Plugin URI: https://github.com/afragen/github-updater
* Description: A plugin to automatically update GitHub, Bitbucket, or GitLab hosted plugins and themes. It also allows for remote installation of plugins or themes into WordPress.
* Version: 5.5.0.9
* Version: 5.5.0.20
* Author: Andy Fragen
* License: GNU General Public License v2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -54,6 +54,7 @@
$extra_classes = array(
'Parser' => __DIR__ . '/vendor/class-parser.php',
'Parsedown' => __DIR__ . '/vendor/parsedown/Parsedown.php',
'PAnD' => __DIR__ . '/vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php',
'WPUpdatePHP' => __DIR__ . '/vendor/wp-update-php/src/WPUpdatePhp.php',
);

Expand All @@ -65,3 +66,10 @@
// Instantiate class GitHub_Updater
$instantiate = 'Fragen\\GitHub_Updater\\Base';
new $instantiate;

/**
* Initialize Persist Admin notices Dismissal.
*
* @link https://github.com/collizo4sky/persist-admin-notices-dismissal
*/
add_action( 'admin_init', array( '\PAnD', 'init' ) );
Binary file modified languages/github-updater-pt_PT.mo
Binary file not shown.
Loading

0 comments on commit 85397cd

Please sign in to comment.