mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-03 19:41:39 +00:00
Make default 'template' argument of the_taxonomies() and get_the_taxonomies() translatable.
props juliobox. fixes #28714. git-svn-id: https://develop.svn.wordpress.org/trunk@28957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3761,7 +3761,8 @@ function the_taxonomies( $args = array() ) {
|
|||||||
'before' => '',
|
'before' => '',
|
||||||
'sep' => ' ',
|
'sep' => ' ',
|
||||||
'after' => '',
|
'after' => '',
|
||||||
'template' => '%s: %l.'
|
/* translators: %s: taxonomy label, %l: list of term links */
|
||||||
|
'template' => __( '%s: %l.' )
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = wp_parse_args( $args, $defaults );
|
$r = wp_parse_args( $args, $defaults );
|
||||||
@@ -3785,7 +3786,8 @@ function get_the_taxonomies( $post = 0, $args = array() ) {
|
|||||||
$post = get_post( $post );
|
$post = get_post( $post );
|
||||||
|
|
||||||
$args = wp_parse_args( $args, array(
|
$args = wp_parse_args( $args, array(
|
||||||
'template' => '%s: %l.',
|
/* translators: %s: taxonomy label, %l: list of term links */
|
||||||
|
'template' => __( '%s: %l.' ),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$taxonomies = array();
|
$taxonomies = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user