Don't use `<strong>` in translatable string in `wp-includes/nav-menu.php`.
Add translator commment. Props ramiy. Fixes #34505. Built from https://develop.svn.wordpress.org/trunk@35452 git-svn-id: http://core.svn.wordpress.org/trunk@35416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1389f731b7
commit
55a7ba2ec7
|
@ -277,15 +277,27 @@ function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) {
|
||||||
! is_wp_error( $_possible_existing ) &&
|
! is_wp_error( $_possible_existing ) &&
|
||||||
isset( $_possible_existing->term_id ) &&
|
isset( $_possible_existing->term_id ) &&
|
||||||
$_possible_existing->term_id != $menu_id
|
$_possible_existing->term_id != $menu_id
|
||||||
)
|
) {
|
||||||
return new WP_Error( 'menu_exists', sprintf( __('The menu name <strong>%s</strong> conflicts with another menu name. Please try another.'), esc_html( $menu_data['menu-name'] ) ) );
|
return new WP_Error( 'menu_exists',
|
||||||
|
/* translators: %s: menu name */
|
||||||
|
sprintf( __( 'The menu name %s conflicts with another menu name. Please try another.' ),
|
||||||
|
'<strong>' . esc_html( $menu_data['menu-name'] ) . '</strong>'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// menu doesn't already exist, so create a new menu
|
// menu doesn't already exist, so create a new menu
|
||||||
if ( ! $_menu || is_wp_error( $_menu ) ) {
|
if ( ! $_menu || is_wp_error( $_menu ) ) {
|
||||||
$menu_exists = get_term_by( 'name', $menu_data['menu-name'], 'nav_menu' );
|
$menu_exists = get_term_by( 'name', $menu_data['menu-name'], 'nav_menu' );
|
||||||
|
|
||||||
if ( $menu_exists )
|
if ( $menu_exists ) {
|
||||||
return new WP_Error( 'menu_exists', sprintf( __('The menu name <strong>%s</strong> conflicts with another menu name. Please try another.'), esc_html( $menu_data['menu-name'] ) ) );
|
return new WP_Error( 'menu_exists',
|
||||||
|
/* translators: %s: menu name */
|
||||||
|
sprintf( __( 'The menu name %s conflicts with another menu name. Please try another.' ),
|
||||||
|
'<strong>' . esc_html( $menu_data['menu-name'] ) . '</strong>'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$_menu = wp_insert_term( $menu_data['menu-name'], 'nav_menu', $args );
|
$_menu = wp_insert_term( $menu_data['menu-name'], 'nav_menu', $args );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta2-35451';
|
$wp_version = '4.4-beta2-35452';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue