wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:WP_REST_Attachments_Controller::edit_media_item() | Applies edits to a media item and creates a new attachment record. |
wp-includes/media.php:wp_img_tag_add_width_and_height_attr() | Adds width and height attributes to an img HTML tag. |
wp-includes/media.php:wp_img_tag_add_srcset_and_sizes_attr() | Adds srcset and sizes attributes to an existing img HTML tag. |
wp-includes/post.php:wp_get_original_image_path() | Retrieves the path to an uploaded image file. |
wp-includes/post.php:wp_get_original_image_url() | Retrieve the URL to an original attachment image. |
wp-admin/includes/image.php:wp_get_missing_image_subsizes() | Compare the existing image sub-sizes (as saved in the attachment meta) to the currently registered image sub-sizes, and return the difference. |
wp-admin/includes/image.php:wp_update_image_subsizes() | If any of the currently registered image sub-sizes are missing, create them and update the image meta data. |
wp-includes/widgets/class-wp-widget-media-image.php:WP_Widget_Media_Image::render_media() | Render the media on the frontend. |
wp-includes/class-wp-customize-manager.php:WP_Customize_Manager::import_theme_starter_content() | Imports theme starter content into the customized state. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:WP_REST_Attachments_Controller::prepare_item_for_response() | Prepares a single attachment output for response. |
wp-includes/media.php:wp_get_attachment_image_srcset() | Retrieves the value for an image attachment’s ‘srcset’ attribute. |
wp-includes/media.php:wp_get_attachment_image_sizes() | Retrieves the value for an image attachment’s ‘sizes’ attribute. |
wp-includes/media.php:wp_calculate_image_sizes() | Creates a ‘sizes’ attribute value for an image. |
wp-admin/includes/image-edit.php:wp_restore_image() | Restores the metadata for a given attachment. |
wp-admin/includes/image-edit.php:wp_save_image() | Saves image to post, along with enqueued changes in $_REQUEST['history'] . |
wp-admin/includes/image-edit.php:wp_image_editor() | Loads the WP image-editing interface. |
wp-admin/includes/media.php:edit_form_image_editor() | Displays the image and editor in the post editor |
wp-admin/includes/media.php:attachment_submitbox_metadata() | Displays non-editable attachment metadata in the publish meta box. |
wp-admin/includes/media.php:get_media_item() | Retrieves HTML form for modifying the image attachment. |
wp-admin/includes/post.php:edit_post() | Updates an existing post with values provided in $_POST . |
wp-admin/includes/ajax-actions.php:wp_ajax_save_attachment() | Ajax handler for updating attachment attributes. |
wp-admin/includes/meta-boxes.php:attachment_id3_data_meta_box() | Displays fields for ID3 data. |
wp-admin/includes/class-custom-image-header.php:Custom_Image_Header::step_2() | Display second step of custom header image page. |
wp-includes/theme.php:get_uploaded_header_images() | Gets the header images uploaded for the active theme. |
wp-includes/post-template.php:prepend_attachment() | Wraps attachment in paragraph tag before content. |
wp-includes/media.php:wp_maybe_generate_attachment_metadata() | Maybe attempts to generate attachment metadata, if missing. |
wp-includes/media.php:wp_prepare_attachment_for_js() | Prepares an attachment post object for JS, where it is expected to be JSON-encoded and fit into an Attachment model. |
wp-includes/media.php:gallery_shortcode() | Builds the Gallery shortcode output. |
wp-includes/media.php:wp_playlist_shortcode() | Builds the Playlist shortcode output. |
wp-includes/media.php:image_get_intermediate_size() | Retrieves the image’s intermediate size (resized) path, width, and height. |
wp-includes/media.php:wp_get_attachment_image() | Get an HTML img element representing an image attachment. |
wp-includes/media.php:image_downsize() | Scale an image to fit a particular size (such as ‘thumb’ or ‘medium’). |
wp-includes/post.php:wp_delete_attachment() | Trash or delete an attachment. |
wp-includes/post.php:wp_get_attachment_thumb_file() | Retrieve thumbnail for an attachment. |
wp-includes/class-wp-xmlrpc-server.php:wp_xmlrpc_server::_prepare_media_item() | Prepares media item data for return in an XML-RPC object. |