Make WordPress Core

Ticket #44662: 44662.3.patch

File 44662.3.patch, 1.8 KB (added by Toro_Unit, 6 years ago)
  • src/js/_enqueues/lib/link.js

     
    509509                        var waiting,
    510510                                search = inputs.search.val() || '';
    511511
    512                         if ( search.length > 2 ) {
     512                        if ( search.length >= parseInt( wpLinkL10n.minimumWordLengthForSearch, 10 ) ) {
    513513                                rivers.recent.hide();
    514514                                rivers.search.show();
    515515
  • src/wp-includes/script-loader.php

     
    558558        $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
    559559        did_action( 'init' ) && $scripts->localize(
    560560                'wplink', 'wpLinkL10n', array(
    561                         'title'          => __( 'Insert/edit link' ),
    562                         'update'         => __( 'Update' ),
    563                         'save'           => __( 'Add Link' ),
    564                         'noTitle'        => __( '(no title)' ),
    565                         'noMatchesFound' => __( 'No results found.' ),
    566                         'linkSelected'   => __( 'Link selected.' ),
    567                         'linkInserted'   => __( 'Link inserted.' ),
     561                        'title'                        => __( 'Insert/edit link' ),
     562                        'update'                       => __( 'Update' ),
     563                        'save'                         => __( 'Add Link' ),
     564                        'noTitle'                      => __( '(no title)' ),
     565                        'noMatchesFound'               => __( 'No results found.' ),
     566                        'linkSelected'                 => __( 'Link selected.' ),
     567                        'linkInserted'                 => __( 'Link inserted.' ),
     568                        /* translators: Input word length for incremental post search. Start searching from the number. */
     569                        'minimumWordLengthForSearch' => _x( '3', 'minimum input word length for searching internal links' ),
    568570                )
    569571        );
    570572