[wp-trac] [WordPress Trac] #39691: wpLink autocomplete search	improvement
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Jun 27 21:56:25 UTC 2017
    
    
  
#39691: wpLink autocomplete search improvement
-------------------------------+------------------------------
 Reporter:  enrico.sorcinelli  |       Owner:  adamsilverstein
     Type:  enhancement        |      Status:  assigned
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Editor             |     Version:  4.8
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Comment (by enrico.sorcinelli):
 @adamsilverstein I just updated the patch according to your suggestions.
 Yes, this patch will avoid to send request to server by typing additional
 spaces to the current query. Also, based on DB collate setting, it make
 the queries lowercase (this can reduce also requests to server and/or any
 server caching using query as key).
 The `normalizeQuery` function doesn't strictly related to TinyMCE plugins,
 so I added a new one unit test file ''tests/qunit/wp-
 includes/js/wplink.js'' where you could see some normalization examples.
 And finally, yes, the function can be added to the wp namespace (like
 `wp.api.utils` for example) if you think it appropriate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39691#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list