Upgraded PuC version
This commit is contained in:
@@ -35,7 +35,7 @@ if ( ! defined( 'D5AW_PLUGIN_URL' ) )
|
||||
// Includes
|
||||
|
||||
//require_once( 'inc/functions.php' );
|
||||
require 'plugin-update-checker.php';
|
||||
|
||||
|
||||
// Styles and Scripts
|
||||
function register_d5aw_scripts() {
|
||||
@@ -65,15 +65,12 @@ function register_d5aw_scripts() {
|
||||
* plugin-update-checker.php file
|
||||
*
|
||||
*/
|
||||
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
|
||||
'https://github.com/D5code/d5-admin-tools/',
|
||||
__FILE__,
|
||||
'd5-admin-tools'
|
||||
require 'plugin-update-checker-5.4/plugin-update-checker.php';
|
||||
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
|
||||
|
||||
$myUpdateChecker = PucFactory::buildUpdateChecker(
|
||||
'http://24.57.69.148/d5-admin-wp.json',
|
||||
__FILE__, //Full path to the main plugin file or functions.php.
|
||||
'd5-admin-wp'
|
||||
);
|
||||
|
||||
//Optional: If you're using a private repository, specify the access token like this:
|
||||
//$myUpdateChecker->setAuthentication('your-token-here');
|
||||
|
||||
//Optional: Set the branch that contains the stable release.
|
||||
$myUpdateChecker->setBranch( 'master' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user