Upgraded PuC version

This commit is contained in:
2024-07-06 22:06:02 -04:00
parent 9e14d32464
commit 4fbcac1062
121 changed files with 5610 additions and 3565 deletions

View File

@@ -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' );