Add missing version numbers to _deprecated_argument() calls.

Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2010-01-09 10:03:55 +00:00
parent 03ed98ab17
commit bf4a5241e1
11 changed files with 73 additions and 58 deletions

View File

@@ -504,11 +504,13 @@ function get_comments_link() {
* @since 0.71
*
* @param string $deprecated Not Used
* @param bool $deprecated Not Used
* @param bool $deprecated_2 Not Used
*/
function comments_link( $deprecated = '', $deprecated = '' ) {
function comments_link( $deprecated = '', $deprecated_2 = '' ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '0.0' );
_deprecated_argument( __FUNCTION__, '0.72' );
if ( !empty( $deprecated_2 ) )
_deprecated_argument( __FUNCTION__, '1.3' );
echo get_comments_link();
}
@@ -553,7 +555,7 @@ function comments_number( $zero = false, $one = false, $more = false, $deprecate
global $id;
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '0.0' );
_deprecated_argument( __FUNCTION__, '1.3' );
$number = get_comments_number($id);