public/wordpress/wp-content/plugins/backupbuddy/classes/core.php
/* schedule_event()
	 *
	 * API to wp_schedule_event() that also verifies that the schedule actually got created in WordPRess.
	 * Sometimes the database rejects this update so we need to do actual verification.
	 *
	 * @return	boolean			True on verified schedule success, else false.
	 */
schedule_event()
API to wp_schedule_event() that also verifies that the schedule actually got created in WordPRess.
Sometimes the database rejects this update so we need to do actual verification.

@return      boolean                 True on verified schedule success, else false.
schedule_event () API to wp_schedule_event () that also verifies that the schedule actually got created in WordPRess . Sometimes the database rejects this update so we need to do actual verification . @return boolean True on verified schedule success else false .
public static function schedule_event( $time, $period, $method, $args ) {
		$tag = 'backupbuddy_cron';
		$schedule_result = wp_schedule_event( $time, $period, $tag, array( $method, $args ) );
		if ( FALSE === $schedule_result ) {
			sleep( backupbuddy_constants::SCHEDULE_RETRY_WAIT );
			$schedule_result = wp_schedule_event( $time, $period, $tag, array( $method, $args ) );
		}
		if ( FALSE === $schedule_result ) {
		}
		$next_scheduled = wp_next_scheduled( $tag, array( $method, $args ) );
		if ( FALSE === $next_scheduled ) {
			sleep( backupbuddy_constants::SCHEDULE_RETRY_WAIT );
			$next_scheduled = wp_next_scheduled( $tag, array( $method, $args ) );
		}
		if ( FALSE === $next_scheduled ) {
			pb_backupbuddy::status( 'error', 'Error #82938329: This may not be a fatal error. Ignore if backup proceeds without other errors. WordPress reported success scheduling BUT wp_next_scheduled() could NOT confirm schedule existance of method `' . $method . '`. A plugin may have prevented it (eg caching) or it is already scheduled (but could not be detected).' );
			return false;
		}
		return true;
	}
public static function schedule_event ( $ time , $ period , $ method , $ args ) { $ tag = 'backupbuddy_cron' ; $ schedule_result = wp_schedule_event ( $ time , $ period , $ tag , array ( $ method , $ args ) ) ; if ( FALSE === $ schedule_result ) { sleep ( backupbuddy_constants :: SCHEDULE_RETRY_WAIT ) ; $ schedule_result = wp_schedule_event ( $ time , $ period , $ tag , array ( $ method , $ args ) ) ; } if ( FALSE === $ schedule_result ) { } $ next_scheduled = wp_next_scheduled ( $ tag , array ( $ method , $ args ) ) ; if ( FALSE === $ next_scheduled ) { sleep ( backupbuddy_constants :: SCHEDULE_RETRY_WAIT ) ; $ next_scheduled = wp_next_scheduled ( $ tag , array ( $ method , $ args ) ) ; } if ( FALSE === $ next_scheduled ) { pb_backupbuddy :: status ( 'error' , 'Error #82938329: This may not be a fatal error. Ignore if backup proceeds without other errors. WordPress reported success scheduling BUT wp_next_scheduled() could NOT confirm schedule existance of method `' . $ method . '`. A plugin may have prevented it (eg caching) or it is already scheduled (but could not be detected).' ) ; return false ; } return true ; }
schedule_event()
 API to wp_schedule_event() that also verifies that the schedule actually got created in WordPRess.
schedule_event () API to wp_schedule_event () that also verifies that the schedule actually got created in WordPRess .
// If failed, sleep 1 then try again. //pb_backupbuddy::status( 'error', 'Warning #83928234: This may not be a fatal error. Ignore if backup proceeds without other errors. Unable to create schedule as wp_schedule_event() returned false. A plugin may have prevented it or it is already scheduled.' ); //return false; // If failed, sleep 1 then try again.