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/widgets.php

    r23554 r24126  
    7474     * PHP4 constructor
    7575     */
    76     function WP_Widget( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
     76    function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    7777        WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
    7878    }
     
    9191     *   - height: currently not used but may be needed in the future
    9292     */
    93     function __construct( $id_base = false, $name, $widget_options = array(), $control_options = array() ) {
     93    function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    9494        $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base);
    9595        $this->name = $name;
Note: See TracChangeset for help on using the changeset viewer.