Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
9b92d407
Verified
Commit
9b92d407
authored
Dec 04, 2016
by
Erick Hitter
Browse files
Ensure that updated posts have their caches fixed
This mainly impacts the process for marking events completed
parent
519c7326
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-cron-options-cpt.php
View file @
9b92d407
...
...
@@ -300,6 +300,7 @@ class Cron_Options_CPT extends Singleton {
// Create the post, or update an existing entry to run again in the future
if
(
is_int
(
$update_id
)
&&
$update_id
>
0
)
{
$inserted
=
$wpdb
->
update
(
$wpdb
->
posts
,
$job_post
,
array
(
'ID'
=>
$update_id
,
)
);
$this
->
posts_to_clean
[]
=
$update_id
;
}
else
{
$inserted
=
$wpdb
->
insert
(
$wpdb
->
posts
,
$job_post
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment