IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 2874 | 2874 | } |
| 2875 | 2875 | |
| 2876 | 2876 | /** |
| | 2877 | * Retrieve the url to the uploads directory. |
| | 2878 | * |
| | 2879 | * @param bool|false $subdir |
| | 2880 | * |
| | 2881 | * @return string |
| | 2882 | */ |
| | 2883 | function 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 | /** |
| 2877 | 2896 | * Retrieve a URL within the plugins or mu-plugins directory. |
| 2878 | 2897 | * |
| 2879 | 2898 | * Defaults to the plugins directory URL if no arguments are supplied. |