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
594d5419
Commit
594d5419
authored
Dec 04, 2016
by
Erick Hitter
Committed by
GitHub
Dec 04, 2016
Browse files
Merge pull request #20 from Automattic/develop
Table name shouldn't be hardcoded, though Core usually figures it out
parents
2b581213
409a55f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-cron-options-cpt.php
View file @
594d5419
...
...
@@ -345,7 +345,7 @@ class Cron_Options_CPT extends Singleton {
}
else
{
global
$wpdb
;
$wpdb
->
update
(
'
posts
'
,
array
(
'post_status'
=>
self
::
POST_STATUS_COMPLETED
,
),
array
(
'ID'
=>
$job_post_id
,
)
);
$wpdb
->
update
(
$wpdb
->
posts
,
array
(
'post_status'
=>
self
::
POST_STATUS_COMPLETED
,
),
array
(
'ID'
=>
$job_post_id
,
)
);
wp_add_trashed_suffix_to_post_name_for_post
(
$job_post_id
);
$this
->
posts_to_clean
[]
=
$job_post_id
;
}
...
...
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