-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BB-3277: Fixes bug where multiple batch jobs would only trigger first…
… job. When multiple batch jobs exist, the AJAX controller was only configured to target the very first batch job. We now pass the requested batch name into each AJAX request ensuring that the correct job is targeted and run.
- Loading branch information
Philip Downer
committed
Nov 20, 2018
1 parent
cd3caf2
commit 9896745
Showing
6 changed files
with
73 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Plugin Name: Ramsey Batch | ||
Plugin URI: https://www.daveramsey.com | ||
Description: Provides a framework and UI for running batch jobs inside of WordPress. | ||
Version: 1.0.1 | ||
Version: 1.1.0 | ||
Author: Philip Downer <[email protected]> | ||
Author URI: https://philipdowner.com | ||
License: GPLv3 | ||
|
@@ -36,6 +36,11 @@ function ramseyBatchDisplayAdminPage() { | |
$page->display(); | ||
} | ||
|
||
add_action('admin_init', function() { | ||
add_action('wp_ajax_' . RB_PLUGIN_SLUG, 'RamseySolutions\RamseyBatch\Controllers\BatchController::runJob' ); | ||
add_action('wp_ajax_' . RB_PLUGIN_SLUG . '-item', 'RamseySolutions\RamseyBatch\Controllers\BatchController::runJobItem'); | ||
}); | ||
|
||
add_action('admin_enqueue_scripts', function() { | ||
BatchController::enqueueScripts(); | ||
}); |