mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Better better message.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a62fb6cb5
commit
faa53fa488
@ -2255,7 +2255,7 @@ function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array(
|
||||
function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
|
||||
|
||||
if ( is_numeric( $args ) ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.1', __('Passing an integer number of posts is deprecated you should pass an array or arguments instead.' ) );
|
||||
_deprecated_argument( __FUNCTION__, '3.1', __( 'Passing an integer number of posts is deprecated. Pass an array of arguments instead.' ) );
|
||||
$args = array( 'numberposts' => absint( $args ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user