Skip to content

Commit

Permalink
Provide better error message for $args > 191 char
Browse files Browse the repository at this point in the history
When saving an action to the ActionScheduler_DBStore.

Part of #401.
  • Loading branch information
thenbrent committed Dec 19, 2019
1 parent d8d273e commit 13072f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/data-stores/ActionScheduler_DBStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public function init() {
*/
public function save_action( ActionScheduler_Action $action, \DateTime $date = null ) {
try {

$this->validate_action( $action );

/** @var \wpdb $wpdb */
global $wpdb;
$data = [
Expand Down

0 comments on commit 13072f5

Please sign in to comment.