mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
I18n for custom taxonomies. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -281,7 +281,10 @@ function _wp_ajax_add_hierarchical_term() {
|
||||
}
|
||||
|
||||
ob_start();
|
||||
wp_dropdown_categories( array( 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => sprintf( __('— Parent %s —'), $taxonomy->singular_label ) ) );
|
||||
wp_dropdown_categories( array(
|
||||
'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new'.$taxonomy->name.'_parent', 'orderby' => 'name',
|
||||
'hierarchical' => 1, 'show_option_none' => '— '.$taxonomy->labels->parent_item.' —'
|
||||
) );
|
||||
$sup = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$add['supplemental'] = array( 'newcat_parent' => $sup );
|
||||
|
||||
Reference in New Issue
Block a user