Changeset 53843 for trunk/src/wp-admin/includes/image.php
- Timestamp:
- 08/05/2022 02:05:20 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r53751 r53843 72 72 73 73 /** 74 * Compare the existing image sub-sizes (as saved in the attachment meta)75 * to the currently registered image sub-sizes, and return the difference.74 * Compares the existing image sub-sizes (as saved in the attachment meta) 75 * to the currently registered image sub-sizes, and returns the difference. 76 76 * 77 77 * Registered sub-sizes that are larger than the image are skipped. … … 729 729 730 730 /** 731 * Check if an image belongs to an attachment.731 * Checks if an image belongs to an attachment. 732 732 * 733 733 * @since 6.1.0 734 734 * @access private 735 735 * 736 * @param string $filename Full path to the image file.737 * @param int $attachment_id Attachment ID to check.736 * @param string $filename Full path to the image file. 737 * @param int $attachment_id Attachment ID to check. 738 738 * @return bool True if the image belongs to the attachment, false otherwise. 739 739 */ … … 761 761 762 762 /** 763 * Generate attachment meta data and create image sub-sizes for images.763 * Generates attachment meta data and create image sub-sizes for images. 764 764 * 765 765 * @since 2.1.0 … … 846 846 * Information about the newly-uploaded file. 847 847 * 848 * @type string $file 849 * @type string $url 850 * @type string $type 848 * @type string $file Filename of the newly-uploaded file. 849 * @type string $url URL of the uploaded file. 850 * @type string $type File type. 851 851 * } 852 852 */ … … 945 945 946 946 /** 947 * Convert a fraction string to a decimal.947 * Converts a fraction string to a decimal. 948 948 * 949 949 * @since 2.5.0 … … 986 986 987 987 /** 988 * Convert the exif date format to a unix timestamp.988 * Converts the exif date format to a unix timestamp. 989 989 * 990 990 * @since 2.5.0 … … 1001 1001 1002 1002 /** 1003 * Get extended image metadata, exif or iptc as available.1003 * Gets extended image metadata, exif or iptc as available. 1004 1004 * 1005 1005 * Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso … … 1235 1235 1236 1236 /** 1237 * Validate that file is an image.1237 * Validates that file is an image. 1238 1238 * 1239 1239 * @since 2.5.0 … … 1248 1248 1249 1249 /** 1250 * Validate that file is suitable for displaying within a web page.1250 * Validates that file is suitable for displaying within a web page. 1251 1251 * 1252 1252 * @since 2.5.0 … … 1279 1279 1280 1280 /** 1281 * Load an image resource for editing.1281 * Loads an image resource for editing. 1282 1282 * 1283 1283 * @since 2.9.0 … … 1340 1340 1341 1341 /** 1342 * Retrieve the path or URL of an attachment's attached file.1342 * Retrieves the path or URL of an attachment's attached file. 1343 1343 * 1344 1344 * If the attached file is not present on the local filesystem (usually due to replication plugins), … … 1408 1408 1409 1409 /** 1410 * Cop yan existing image file.1410 * Copies an existing image file. 1411 1411 * 1412 1412 * @since 3.4.0 … … 1455 1455 * @since 6.1.0 1456 1456 * 1457 * @param int $attachment_id 1457 * @param int $attachment_id The attachment ID. 1458 1458 * @return array An array of valid mime types, where the key is the source file mime type and the list of mime types to 1459 1459 * generate. … … 1467 1467 1468 1468 /** 1469 * Filter the output mime types for a given input mime type and image size.1469 * Filters the output mime types for a given input mime type and image size. 1470 1470 * 1471 1471 * @since 6.1.0 1472 1472 * 1473 * @param array 1473 * @param array $image_mime_transforms A map with the valid mime transforms where the key is the source file mime type 1474 1474 * and the value is one or more mime file types to generate. 1475 * @param int 1475 * @param int $attachment_id The ID of the attachment where the hook was dispatched. 1476 1476 */ 1477 1477 $image_mime_transforms = apply_filters( 'wp_upload_image_mime_transforms', $image_mime_transforms, $attachment_id ); … … 1490 1490 1491 1491 /** 1492 * Extract the primary and additional mime output types for an image from the $image_mime_transforms.1492 * Extracts the primary and additional mime output types for an image from the $image_mime_transforms. 1493 1493 * 1494 1494 * @since 6.1.0
Note: See TracChangeset
for help on using the changeset viewer.