buddypress/tests/testcases
Boone B Gorges 449883375c Use esc_sql() instead of $wpdb->escape() throughout
WordPress 3.6 deprecated the use of $wpdb->escape() for sanitizing SQL
query fragments, in favor of the rewritten esc_sql(). This changeset
makes the appropriate changes throughout BuddyPress.

In a few places, this changeset also removes redundant sanitization, in
particular when using wp_parse_id_list().

Also adds a unit test for a touched method (BP_User_Query, when using
the 'exclude' parameter).

Fixes #5100

Props needle

git-svn-id: https://buddypress.svn.wordpress.org/branches/1.8@7337 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2013-08-05 14:41:51 +00:00
..
activity Enforce DISTINCT in BP_Activity_Activity::get() queries 2013-07-27 18:09:57 +00:00
admin In BP_UnitTestCase::create_user(), default to last_activity one year ago 2013-06-07 11:16:17 +00:00
blogs In blogs tests, reset current user after testcases 2013-06-07 11:22:26 +00:00
core Use esc_sql() instead of $wpdb->escape() throughout 2013-08-05 14:41:51 +00:00
friends Use $this->set_current_user() instead of wp_set_current_user() throughout tests 2013-05-09 13:19:50 +00:00
groups Define BP_Group_Extension screen callbacks non-statically 2013-08-01 00:06:38 +00:00
members Use strict type checking when setting default 'include' value in BP_User_Query 2013-06-25 01:18:24 +00:00
routing In test suite, factory->activity->create() should return an id, not an object 2013-05-09 14:11:52 +00:00
url Fixes test_bp_core_ajax_url() for new multisite unit test global manipulation 2013-05-13 14:25:08 +00:00