[wp-trac] [WordPress Trac] #18518: Don't store the URL in the options object
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 25 20:35:21 UTC 2011
#18518: Don't store the URL in the options object
--------------------------+-----------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
...because it prevents re-using the same instance for different URLs:
{{{
var suggest_args = {
multiple : true,
delimiter : ',',
resultsClass : 'qc-suggest-results',
selectClass : 'qc-suggest-over',
matchClass : 'qc-suggest-match',
};
$( '#ticket-assign input' ).suggest( QC_L10N.ajaxurl + '?action=qc-user-
search', suggest_args );
$( '#ticket-tags input' ).suggest( QC_L10N.ajaxurl + '?action=ajax-tag-
search&tax=post_tag', suggest_args );
}}}
With the above code, both inputs will look for items in the same URL: the
second one.
Attached patch fixes this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18518>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list