Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-files.php

    r42343 r47122  
    4242}
    4343
    44 header( 'Content-Type: ' . $mimetype ); // always send this
     44header( 'Content-Type: ' . $mimetype ); // Always send this.
    4545if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) ) {
    4646    header( 'Content-Length: ' . filesize( $file ) );
    4747}
    4848
    49 // Optional support for X-Sendfile and X-Accel-Redirect
     49// Optional support for X-Sendfile and X-Accel-Redirect.
    5050if ( WPMU_ACCEL_REDIRECT ) {
    5151    header( 'X-Accel-Redirect: ' . str_replace( WP_CONTENT_DIR, '', $file ) );
     
    6262header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + 100000000 ) . ' GMT' );
    6363
    64 // Support for Conditional GET - use stripslashes to avoid formatting.php dependency
     64// Support for conditional GET - use stripslashes() to avoid formatting.php dependency.
    6565$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false;
    6666
     
    7070
    7171$client_last_modified = trim( $_SERVER['HTTP_IF_MODIFIED_SINCE'] );
    72 // If string is empty, return 0. If not, attempt to parse into a timestamp
     72// If string is empty, return 0. If not, attempt to parse into a timestamp.
    7373$client_modified_timestamp = $client_last_modified ? strtotime( $client_last_modified ) : 0;
    7474
     
    8484}
    8585
    86 // If we made it this far, just serve the file
     86// If we made it this far, just serve the file.
    8787readfile( $file );
    8888flush();
Note: See TracChangeset for help on using the changeset viewer.