Skip to content

Commit

Permalink
fix: appel de wp-dependency-installer
Browse files Browse the repository at this point in the history
  • Loading branch information
sharevb committed Feb 18, 2023
1 parent 2a483db commit 08d8022
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions amapress-installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Installateur du plugin Amapress
* Plugin URI: https://github.com/comptoirdesappli/amapress-installer
* Description: Installateur du plugin Amapress
* Version: 1.5
* Version: 1.6
* Author: Comptoir des Applis
* Author URI: http://amapress.fr/
* License: License: GPLv2 or later
Expand All @@ -13,7 +13,6 @@
*/

require_once __DIR__ . '/vendor/autoload.php';
WP_Dependency_Installer::instance()->run( __DIR__ );
add_filter(
'wp_dependency_timeout',
function( $timeout, $source ) {
Expand All @@ -22,4 +21,7 @@ function( $timeout, $source ) {
},
10,
2
);
);
add_action( 'plugins_loaded', function() {
WP_Dependency_Installer::instance()->run( __DIR__ );
});

0 comments on commit 08d8022

Please sign in to comment.