diff --git a/wp-includes/js/jquery/suggest.dev.js b/wp-includes/js/jquery/suggest.dev.js
index 7f46cbc..2c775e4 100644
|
a
|
b
|
|
| 14 | 14 | |
| 15 | 15 | (function($) { |
| 16 | 16 | |
| 17 | | $.suggest = function(input, options) { |
| | 17 | $.suggest = function(input, source, options) { |
| 18 | 18 | var $input, $results, timeout, prevLength, cache, cacheSize; |
| 19 | 19 | |
| 20 | 20 | $input = $(input).attr("autocomplete", "off"); |
| 21 | | $results = $(document.createElement("ul")); |
| | 21 | $results = $('<ul>'); |
| 22 | 22 | |
| 23 | 23 | timeout = false; // hold timeout ID for suggestion results to appear |
| 24 | 24 | prevLength = 0; // last recorded length of $input.val() |
| … |
… |
|
| 133 | 133 | |
| 134 | 134 | } else { |
| 135 | 135 | |
| 136 | | $.get(options.source, {q: q}, function(txt) { |
| | 136 | $.get(source, {q: q}, function(txt) { |
| 137 | 137 | |
| 138 | 138 | $results.hide(); |
| 139 | 139 | |
| … |
… |
|
| 309 | 309 | options = options || {}; |
| 310 | 310 | options.multiple = options.multiple || false; |
| 311 | 311 | options.multipleSep = options.multipleSep || ", "; |
| 312 | | options.source = source; |
| 313 | 312 | options.delay = options.delay || 100; |
| 314 | 313 | options.resultsClass = options.resultsClass || 'ac_results'; |
| 315 | 314 | options.selectClass = options.selectClass || 'ac_over'; |
| … |
… |
|
| 320 | 319 | options.maxCacheSize = options.maxCacheSize || 65536; |
| 321 | 320 | |
| 322 | 321 | this.each(function() { |
| 323 | | new $.suggest(this, options); |
| | 322 | new $.suggest(this, source, options); |
| 324 | 323 | }); |
| 325 | 324 | |
| 326 | 325 | return this; |
| 327 | 326 | |
| 328 | 327 | }; |
| 329 | 328 | |
| 330 | | })(jQuery); |
| 331 | | No newline at end of file |
| | 329 | })(jQuery); |