mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@46988 git-svn-id: http://core.svn.wordpress.org/trunk@46788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6e7080036f
commit
694913d65f
@ -507,9 +507,10 @@
|
|||||||
|
|
||||||
searchInternalLinks: function() {
|
searchInternalLinks: function() {
|
||||||
var waiting,
|
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.recent.hide();
|
||||||
rivers.search.show();
|
rivers.search.show();
|
||||||
|
|
||||||
|
2
wp-includes/js/wplink.min.js
vendored
2
wp-includes/js/wplink.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1504,6 +1504,8 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'noMatchesFound' => __( 'No results found.' ),
|
'noMatchesFound' => __( 'No results found.' ),
|
||||||
'linkSelected' => __( 'Link selected.' ),
|
'linkSelected' => __( 'Link selected.' ),
|
||||||
'linkInserted' => __( 'Link inserted.' ),
|
'linkInserted' => __( 'Link inserted.' ),
|
||||||
|
/* translators: Minimum input length in characters to start searching posts in the "Insert/edit link" modal. */
|
||||||
|
'minInputLength' => (int) _x( '3', 'minimum input length for searching post links' ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46987';
|
$wp_version = '5.4-alpha-46988';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user