Make WordPress Core

Ticket #33963: 33963.patch

File 33963.patch, 834 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/link-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    28742874}
    28752875
    28762876/**
     2877 * Retrieve the url to the uploads directory.
     2878 *
     2879 * @param bool|false $subdir
     2880 *
     2881 * @return string
     2882 */
     2883function upload_url( $subdir = false ) {
     2884        $upload_dir = wp_upload_dir();
     2885
     2886        $url = $upload_dir['baseurl'];
     2887
     2888        if ($subdir) {
     2889                $url .= $upload_dir['subdir'];
     2890        }
     2891
     2892        return $url;
     2893}
     2894
     2895/**
    28772896 * Retrieve a URL within the plugins or mu-plugins directory.
    28782897 *
    28792898 * Defaults to the plugins directory URL if no arguments are supplied.