diff --git src/wp-includes/media.php src/wp-includes/media.php
index fc69bdc..6072b35 100644
|
|
function wp_get_attachment_image_url( $attachment_id, $size = 'thumbnail', $icon |
865 | 865 | } |
866 | 866 | |
867 | 867 | /** |
868 | | * Private, do not use |
| 868 | * Get the base URL of the uploads directory. |
| 869 | * |
| 870 | * @since 4.4.0 |
| 871 | * @access private |
| 872 | * |
| 873 | * @return string The base URL. |
869 | 874 | */ |
870 | 875 | function _wp_upload_dir_baseurl() { |
871 | 876 | static $baseurl = null; |
… |
… |
function _wp_upload_dir_baseurl() { |
879 | 884 | } |
880 | 885 | |
881 | 886 | /** |
882 | | * Private, do not use |
| 887 | * Get the image's size from its meta data. |
| 888 | * |
| 889 | * Used for responsive images. |
| 890 | * |
| 891 | * @since 4.4.0 |
| 892 | * @access private |
| 893 | * |
| 894 | * @param string $size Image size. Accepts any valid image size name (thumbnail, medium, etc.), |
| 895 | * or an array of width and height values in pixels (in that order). |
| 896 | * @param array $image_meta The image meta data. |
| 897 | * @return array|false Array of width and height values in pixels (in that order) |
| 898 | * or false if the size doesn't exist. |
883 | 899 | */ |
884 | 900 | function _wp_get_image_size_from_meta( $size, $image_meta ) { |
885 | 901 | if ( $size === 'full' ) { |
… |
… |
function _wp_get_image_size_from_meta( $size, $image_meta ) { |
902 | 918 | * |
903 | 919 | * @since 4.4.0 |
904 | 920 | * |
905 | | |
906 | | * @param int $attachment_id Optional. Image attachment ID. |
907 | | * @param array|string $size Image size. Accepts any valid image size, or an array of width and height |
908 | | * values in pixels (in that order). Default 'medium'. |
| 921 | * @param int $attachment_id Image attachment ID. |
| 922 | * @param array|string $size Optional. Image size. Accepts any valid image size, or an array of |
| 923 | * width and height values in pixels (in that order). Default 'medium'. |
909 | 924 | * @param array $image_meta Optional. The image meta data. |
910 | 925 | * @return string|bool A 'srcset' value string or false. |
911 | 926 | */ |