Make WordPress Core


Ignore:
Timestamp:
07/28/2011 05:30:18 PM (13 years ago)
Author:
nacin
Message:

Fire _deprecated_argument() for get_adjacent_post()'s crazy excluded_categories 'and' thing. fixes #17673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r18477 r18478  
    11201120            if ( ! is_array( $excluded_categories ) ) {
    11211121                // back-compat, $excluded_categories used to be IDs separated by " and "
    1122                 if ( strpos( $excluded_categories, ' and ' ) !== false )
     1122                if ( strpos( $excluded_categories, ' and ' ) !== false ) {
     1123                    _deprecated_argument( __FUNCTION__, '3.3', sprintf( __( 'Use commas instead of %s to separate excluded categories.' ), "'and'" ) );
    11231124                    $excluded_categories = explode( ' and ', $excluded_categories );
    1124                 else
     1125                } else {
    11251126                    $excluded_categories = explode( ',', $excluded_categories );
     1127                }
    11261128            }
    11271129
Note: See TracChangeset for help on using the changeset viewer.