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:
parent
87c95d40f8
commit
844636bf1c
|
@ -436,7 +436,7 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
if ( null !== $deprecated )
|
if ( null !== $deprecated )
|
||||||
_deprecated_argument( __FUNCTION__, '3.1.0' );
|
_deprecated_argument( __FUNCTION__, '3.1' );
|
||||||
|
|
||||||
$wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
|
$wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ function wp_clear_scheduled_hook( $hook, $args = array() ) {
|
||||||
// Backward compatibility
|
// Backward compatibility
|
||||||
// Previously this function took the arguments as discrete vars rather than an array like the rest of the API
|
// Previously this function took the arguments as discrete vars rather than an array like the rest of the API
|
||||||
if ( !is_array($args) ) {
|
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 );
|
$args = array_slice( func_get_args(), 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 ) {
|
function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false ) {
|
||||||
if ( ! empty( $deprecated ) )
|
if ( ! empty( $deprecated ) )
|
||||||
_deprecated_argument( __FUNCTION__, '3.0.0' );
|
_deprecated_argument( __FUNCTION__, '3.0' );
|
||||||
|
|
||||||
if ( !$post = &get_post( $id ) )
|
if ( !$post = &get_post( $id ) )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -423,7 +423,7 @@ function update_blog_option( $id, $key, $value, $deprecated = null ) {
|
||||||
$id = (int) $id;
|
$id = (int) $id;
|
||||||
|
|
||||||
if ( null !== $deprecated )
|
if ( null !== $deprecated )
|
||||||
_deprecated_argument( __FUNCTION__, '3.1.0' );
|
_deprecated_argument( __FUNCTION__, '3.1' );
|
||||||
|
|
||||||
switch_to_blog($id);
|
switch_to_blog($id);
|
||||||
update_option( $key, $value );
|
update_option( $key, $value );
|
||||||
|
@ -619,7 +619,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
if ( null !== $deprecated )
|
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') ) )
|
if ( !in_array( $pref, array( 'site_id', 'domain', 'path', 'registered', 'last_updated', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id') ) )
|
||||||
return $value;
|
return $value;
|
||||||
|
|
Loading…
Reference in New Issue