Changeset 54173
- Timestamp:
- 09/15/2022 10:50:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r54172 r54173 8 8 9 9 /** 10 * Retrieve additional image sizes.10 * Retrieves additional image sizes. 11 11 * 12 12 * @since 4.7.0 … … 27 27 28 28 /** 29 * Scale down the default size of an image.29 * Scales down the default size of an image. 30 30 * 31 31 * This is so that the image is a better fit for the editor and theme. … … 137 137 138 138 /** 139 * Retrieve width and height attributes using given width and height values.139 * Retrieves width and height attributes using given width and height values. 140 140 * 141 141 * Both attributes are required in the sense that both parameters must have a … … 165 165 166 166 /** 167 * Scale an image to fit a particular size (such as 'thumb' or 'medium').167 * Scales an image to fit a particular size (such as 'thumb' or 'medium'). 168 168 * 169 169 * The URL might be the original image, or it might be a resized version. This … … 273 273 274 274 /** 275 * Register a new image size.275 * Registers a new image size. 276 276 * 277 277 * @since 2.9.0 … … 300 300 301 301 /** 302 * Check if an image size exists.302 * Checks if an image size exists. 303 303 * 304 304 * @since 3.9.0 … … 313 313 314 314 /** 315 * Remove a new image size.315 * Removes a new image size. 316 316 * 317 317 * @since 3.9.0 … … 369 369 * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of 370 370 * width and height values in pixels (in that order). Default 'medium'. 371 * @return string HTML IMG element for given image attachment 371 * @return string HTML IMG element for given image attachment? 372 372 */ 373 373 function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) { … … 994 994 995 995 /** 996 * Get an HTML img element representing an image attachment.996 * Gets an HTML img element representing an image attachment. 997 997 * 998 998 * While `$size` will accept an array, it is better to register a size with … … 1106 1106 1107 1107 /** 1108 * HTML img element representing an image attachment.1108 * Filters the HTML img element representing an image attachment. 1109 1109 * 1110 1110 * @since 5.6.0 … … 1122 1122 1123 1123 /** 1124 * Get the URL of an image attachment.1124 * Gets the URL of an image attachment. 1125 1125 * 1126 1126 * @since 4.4.0 … … 1139 1139 1140 1140 /** 1141 * Get the attachment path relative to the upload directory.1141 * Gets the attachment path relative to the upload directory. 1142 1142 * 1143 1143 * @since 4.4.1 … … 1164 1164 1165 1165 /** 1166 * Get the image size as array from its meta data.1166 * Gets the image size as array from its meta data. 1167 1167 * 1168 1168 * Used for responsive images. … … 1248 1248 function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) { 1249 1249 /** 1250 * Let plugins pre-filterthe image meta to be able to fix inconsistencies in the stored data.1250 * Pre-filters the image meta to be able to fix inconsistencies in the stored data. 1251 1251 * 1252 1252 * @since 4.5.0 … … 2663 2663 2664 2664 /** 2665 * Outputs and enqueue default scripts and styles for playlists.2665 * Outputs and enqueues default scripts and styles for playlists. 2666 2666 * 2667 2667 * @since 3.9.0 … … 3751 3751 3752 3752 /** 3753 * Create new GD image resource with transparency support3753 * Creates new GD image resource with transparency support. 3754 3754 * 3755 3755 * @todo Deprecate if possible. … … 3776 3776 3777 3777 /** 3778 * Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height.3778 * Based on a supplied width/height example, returns the biggest possible dimensions based on the max width/height. 3779 3779 * 3780 3780 * @since 2.9.0 … … 4811 4811 4812 4812 /** 4813 * Check the content HTMLfor a audio, video, object, embed, or iframe tags.4813 * Checks the HTML content for a audio, video, object, embed, or iframe tags. 4814 4814 * 4815 4815 * @since 3.6.0 … … 5014 5014 5015 5015 /** 5016 * Check a specified post's content for gallery and, if present, return the first5016 * Checks a specified post's content for gallery and, if present, return the first 5017 5017 * 5018 5018 * @since 3.6.0 … … 5039 5039 5040 5040 /** 5041 * Retrieve the image srcs from galleries from a post's content, if present5041 * Retrieves the image srcs from galleries from a post's content, if present. 5042 5042 * 5043 5043 * @since 3.6.0 … … 5055 5055 5056 5056 /** 5057 * Checks a post's content for galleries and return the image srcs for the first found gallery 5057 * Checks a post's content for galleries and return the image srcs for the first found gallery. 5058 5058 * 5059 5059 * @since 3.6.0 … … 5254 5254 5255 5255 /** 5256 * Add additional default image sub-sizes.5256 * Adds additional default image sub-sizes. 5257 5257 * 5258 5258 * These sizes are meant to enhance the way WordPress displays images on the front-end on larger,
Note: See TracChangeset
for help on using the changeset viewer.