Make WordPress Core

Ticket #15928: 15928.3.patch

File 15928.3.patch, 824 bytes (added by ryanhellyer, 11 years ago)

Syntax change to match WordPress coding standards

  • wp-includes/functions.php

     
    15561556 * @return array See above for description.
    15571557 */
    15581558function wp_upload_dir( $time = null ) {
    1559         $siteurl = get_option( 'siteurl' );
     1559        $siteurl = get_site_url();
    15601560        $upload_path = trim( get_option( 'upload_path' ) );
    15611561
    15621562        if ( empty( $upload_path ) || 'wp-content/uploads' == $upload_path ) {
     
    15701570
    15711571        if ( !$url = get_option( 'upload_url_path' ) ) {
    15721572                if ( empty($upload_path) || ( 'wp-content/uploads' == $upload_path ) || ( $upload_path == $dir ) )
    1573                         $url = WP_CONTENT_URL . '/uploads';
     1573                        $url = content_url( 'uploads' );
    15741574                else
    15751575                        $url = trailingslashit( $siteurl ) . $upload_path;
    15761576        }