[buddypress-trac] [BuddyPress Trac] #6212: messages_add_autocomplete_js() uses deprecated scripts
buddypress-trac
noreply at wordpress.org
Wed Feb 11 17:29:01 UTC 2015
#6212: messages_add_autocomplete_js() uses deprecated scripts
-----------------------------------+-----------------------------
Reporter: wpdennis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Messaging | Version: 2.1
Severity: normal | Keywords: dev-feedback
-----------------------------------+-----------------------------
With 2.1 a few scripts where deprecated, like "bp-jquery-autocomplete" and
"bp-jquery-autocomplete-fb" in
[https://buddypress.trac.wordpress.org/browser/tags/2.2.0/src/bp-
core/deprecated/2.1.php#L18 deprecated/2.1.php].
But in [https://buddypress.trac.wordpress.org/browser/tags/2.2.0/src/bp-
messages/bp-messages-cssjs.php#L16 messages_add_autocomplete_js()] these
script are enqueued and an inline script is injected which uses them. In
environments with ''define('BP_IGNORE_DEPRECATED', true);'' this will be
problematic.
Shouldn't ''messages_add_autocomplete_js()'' be deprecated, too?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6212>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list