mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Remove unused references to global $wpdb
git-svn-id: https://develop.svn.wordpress.org/trunk@13240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1442,15 +1442,12 @@ function remove_query_arg( $key, $query=false ) {
|
||||
/**
|
||||
* Walks the array while sanitizing the contents.
|
||||
*
|
||||
* @uses $wpdb Used to sanitize values
|
||||
* @since 0.71
|
||||
*
|
||||
* @param array $array Array to used to walk while sanitizing contents.
|
||||
* @return array Sanitized $array.
|
||||
*/
|
||||
function add_magic_quotes( $array ) {
|
||||
global $wpdb;
|
||||
|
||||
foreach ( (array) $array as $k => $v ) {
|
||||
if ( is_array( $v ) ) {
|
||||
$array[$k] = add_magic_quotes( $v );
|
||||
|
||||
Reference in New Issue
Block a user