Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
eef660af
Verified
Commit
eef660af
authored
Nov 16, 2016
by
Erick Hitter
Browse files
Remove remaining abbreviations derived from old plugin name
parent
59df5c5a
Changes
2
Show whitespace changes
Inline
Side-by-side
includes/class-internal-events.php
View file @
eef660af
...
@@ -20,28 +20,28 @@ class Internal_Events extends Singleton {
...
@@ -20,28 +20,28 @@ class Internal_Events extends Singleton {
// Internal jobs variables
// Internal jobs variables
$this
->
internal_jobs
=
array
(
$this
->
internal_jobs
=
array
(
array
(
array
(
'schedule'
=>
'
wpccrij
_minute'
,
'schedule'
=>
'
a8c_cron_control
_minute'
,
'action'
=>
'
wpccrij
_force_publish_missed_schedules'
,
'action'
=>
'
a8c_cron_control
_force_publish_missed_schedules'
,
'callback'
=>
'force_publish_missed_schedules'
,
'callback'
=>
'force_publish_missed_schedules'
,
),
),
array
(
array
(
'schedule'
=>
'
wpccrij
_ten_minutes'
,
'schedule'
=>
'
a8c_cron_control
_ten_minutes'
,
'action'
=>
'
wpccrij
_confirm_scheduled_posts'
,
'action'
=>
'
a8c_cron_control
_confirm_scheduled_posts'
,
'callback'
=>
'confirm_scheduled_posts'
,
'callback'
=>
'confirm_scheduled_posts'
,
),
),
array
(
array
(
'schedule'
=>
'daily'
,
'schedule'
=>
'daily'
,
'action'
=>
'
wpccrij
_delete_cron_option'
,
'action'
=>
'
a8c_cron_control
_delete_cron_option'
,
'callback'
=>
'delete_cron_option'
,
'callback'
=>
'delete_cron_option'
,
),
),
);
);
$this
->
internal_jobs_schedules
=
array
(
$this
->
internal_jobs_schedules
=
array
(
'
wpccrij
_minute'
=>
array
(
'
a8c_cron_control
_minute'
=>
array
(
'interval'
=>
1
*
MINUTE_IN_SECONDS
,
'interval'
=>
1
*
MINUTE_IN_SECONDS
,
'display'
=>
__
(
'Cron Control internal job - every minute'
,
'automattic-cron-control'
),
'display'
=>
__
(
'Cron Control internal job - every minute'
,
'automattic-cron-control'
),
),
),
'
wpccrij
_ten_minutes'
=>
array
(
'
a8c_cron_control
_ten_minutes'
=>
array
(
'interval'
=>
10
*
MINUTE_IN_SECONDS
,
'interval'
=>
10
*
MINUTE_IN_SECONDS
,
'display'
=>
__
(
'Cron Control internal job - every 10 minutes'
,
'automattic-cron-control'
),
'display'
=>
__
(
'Cron Control internal job - every 10 minutes'
,
'automattic-cron-control'
),
),
),
...
@@ -99,7 +99,7 @@ class Internal_Events extends Singleton {
...
@@ -99,7 +99,7 @@ class Internal_Events extends Singleton {
foreach
(
$missed_posts
as
$missed_post
)
{
foreach
(
$missed_posts
as
$missed_post
)
{
check_and_publish_future_post
(
$missed_post
);
check_and_publish_future_post
(
$missed_post
);
do_action
(
'
wpccr
_published_post_that_missed_schedule'
,
$missed_post
);
do_action
(
'
a8c_cron_control
_published_post_that_missed_schedule'
,
$missed_post
);
}
}
}
}
}
}
...
@@ -121,12 +121,12 @@ class Internal_Events extends Singleton {
...
@@ -121,12 +121,12 @@ class Internal_Events extends Singleton {
if
(
false
===
$timestamp
)
{
if
(
false
===
$timestamp
)
{
wp_schedule_single_event
(
$gmt_time
,
'publish_future_post'
,
array
(
$future_post
->
ID
)
);
wp_schedule_single_event
(
$gmt_time
,
'publish_future_post'
,
array
(
$future_post
->
ID
)
);
do_action
(
'
wpccr
_publish_scheduled'
,
$future_post
->
ID
);
do_action
(
'
a8c_cron_control
_publish_scheduled'
,
$future_post
->
ID
);
}
elseif
(
(
int
)
$timestamp
!==
$gmt_time
)
{
}
elseif
(
(
int
)
$timestamp
!==
$gmt_time
)
{
wp_clear_scheduled_hook
(
'publish_future_post'
,
array
(
(
int
)
$future_post
->
ID
)
);
wp_clear_scheduled_hook
(
'publish_future_post'
,
array
(
(
int
)
$future_post
->
ID
)
);
wp_schedule_single_event
(
$gmt_time
,
'publish_future_post'
,
array
(
$future_post
->
ID
)
);
wp_schedule_single_event
(
$gmt_time
,
'publish_future_post'
,
array
(
$future_post
->
ID
)
);
do_action
(
'
wpccr
_publish_rescheduled'
,
$future_post
->
ID
);
do_action
(
'
a8c_cron_control
_publish_rescheduled'
,
$future_post
->
ID
);
}
}
}
}
}
}
...
...
includes/class-lock.php
View file @
eef660af
...
@@ -48,11 +48,11 @@ class Lock {
...
@@ -48,11 +48,11 @@ class Lock {
private
static
function
get_key
(
$lock
,
$type
=
'lock'
)
{
private
static
function
get_key
(
$lock
,
$type
=
'lock'
)
{
switch
(
$type
)
{
switch
(
$type
)
{
case
'lock'
:
case
'lock'
:
return
"
wp
cc
r
_lock_
{
$lock
}
"
;
return
"
a8c
cc_lock_
{
$lock
}
"
;
break
;
break
;
case
'timestamp'
:
case
'timestamp'
:
return
"
wp
cc
r
_lock_ts_
{
$lock
}
"
;
return
"
a8c
cc_lock_ts_
{
$lock
}
"
;
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
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