Deprecated Function Parameters

Please refrain from passing deprecated WordPress function parameters. In case, you need to pass an optional parameter positioned <em>after</em> the deprecated parameter, only ever pass the default value.

Valid: not passing a deprecated parameter.

// First - and only - parameter deprecated. get_the_author();

Invalid: passing a deprecated parameter.

// First - and only - parameter deprecated. get_the_author( <em>$string</em> );

Valid: passing default value for a deprecated parameter.

// Third parameter deprecated in WP 2.3.0. add_option( 'option_name', 123, <em>''</em>, 'yes' );

Invalid: not passing the default value for a deprecated parameter.

// Third parameter deprecated in WP 2.3.0. add_option( 'my_name', 123, <em>'oops'</em>, 'yes' );