Make WordPress Core

Changeset 4077 for trunk/wp-cron.php


Ignore:
Timestamp:
08/07/2006 03:50:55 AM (19 years ago)
Author:
ryan
Message:

Rework wp_publish_post() to use wp_update_post() again while turning off filters. Clear the cron schedule for a post when the post timestamp is updated. #2715 #2737

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-cron.php

    r3636 r4077  
    88
    99$crons = get_option('cron');
    10 if (!is_array($crons) || array_shift(array_keys($crons)) > time())
     10$keys = array_keys($crons);
     11if (!is_array($crons) || $keys[0] > time())
    1112    return;
    1213foreach ($crons as $timestamp => $cronhooks) {
Note: See TracChangeset for help on using the changeset viewer.