From 844636bf1c31ab9db603dcef6427ce9269a35142 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 15 Dec 2010 11:27:38 +0000 Subject: [PATCH] Don't show extra .0 in _deprecated_argument calls. They should appear in @since docs though. git-svn-id: http://svn.automattic.com/wordpress/trunk@16938 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ms.php | 2 +- wp-includes/cron.php | 2 +- wp-includes/link-template.php | 2 +- wp-includes/ms-blogs.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 7fc7c51c9..5c6400bf5 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -436,7 +436,7 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) { global $wpdb; if ( null !== $deprecated ) - _deprecated_argument( __FUNCTION__, '3.1.0' ); + _deprecated_argument( __FUNCTION__, '3.1' ); $wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) ); diff --git a/wp-includes/cron.php b/wp-includes/cron.php index c8261d8da..b7d04f2a2 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -156,7 +156,7 @@ function wp_clear_scheduled_hook( $hook, $args = array() ) { // Backward compatibility // Previously this function took the arguments as discrete vars rather than an array like the rest of the API if ( !is_array($args) ) { - _deprecated_argument( __FUNCTION__, '3.0.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); + _deprecated_argument( __FUNCTION__, '3.0', __('This argument has changed to an array to match the behavior of the other cron functions.') ); $args = array_slice( func_get_args(), 1 ); } diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index e6060d9bf..eef35ea65 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -950,7 +950,7 @@ function edit_post_link( $link = null, $before = '', $after = '', $id = 0 ) { */ function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) { if ( ! empty( $deprecated ) ) - _deprecated_argument( __FUNCTION__, '3.0.0' ); + _deprecated_argument( __FUNCTION__, '3.0' ); if ( !$post = &get_post( $id ) ) return; diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 9c149be53..0deca99ad 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -423,7 +423,7 @@ function update_blog_option( $id, $key, $value, $deprecated = null ) { $id = (int) $id; if ( null !== $deprecated ) - _deprecated_argument( __FUNCTION__, '3.1.0' ); + _deprecated_argument( __FUNCTION__, '3.1' ); switch_to_blog($id); update_option( $key, $value ); @@ -619,7 +619,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) { global $wpdb; if ( null !== $deprecated ) - _deprecated_argument( __FUNCTION__, '3.1.0' ); + _deprecated_argument( __FUNCTION__, '3.1' ); if ( !in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) ) return $value;