Ticket #51780: 51780.filter.patch
| File 51780.filter.patch, 1.8 KB (added by , 3 years ago) |
|---|
-
src/wp-includes/post.php
754 754 * Filters the attached file based on the given ID. 755 755 * 756 756 * @since 2.1.0 757 * @since 6.2.0 The `$size` parameter was added. 757 758 * 758 759 * @param string|false $file The file path to where the attached file should be, false otherwise. 759 760 * @param int $attachment_id Attachment ID. 761 * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array 762 * of width and height values in pixels (in that order). Default empty string. 760 763 */ 761 return apply_filters( 'get_attached_file', $file, $attachment_id );764 return apply_filters( 'get_attached_file', $file, $attachment_id, $size ); 762 765 } 763 766 764 767 /**