Changeset 7130 for trunk/wp-includes/post.php
- Timestamp:
- 03/02/2008 08:17:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r7109 r7130 1429 1429 * check_and_publish_future_post() - check to make sure post has correct status before 1430 1430 * passing it on to be published. Invoked by cron 'publish_future_post' event 1431 * This safeguard prevents cron from publishing drafts, etc. 1432 * 1431 * This safeguard prevents cron from publishing drafts, etc. 1432 * 1433 1433 * {@internal Missing Long Description}} 1434 1434 * … … 1442 1442 */ 1443 1443 function check_and_publish_future_post($post_id) { 1444 1444 1445 1445 $post = get_post($post_id); 1446 1446 … … 1451 1451 return; 1452 1452 1453 return wp_publish_post($post_id); 1453 return wp_publish_post($post_id); 1454 1454 } 1455 1455 … … 2932 2932 if ( !empty($_post->ancestors) ) 2933 2933 return; 2934 2934 2935 2935 $_post->ancestors = array(); 2936 2936
Note: See TracChangeset
for help on using the changeset viewer.