IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 3157 | 3157 | } |
| 3158 | 3158 | |
| 3159 | 3159 | /** |
| | 3160 | * Retrieve the url to the uploads directory. |
| | 3161 | * |
| | 3162 | * @since 4.5.0 |
| | 3163 | * |
| | 3164 | * @param bool|false $subdir |
| | 3165 | * |
| | 3166 | * @return string |
| | 3167 | */ |
| | 3168 | function upload_url( $subdir = false ) { |
| | 3169 | $upload_dir = wp_upload_dir(); |
| | 3170 | |
| | 3171 | if ( $subdir ) { |
| | 3172 | $upload_dir['baseurl'] .= $upload_dir['subdir']; |
| | 3173 | } |
| | 3174 | |
| | 3175 | return $upload_dir['baseurl']; |
| | 3176 | } |
| | 3177 | |
| | 3178 | /** |
| 3160 | 3179 | * Retrieve a URL within the plugins or mu-plugins directory. |
| 3161 | 3180 | * |
| 3162 | 3181 | * Defaults to the plugins directory URL if no arguments are supplied. |