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-template.php

    r35140 r35264  
    374374    // Back compat.
    375375    if ( isset( $args['type'] ) && 'link' == $args['type'] ) {
    376         _deprecated_argument( __FUNCTION__, '3.0', '' );
     376        /* translators: 1: "type => link", 2: "taxonomy => link_category" alternative */
     377        _deprecated_argument( __FUNCTION__, '3.0',
     378            sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
     379                '<code>type => link</code>',
     380                '<code>taxonomy => link_category</code>'
     381            )
     382        );
    377383        $args['taxonomy'] = 'link_category';
    378384    }
Note: See TracChangeset for help on using the changeset viewer.