Make WordPress Core


Ignore:
Timestamp:
10/18/2015 03:34:55 PM (9 years ago)
Author:
DrewAPicture
Message:

Taxonomy: Improve deprecated argument strings for the 'link' type in get_categories() and wp_dropdown_categories().

Props swissspidy, gagan0123.
Fixes #34318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-functions.php

    r34997 r35264  
    4040    // Back compat
    4141    if ( isset($args['type']) && 'link' == $args['type'] ) {
    42         _deprecated_argument( __FUNCTION__, '3.0', '' );
     42        /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */
     43        _deprecated_argument( __FUNCTION__, '3.0',
     44            sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
     45                '<code>type => link</code>',
     46                '<code>taxonomy => link_category</code>'
     47            )
     48        );
    4349        $taxonomy = $args['taxonomy'] = 'link_category';
    4450    }
Note: See TracChangeset for help on using the changeset viewer.