$ svn diff -r 13239:13240 rubin.starset.net/
Index: rubin.starset.net/wp-includes/post.php
===================================================================
--- rubin.starset.net/wp-includes/post.php (revision 13239)
+++ rubin.starset.net/wp-includes/post.php (revision 13240)
@@ -3930,7 +3930,7 @@
* @param bool $clean_terms optional. Whether to clean terms cache
*/
function clean_attachment_cache($id, $clean_terms = false) {
- global $_wp_suspend_cache_invalidation, $wpdb;
+ global $_wp_suspend_cache_invalidation;
if ( !empty($_wp_suspend_cache_invalidation) )
return;
Index: rubin.starset.net/wp-includes/functions.php
===================================================================
--- rubin.starset.net/wp-includes/functions.php (revision 13239)
+++ rubin.starset.net/wp-includes/functions.php (revision 13240)
@@ -1442,15 +1442,12 @@
/**
* 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 );
Index: rubin.starset.net/wp-includes/link-template.php
===================================================================
--- rubin.starset.net/wp-includes/link-template.php (revision
13239)
+++ rubin.starset.net/wp-includes/link-template.php (revision
13240)
@@ -1076,7 +1076,7 @@
* @return object
*/
function get_boundary_post($in_same_cat = false, $excluded_categories
= '', $start = true) {
- global $post, $wpdb;
+ global $post;
if ( empty($post) || !is_single() || is_attachment() )
return null;
Index: rubin.starset.net/wp-includes/formatting.php
===================================================================
--- rubin.starset.net/wp-includes/formatting.php (revision
13239)
+++ rubin.starset.net/wp-includes/formatting.php (revision
13240)
@@ -1208,11 +1208,8 @@
* @return string Returns a string escaped with slashes.
*/
function addslashes_gpc($gpc) {
- global $wpdb;
-
- if (get_magic_quotes_gpc()) {
+ if ( get_magic_quotes_gpc() )
$gpc = stripslashes($gpc);
- }
return esc_sql($gpc);
}
Index: rubin.starset.net/wp-includes/rss.php
===================================================================
--- rubin.starset.net/wp-includes/rss.php (revision 13239)
+++ rubin.starset.net/wp-includes/rss.php (revision 13240)
@@ -715,7 +715,6 @@
Output: true on sucess
\*=======================================================================*/
function set ($url, $rss) {
- global $wpdb;
$cache_option = 'rss_' . $this->file_name( $url );
set_transient($cache_option, $rss, $this->MAX_AGE);
Index: rubin.starset.net/wp-includes/ms-functions.php
===================================================================
--- rubin.starset.net/wp-includes/ms-functions.php (revision
13239)
+++ rubin.starset.net/wp-includes/ms-functions.php (revision
13240)
@@ -1051,8 +1051,6 @@
}
function get_user_id_from_string( $string ) {
- global $wpdb;
-
$user_id = 0;
if ( is_email( $string ) ) {
$user = get_user_by('email', $string);
The issue is no longer reproducible with rev 14032 of Wordpress trunk.
Thanks!