Commit 895aff58 authored by Kevin Stover's avatar Kevin Stover

Adding more specifics to the SQL statement that updates action meta.

parent b12bed64
Pipeline #396 passed with stage
in 1 minute and 32 seconds
......@@ -337,7 +337,8 @@ class NF_Updates_CacheCollateActions extends NF_Abstracts_RequiredUpdate
// If the key is not blacklisted...
if ( ! in_array( $key, $this->blacklist ) ) {
// Add the value to be updated.
array_push( $meta_values, "WHEN `key` = '{$key}' THEN '" . $this->prepare( $setting ) . "'" );
$action = intval( $action );
array_push( $meta_values, "WHEN `key` = '{$key}' AND `parent_id` = {$action} THEN '" . $this->prepare( $setting ) . "'" );
}
}
$this->limit--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment