plugin updates
This commit is contained in:
@@ -319,7 +319,7 @@
|
||||
$selected = 'selected';
|
||||
}
|
||||
|
||||
$html += '<option ' + $selected + ' value="0">No Parent</option>';
|
||||
$html += '<option ' + $selected + ' value="0">' + wp.i18n._x( 'No Parent', 'menu item without a parent in navigation menu' ) + '</option>';
|
||||
|
||||
$.each( menuItems, function() {
|
||||
var menuItem = $(this),
|
||||
@@ -364,7 +364,13 @@
|
||||
if ( i == itemPosition ) {
|
||||
$selected = 'selected';
|
||||
}
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + i + ' of ' + totalMenuItems + '</option>';
|
||||
var itemString = wp.i18n.sprintf(
|
||||
/* translators: 1: The current menu item number, 2: The total number of menu items. */
|
||||
wp.i18n._x( '%1$s of %2$s', 'part of a total number of menu items' ),
|
||||
i,
|
||||
totalMenuItems
|
||||
);
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + itemString + '</option>';
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -380,7 +386,13 @@
|
||||
if ( i == itemPosition ) {
|
||||
$selected = 'selected';
|
||||
}
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + i + ' of ' + totalSubMenuItems + '</option>';
|
||||
var submenuString = wp.i18n.sprintf(
|
||||
/* translators: 1: The current submenu item number, 2: The total number of submenu items. */
|
||||
wp.i18n._x( '%1$s of %2$s', 'part of a total number of menu items' ),
|
||||
i,
|
||||
totalSubMenuItems
|
||||
);
|
||||
$html += '<option ' + $selected + ' value="' + i + '">' + submenuString + '</option>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
wp/wp-admin/js/nav-menu.min.js
vendored
2
wp/wp-admin/js/nav-menu.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -659,8 +659,10 @@ jQuery( function($) {
|
||||
'li.popular-category > label input[type="checkbox"]',
|
||||
function() {
|
||||
var t = $(this), c = t.is(':checked'), id = t.val();
|
||||
if ( id && t.parents('#taxonomy-'+taxonomy).length )
|
||||
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
|
||||
if ( id && t.parents('#taxonomy-'+taxonomy).length ) {
|
||||
$('input[id^="in-' + taxonomy + '-' + id + '"]').prop('checked', c);
|
||||
$('input#in-popular-' + taxonomy + '-' + id).prop('checked', c);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
2
wp/wp-admin/js/post.min.js
vendored
2
wp/wp-admin/js/post.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user