WordPress.org

Make WordPress Core

Changeset 16255


Ignore:
Timestamp:
11/09/2010 10:14:38 AM (9 years ago)
Author:
westi
Message:

Mark the calling of wp_get_recent_posts() with just a count as deprecated - only use in core was from XMLRPC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16251 r16255  
    22552255function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
    22562256
    2257     if ( is_numeric( $args ) )
     2257    if ( is_numeric( $args ) ) {
     2258        _deprecated_argument( __FUNCTION__, '3.1', __('Passing an integer number of posts is deprecated pass an array instead.' ) );
    22582259        $args = array( 'numberposts' => absint( $args ) );
    2259 
     2260    }
     2261   
    22602262    // Set default arguments
    22612263    $defaults = array(
Note: See TracChangeset for help on using the changeset viewer.