WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/29/2013 01:26:31 PM (9 years ago)
Author:
nacin
Message:

Required arguments can't follow optional arguments.

Make required arguments optional in confirm_blog_signup().

Mark arguments as required in _future_post_hook(), the walker method display_element(), get_author_link() (deprecated), and the WP_Widget constructor.

props rlerdorf.
see #24210.

File:
1 edited

Legend:

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

    r24015 r24126  
    47874787 * @param object $post Object type containing the post information
    47884788 */
    4789 function _future_post_hook( $deprecated = '', $post ) {
     4789function _future_post_hook( $deprecated, $post ) {
    47904790    wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
    47914791    wp_schedule_single_event( strtotime( get_gmt_from_date( $post->post_date ) . ' GMT') , 'publish_future_post', array( $post->ID ) );
Note: See TracChangeset for help on using the changeset viewer.