[buddypress-trac] [BuddyPress Trac] #5701: like_escape() is deprecated as of WP 4.0
buddypress-trac
noreply at wordpress.org
Thu Jun 19 01:36:58 UTC 2014
#5701: like_escape() is deprecated as of WP 4.0
--------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.1
Component: Core | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"8541"]:
{{{
#!CommitTicketReference repository="" revision="8541"
Refactor all uses of like_escape() to use bp_esc_like()
WordPress 4.0 will deprecate like_escape(), due to a history of
inconsistent
documentation and usage. Its replacement is a new method,
$wpdb->esc_like(),
which will be available only in WP 4.0. For this reason, and because the
return value of $wpdb->esc_like() will not always be identical to that of
like_escape(), BP cannot do a straight swap of the old function for the
new
one. Instead, we introduce a wrapper function that uses the core method if
available, and otherwise reproduces the logic of that method (for earlier
versions of WordPress).
Fixes #5701
slightly different syntax in some cases
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5701#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list