Make WordPress Core

Changeset 13240


Ignore:
Timestamp:
02/20/2010 12:50:29 AM (15 years ago)
Author:
dd32
Message:

Remove unused references to global $wpdb

Location:
trunk/wp-includes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r13197 r13240  
    12091209 */
    12101210function addslashes_gpc($gpc) {
    1211     global $wpdb;
    1212 
    1213     if (get_magic_quotes_gpc()) {
     1211    if ( get_magic_quotes_gpc() )
    12141212        $gpc = stripslashes($gpc);
    1215     }
    12161213
    12171214    return esc_sql($gpc);
  • trunk/wp-includes/functions.php

    r13229 r13240  
    14431443 * Walks the array while sanitizing the contents.
    14441444 *
    1445  * @uses $wpdb Used to sanitize values
    14461445 * @since 0.71
    14471446 *
     
    14501449 */
    14511450function add_magic_quotes( $array ) {
    1452     global $wpdb;
    1453 
    14541451    foreach ( (array) $array as $k => $v ) {
    14551452        if ( is_array( $v ) ) {
  • trunk/wp-includes/link-template.php

    r13213 r13240  
    10771077 */
    10781078function get_boundary_post($in_same_cat = false, $excluded_categories = '', $start = true) {
    1079     global $post, $wpdb;
     1079    global $post;
    10801080
    10811081    if ( empty($post) || !is_single() || is_attachment() )
  • trunk/wp-includes/ms-functions.php

    r13209 r13240  
    10521052
    10531053function get_user_id_from_string( $string ) {
    1054     global $wpdb;
    1055 
    10561054    $user_id = 0;
    10571055    if ( is_email( $string ) ) {
  • trunk/wp-includes/post.php

    r13217 r13240  
    39313931 */
    39323932function clean_attachment_cache($id, $clean_terms = false) {
    3933     global $_wp_suspend_cache_invalidation, $wpdb;
     3933    global $_wp_suspend_cache_invalidation;
    39343934
    39353935    if ( !empty($_wp_suspend_cache_invalidation) )
  • trunk/wp-includes/rss.php

    r12822 r13240  
    716716\*=======================================================================*/
    717717    function set ($url, $rss) {
    718         global $wpdb;
    719718        $cache_option = 'rss_' . $this->file_name( $url );
    720719
Note: See TracChangeset for help on using the changeset viewer.