Verified Commit eef660af authored by Erick Hitter's avatar Erick Hitter
Browse files

Remove remaining abbreviations derived from old plugin name

parent 59df5c5a
...@@ -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 );
} }
} }
} }
......
...@@ -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 "wpccr_lock_{$lock}"; return "a8ccc_lock_{$lock}";
break; break;
case 'timestamp' : case 'timestamp' :
return "wpccr_lock_ts_{$lock}"; return "a8ccc_lock_ts_{$lock}";
break; break;
} }
......
Supports Markdown
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