Make WordPress Core

Changeset 33 in tests for wp-testcase/test_includes_post.php


Ignore:
Timestamp:
09/24/2007 11:21:56 PM (19 years ago)
Author:
tellyworth
Message:

work around wp/mu incompatibility in future post arg types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_post.php

    r14 r33  
    1717        // helper function: return the timestamp(s) of cron jobs for the specified hook and post
    1818        function _next_schedule_for_post($hook, $id) {
    19                 return wp_next_scheduled('publish_future_post', array(0=>strval($id)));
     19                if (TEST_MU)
     20                        return wp_next_scheduled('publish_future_post', array(0=>intval($id)));
     21                else
     22                        return wp_next_scheduled('publish_future_post', array(0=>strval($id)));
    2023        }
    2124
Note: See TracChangeset for help on using the changeset viewer.