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
This commit is contained in:
nacin 2010-12-15 11:27:38 +00:00
parent 87c95d40f8
commit 844636bf1c
4 changed files with 5 additions and 5 deletions

View File

@ -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 ) );

View File

@ -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 );
}

View File

@ -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;

View File

@ -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;