I18N: Make the minimum input length to start searching posts in the "Insert/edit link" modal localizable.

Props Toro_Unit, birgire, miyauchi, swissspidy, ocean90.
Fixes #44662.

git-svn-id: https://develop.svn.wordpress.org/trunk@46988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-12-18 01:13:14 +00:00
parent c8ac42b3dd
commit 38cfdae6e9
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -507,9 +507,10 @@
searchInternalLinks: function() {
var waiting,
search = inputs.search.val() || '';
search = inputs.search.val() || '',
minInputLength = parseInt( wpLinkL10n.minInputLength, 10 ) || 3;
if ( search.length > 2 ) {
if ( search.length >= minInputLength ) {
rivers.recent.hide();
rivers.search.show();