Make WordPress Core

Changeset 13599


Ignore:
Timestamp:
03/06/2010 05:57:24 AM (15 years ago)
Author:
dd32
Message:

More whitespace & coding stadards cleanup

File:
1 edited

Legend:

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

    r13598 r13599  
    4949        else if ( isset( $_SERVER['HTTP_X_REWRITE_URL'] ) ) {
    5050            $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
    51         }
    52         else
    53         {
     51        } else {
    5452            // Use ORIG_PATH_INFO if there is no PATH_INFO
    5553            if ( !isset( $_SERVER['PATH_INFO'] ) && isset( $_SERVER['ORIG_PATH_INFO'] ) )
     
    8280    $PHP_SELF = $_SERVER['PHP_SELF'];
    8381    if ( empty( $PHP_SELF ) )
    84         $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( "/(\?.*)?$/",'',$_SERVER["REQUEST_URI"] );
     82        $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( '/(\?.*)?$/', '', $_SERVER["REQUEST_URI"] );
    8583}
    8684
     
    112110 */
    113111function wp_favicon_request() {
    114         if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
    115                 header('Content-Type: image/vnd.microsoft.icon');
    116                 header('Content-Length: 0');
    117                 exit;
    118         }
     112    if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
     113        header('Content-Type: image/vnd.microsoft.icon');
     114        header('Content-Length: 0');
     115        exit;
     116    }
    119117}
    120118
     
    533531function wp_clone( $object ) {
    534532    static $can_clone;
    535     if ( !isset( $can_clone ) ) {
     533    if ( !isset( $can_clone ) )
    536534        $can_clone = version_compare( phpversion(), '5.0', '>=' );
    537     }
     535
    538536    return $can_clone ? clone( $object ) : $object;
    539537}
Note: See TracChangeset for help on using the changeset viewer.