Changeset 1663462
- Timestamp:
- 05/23/2017 09:34:05 PM (9 years ago)
- Location:
- blogdog
- Files:
-
- 4 edited
- 1 copied
-
tags/5.6.8 (copied) (copied from blogdog/trunk)
-
tags/5.6.8/blogdog.php (modified) (4 diffs)
-
tags/5.6.8/readme.txt (modified) (1 diff)
-
trunk/blogdog.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
blogdog/tags/5.6.8/blogdog.php
r1654660 r1663462 4 4 Plugin URI: https://reblogdog.com 5 5 Description: Add automated real estate content to your website. We publish an SEO optimized blog post for you everyday. 6 Version: 5.6. 86 Version: 5.6.9 7 7 Author: reblogdog 8 8 Author URI: https://reblogdog.com … … 28 28 29 29 if ( ! defined( 'BLOGDOG_PLUGIN_VERSION' ) ) 30 define( 'BLOGDOG_PLUGIN_VERSION', '5.6. 8' );30 define( 'BLOGDOG_PLUGIN_VERSION', '5.6.9' ); 31 31 32 32 /** … … 146 146 147 147 add_action( 'rest_api_init', array( $this, 'register_route' ) ); 148 149 /** 150 * Check Event Schedule 151 * 152 * @since 5.6.9 153 */ 154 155 add_action( 'check_event_schedule', array( $this, 'check_event_schedule' ), 10, 1 ); 156 157 /** 158 * Check Event Schedule 159 * 160 * @since 5.6.9 161 */ 162 163 add_action( 'check_event_schedule', array( $this, 'check_event_schedule' ), 10, 1 ); 148 164 149 165 } … … 386 402 } 387 403 404 /** @see blogdog::check_event_schedule( $post_id ) */ 405 do_action( 'check_event_schedule', $post_id ); 406 388 407 return; 408 } 409 410 /** 411 * Check Event Schedule 412 * 413 * Check to ensure the wp_cron event has been scheduled. 414 * 415 * @since 5.6.9 416 * 417 * @params int $post_id The ID the post the event will act on. 418 */ 419 420 public function check_event_schedule( $post_id ) { 421 422 if( 423 ! wp_next_scheduled( 'publish_future_post', array( $post_id ) ) 424 && 425 ! wp_next_scheduled( 'future_to_publish', array( $post_id ) ) 426 ) { 427 428 /** We schedule the post to publish within a 4 hour window */ 429 wp_schedule_single_event( 430 ( rand ( 0, 10800 ) + time() ), 431 'publish_future_post', 432 array( $post_id ) 433 ); 434 435 } 436 389 437 } 390 438 -
blogdog/tags/5.6.8/readme.txt
r1654660 r1663462 64 64 65 65 66 = 5.6.9 = 67 68 * Add functionality to check that posts are scheduled correcrly. 69 66 70 = 5.6.8 = 67 71 -
blogdog/trunk/blogdog.php
r1654660 r1663462 4 4 Plugin URI: https://reblogdog.com 5 5 Description: Add automated real estate content to your website. We publish an SEO optimized blog post for you everyday. 6 Version: 5.6. 86 Version: 5.6.9 7 7 Author: reblogdog 8 8 Author URI: https://reblogdog.com … … 28 28 29 29 if ( ! defined( 'BLOGDOG_PLUGIN_VERSION' ) ) 30 define( 'BLOGDOG_PLUGIN_VERSION', '5.6. 8' );30 define( 'BLOGDOG_PLUGIN_VERSION', '5.6.9' ); 31 31 32 32 /** … … 146 146 147 147 add_action( 'rest_api_init', array( $this, 'register_route' ) ); 148 149 /** 150 * Check Event Schedule 151 * 152 * @since 5.6.9 153 */ 154 155 add_action( 'check_event_schedule', array( $this, 'check_event_schedule' ), 10, 1 ); 156 157 /** 158 * Check Event Schedule 159 * 160 * @since 5.6.9 161 */ 162 163 add_action( 'check_event_schedule', array( $this, 'check_event_schedule' ), 10, 1 ); 148 164 149 165 } … … 386 402 } 387 403 404 /** @see blogdog::check_event_schedule( $post_id ) */ 405 do_action( 'check_event_schedule', $post_id ); 406 388 407 return; 408 } 409 410 /** 411 * Check Event Schedule 412 * 413 * Check to ensure the wp_cron event has been scheduled. 414 * 415 * @since 5.6.9 416 * 417 * @params int $post_id The ID the post the event will act on. 418 */ 419 420 public function check_event_schedule( $post_id ) { 421 422 if( 423 ! wp_next_scheduled( 'publish_future_post', array( $post_id ) ) 424 && 425 ! wp_next_scheduled( 'future_to_publish', array( $post_id ) ) 426 ) { 427 428 /** We schedule the post to publish within a 4 hour window */ 429 wp_schedule_single_event( 430 ( rand ( 0, 10800 ) + time() ), 431 'publish_future_post', 432 array( $post_id ) 433 ); 434 435 } 436 389 437 } 390 438 -
blogdog/trunk/readme.txt
r1654660 r1663462 64 64 65 65 66 = 5.6.9 = 67 68 * Add functionality to check that posts are scheduled correcrly. 69 66 70 = 5.6.8 = 67 71
Note: See TracChangeset
for help on using the changeset viewer.