Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:47:27 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r6669 r6726  
    554554    else
    555555        $request_type = 'HEAD';
    556        
     556
    557557    $head = "$request_type $file HTTP/1.1\r\nHOST: $host\r\nUser-Agent: WordPress/" . $wp_version . "\r\n\r\n";
    558558
     
    580580                return wp_get_http( $headers['location'], $file_path, ++$red );
    581581        }
    582    
     582
    583583    // make a note of the final location, so the caller can tell if we were redirected or not
    584584    $headers['x-final-location'] = $url;
     
    589589        return $headers;
    590590    }
    591    
     591
    592592    // GET request - fetch and write it to the supplied filename
    593593    $content_length = $headers['content-length'];
     
    602602            break;
    603603    }
    604    
     604
    605605    fclose($out_fp);
    606606    fclose($fp);
     
    948948    global $wpdb;
    949949
    950     // Check cache first.  If options table goes away and we have true cached, oh well. 
     950    // Check cache first.  If options table goes away and we have true cached, oh well.
    951951    if ( wp_cache_get('is_blog_installed') )
    952952        return true;
     
    995995    if ( ! empty( $_REQUEST['_wp_http_referer'] ) )
    996996        return $_REQUEST['_wp_http_referer'];
    997     else if ( ! empty( $_SERVER['HTTP_REFERER'] ) ) 
     997    else if ( ! empty( $_SERVER['HTTP_REFERER'] ) )
    998998        return $_SERVER['HTTP_REFERER'];
    999999    return false;
     
    10691069// return a filename that is sanitized and unique for the given directory
    10701070function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL ) {
    1071    
     1071
    10721072    // separate the filename into a name and extension
    10731073    $info = pathinfo($filename);
    10741074    $ext = $info['extension'];
    10751075    $name = basename($filename, ".{$ext}");
    1076    
     1076
    10771077    // Increment the file number until we have a unique file to save in $dir. Use $override['unique_filename_callback'] if supplied.
    10781078    if ( $unique_filename_callback && function_exists( $unique_filename_callback ) ) {
     
    10961096        $filename = sanitize_title_with_dashes( $filename ) . $ext;
    10971097    }
    1098    
     1098
    10991099    return $filename;
    11001100}
     
    11121112    if ( $upload['error'] !== false )
    11131113        return $upload;
    1114    
     1114
    11151115    $filename = wp_unique_filename( $upload['path'], $name );
    11161116
     
    12261226        $trans['delete']['bookmark']   = array( __( 'Are you sure you want to delete this link: "%s"?' ), 'use_id' );
    12271227        $trans['update']['bookmark']   = array( __( 'Are you sure you want to edit this link: "%s"?' ), 'use_id' );
    1228         $trans['bulk']['bookmarks']    = array( __( 'Are you sure you want to bulk modify links?' ), false ); 
     1228        $trans['bulk']['bookmarks']    = array( __( 'Are you sure you want to bulk modify links?' ), false );
    12291229
    12301230        $trans['add']['page']          = array( __( 'Are you sure you want to add this page?' ), false );
     
    13231323    }
    13241324
    1325     if ( defined( 'WP_SITEURL' ) && '' != WP_SITEURL ) 
    1326         $admin_dir = WP_SITEURL . '/wp-admin/'; 
     1325    if ( defined( 'WP_SITEURL' ) && '' != WP_SITEURL )
     1326        $admin_dir = WP_SITEURL . '/wp-admin/';
    13271327    elseif ( function_exists( 'get_bloginfo' ) && '' != get_bloginfo( 'wpurl' ) )
    1328         $admin_dir = get_bloginfo( 'wpurl' ) . '/wp-admin/'; 
     1328        $admin_dir = get_bloginfo( 'wpurl' ) . '/wp-admin/';
    13291329    elseif ( strpos( $_SERVER['PHP_SELF'], 'wp-admin' ) !== false )
    13301330        $admin_dir = '';
     
    15561556<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    15571557    <title>Database Error</title>
    1558    
     1558
    15591559</head>
    15601560<body>
     
    16131613 * _deprecated_function() - Marks a function as deprecated and informs when it has been used.
    16141614 *
    1615  * There is a hook deprecated_function_run that will be called that can be used to get the backtrace 
     1615 * There is a hook deprecated_function_run that will be called that can be used to get the backtrace
    16161616 * up to what file and function called the deprecated function.
    16171617 *
    16181618 * The current behavior is to trigger an user error if WP_DEBUG is defined and is true.
    1619  * 
     1619 *
    16201620 * This function is to be used in every function in depreceated.php
    16211621 *
     
    16481648 * _deprecated_file() - Marks a file as deprecated and informs when it has been used.
    16491649 *
    1650  * There is a hook deprecated_file_included that will be called that can be used to get the backtrace 
     1650 * There is a hook deprecated_file_included that will be called that can be used to get the backtrace
    16511651 * up to what file and function included the deprecated file.
    16521652 *
    16531653 * The current behavior is to trigger an user error if WP_DEBUG is defined and is true.
    1654  * 
     1654 *
    16551655 * This function is to be used in every file that is depreceated
    16561656 *
Note: See TracChangeset for help on using the changeset viewer.