Changeset 49021 for trunk/src/wp-admin/includes/image.php
- Timestamp:
- 09/20/2020 04:21:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r49020 r49021 918 918 * @since 2.9.0 919 919 * 920 * @param int $attachment_id Attachment ID. 921 * @param string $mime_type Image mime type. 922 * @param string $size Optional. Image size. Default 'full'. 920 * @param int $attachment_id Attachment ID. 921 * @param string $mime_type Image mime type. 922 * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array 923 * of width and height values in pixels (in that order). Default 'full'. 923 924 * @return resource|GdImage|false The resulting image resource or GdImage instance on success, 924 925 * false on failure. … … 953 954 * @param resource|GdImage $image Current image. 954 955 * @param int $attachment_id Attachment ID. 955 * @param string $size Image size. 956 * @param string|int[] $size Requested image size. Can be any registered image size name, or 957 * an array of width and height values in pixels (in that order). 956 958 */ 957 959 $image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size ); … … 975 977 * @access private 976 978 * 977 * @param int $attachment_id Attachment ID. 978 * @param string $size Optional. Image size. Default 'full'. 979 * @return string|false File path or url on success, false on failure. 979 * @param int $attachment_id Attachment ID. 980 * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array 981 * of width and height values in pixels (in that order). Default 'full'. 982 * @return string|false File path or URL on success, false on failure. 980 983 */ 981 984 function _load_image_to_edit_path( $attachment_id, $size = 'full' ) { … … 996 999 * @since 3.1.0 997 1000 * 998 * @param string $path Path to the current image. 999 * @param int $attachment_id Attachment ID. 1000 * @param string $size Size of the image. 1001 * @param string $path Path to the current image. 1002 * @param int $attachment_id Attachment ID. 1003 * @param string|int[] $size Requested image size. Can be any registered image size name, or 1004 * an array of width and height values in pixels (in that order). 1001 1005 */ 1002 1006 $filepath = apply_filters( 'load_image_to_edit_filesystempath', $filepath, $attachment_id, $size ); … … 1011 1015 * @since 3.1.0 1012 1016 * 1013 * @param string $image_url Current image URL. 1014 * @param int $attachment_id Attachment ID. 1015 * @param string $size Size of the image. 1017 * @param string $image_url Current image URL. 1018 * @param int $attachment_id Attachment ID. 1019 * @param string|int[] $size Requested image size. Can be any registered image size name, or 1020 * an array of width and height values in pixels (in that order). 1016 1021 */ 1017 1022 $filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size ); … … 1023 1028 * @since 2.9.0 1024 1029 * 1025 * @param string|bool $filepath File path or URL to current image, or false. 1026 * @param int $attachment_id Attachment ID. 1027 * @param string $size Size of the image. 1030 * @param string|bool $filepath File path or URL to current image, or false. 1031 * @param int $attachment_id Attachment ID. 1032 * @param string|int[] $size Requested image size. Can be any registered image size name, or 1033 * an array of width and height values in pixels (in that order). 1028 1034 */ 1029 1035 return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size );
Note: See TracChangeset
for help on using the changeset viewer.