Make WordPress Core


Ignore:
Timestamp:
04/29/2013 01:26:31 PM (11 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/deprecated.php

    r23554 r24126  
    795795 * @see get_author_posts_url()
    796796 *
    797  * @param bool $echo Optional.
    798  * @param int $author_id Required.
     797 * @param bool $echo
     798 * @param int $author_id
    799799 * @param string $author_nicename Optional.
    800800 * @return string|null
    801801 */
    802 function get_author_link($echo = false, $author_id, $author_nicename = '') {
     802function get_author_link($echo, $author_id, $author_nicename = '') {
    803803    _deprecated_function( __FUNCTION__, '2.1', 'get_author_posts_url()' );
    804804
Note: See TracChangeset for help on using the changeset viewer.