Skip to content

Commit

Permalink
Revert "Update Plugin.php"
Browse files Browse the repository at this point in the history
This reverts commit 21bf60c.
  • Loading branch information
remcotolsma committed Oct 27, 2023
1 parent 21bf60c commit 4afa13b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace Pronamic\WordPress\Pay;

use Composer\InstalledVersions;
use Pronamic\WordPress\Http\Facades\Http;
use Pronamic\WordPress\Money\Money;
use Pronamic\WordPress\Pay\Admin\AdminModule;
Expand Down Expand Up @@ -301,11 +300,12 @@ public function __construct( $args = [] ) {
* Action scheduler.
*
* @link https://actionscheduler.org/
* @link https://github.com/pronamic/wp-pay-core/issues/154
*/
$action_scheduler_path = InstalledVersions::getInstallPath( 'woocommerce/action-scheduler' );
if ( ! \array_key_exists( 'action_scheduler', $args ) ) {
$args['action_scheduler'] = self::$dirname . '/wp-content/plugins/action-scheduler/action-scheduler.php';
}

require_once $action_scheduler_path . '/action-scheduler.php';
require_once $args['action_scheduler'];

/**
* Payment methods.
Expand Down

0 comments on commit 4afa13b

Please sign in to comment.