Make WordPress Core


Ignore:
Timestamp:
10/08/2006 05:50:21 PM (17 years ago)
Author:
ryan
Message:

Change cron arg passing. Props masquerade. fixes #3169.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cron.php

    r4289 r4362  
    11<?php
    22
    3 function wp_schedule_single_event( $timestamp, $hook ) {
    4     $args = array_slice( func_get_args(), 2 );
     3function wp_schedule_single_event( $timestamp, $hook, $args = array()) {
    54    $crons = _get_cron_array();
    65    $key = md5(serialize($args));
     
    109}
    1110
    12 function wp_schedule_event( $timestamp, $recurrence, $hook ) {
    13     $args = array_slice( func_get_args(), 3 );
     11function wp_schedule_event( $timestamp, $recurrence, $hook, $args = array()) {
    1412    $crons = _get_cron_array();
    1513    $schedules = wp_get_schedules();
     
    2220}
    2321
    24 function wp_reschedule_event( $timestamp, $recurrence, $hook ) {
    25     $args = array_slice( func_get_args(), 3 );
     22function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array()) {
    2623    $crons = _get_cron_array();
    2724    $schedules = wp_get_schedules();
Note: See TracChangeset for help on using the changeset viewer.