Parsed: 121706

<?php

/**
 * WordPress API for media display.
 *
 * @package WordPress
 * @subpackage Media
 */

/* function wp_get_additional_image_sizes() – Retrieve additional image sizes. */

/* function image_constrain_size_for_editor() – Scale down the default size of an image. */

/* function image_hwstring() – Retrieve width and height attributes using given width and height values. */

/* function image_downsize() – Scales an image to fit a particular size (such as ‘thumb’ or ‘medium’). */

/* function add_image_size() – Register a new image size. */

/* function has_image_size() – Check if an image size exists. */

/* function remove_image_size() – Remove a new image size. */

/* function set_post_thumbnail_size() – Registers an image size for the post thumbnail. */

/* function get_image_tag() – Gets an img tag for an image attachment, scaling it down if requested. */

/* function wp_constrain_dimensions() – Calculates the new dimensions for a down-sampled image. */

/* function image_resize_dimensions() – Retrieves calculated resize dimensions for use in WP_Image_Editor. */

/* function image_make_intermediate_size() – Resizes an image to make a thumbnail or intermediate size. */

/* function wp_image_matches_ratio() – Helper function to test if aspect ratios for two images match. */

/* function image_get_intermediate_size() – Retrieves the image’s intermediate size (resized) path, width, and height. */

/* function get_intermediate_image_sizes() – Gets the available intermediate image size names. */

/* function wp_get_registered_image_subsizes() – Returns a normalized list of all currently registered image sub-sizes. */

/* function wp_get_attachment_image_src() – Retrieves an image to represent an attachment. */

/* function wp_get_attachment_image() – Gets an HTML img element representing an image attachment. */

/* function wp_get_attachment_image_url() – Get the URL of an image attachment. */

/* function _wp_get_attachment_relative_path() – Get the attachment path relative to the upload directory. */

/* function _wp_get_image_size_from_meta() – Get the image size as array from its meta data. */

/* function wp_get_attachment_image_srcset() – Retrieves the value for an image attachment’s ‘srcset’ attribute. */

/* function wp_calculate_image_srcset() – A helper function to calculate the image sources to include in a ‘srcset’ attribute. */

/* function wp_get_attachment_image_sizes() – Retrieves the value for an image attachment’s ‘sizes’ attribute. */

/* function wp_calculate_image_sizes() – Creates a ‘sizes’ attribute value for an image. */

/* function wp_image_file_matches_image_meta() – Determines if the image meta data is for the image source file. */

/* function wp_image_src_get_dimensions() – Determines an image’s width and height dimensions based on the source file. */

/* function wp_image_add_srcset_and_sizes() – Adds ‘srcset’ and ‘sizes’ attributes to an existing ‘img’ element. */

/* function wp_lazy_loading_enabled() – Determines whether to add the `loading` attribute to the specified tag in the specified context. */

/* function wp_filter_content_tags() – Filters specific tags in post content and modifies their markup. */

/* function wp_img_tag_add_loading_attr() – Adds `loading` attribute to an `img` HTML tag. */

/* function wp_img_tag_add_decoding_attr() – Adds `decoding` attribute to an `img` HTML tag. */

/* function wp_img_tag_add_width_and_height_attr() – Adds `width` and `height` attributes to an `img` HTML tag. */

/* function wp_img_tag_add_srcset_and_sizes_attr() – Adds `srcset` and `sizes` attributes to an existing `img` HTML tag. */

/* function wp_iframe_tag_add_loading_attr() – Adds `loading` attribute to an `iframe` HTML tag. */

/* function _wp_post_thumbnail_class_filter() – Adds a ‘wp-post-image’ class to post thumbnails. Internal use only. */

/* function _wp_post_thumbnail_class_filter_add() – Adds ‘_wp_post_thumbnail_class_filter’ callback to the ‘wp_get_attachment_image_attributes’
filter hook. Internal use only. */

/* function _wp_post_thumbnail_class_filter_remove() – Removes the ‘_wp_post_thumbnail_class_filter’ callback from the ‘wp_get_attachment_image_attributes’
filter hook. Internal use only. */

add_shortcode( 'wp_caption', 'img_caption_shortcode' );
add_shortcode( 'caption', 'img_caption_shortcode' );

/* function img_caption_shortcode() – Builds the Caption shortcode output. */

add_shortcode( 'gallery', 'gallery_shortcode' );

/* function gallery_shortcode() – Builds the Gallery shortcode output. */

/* function wp_underscore_playlist_templates() – Outputs the templates used by playlists. */

/* function wp_playlist_scripts() – Outputs and enqueue default scripts and styles for playlists. */

/* function wp_playlist_shortcode() – Builds the Playlist shortcode output. */
add_shortcode( 'playlist', 'wp_playlist_shortcode' );

/* function wp_mediaelement_fallback() – Provides a No-JS Flash fallback as a last resort for audio / video. */

/* function wp_get_audio_extensions() – Returns a filtered list of supported audio formats. */

/* function wp_get_attachment_id3_keys() – Returns useful keys to use to lookup data from an attachment’s stored metadata. */
/* function wp_audio_shortcode() – Builds the Audio shortcode output. */
add_shortcode( 'audio', 'wp_audio_shortcode' );

/* function wp_get_video_extensions() – Returns a filtered list of supported video formats. */

/* function wp_video_shortcode() – Builds the Video shortcode output. */
add_shortcode( 'video', 'wp_video_shortcode' );

/* function get_previous_image_link() – Gets the previous image link that has the same post parent. */

/* function previous_image_link() – Displays previous image link that has the same post parent. */

/* function get_next_image_link() – Gets the next image link that has the same post parent. */

/* function next_image_link() – Displays next image link that has the same post parent. */

/* function get_adjacent_image_link() – Gets the next or previous image link that has the same post parent. */

/* function adjacent_image_link() – Displays next or previous image link that has the same post parent. */

/* function get_attachment_taxonomies() – Retrieves taxonomies attached to given the attachment. */

/* function get_taxonomies_for_attachments() – Retrieves all of the taxonomies that are registered for attachments. */

/* function is_gd_image() – Determines whether the value is an acceptable type for GD image functions. */

/* function wp_imagecreatetruecolor() – Create new GD image resource with transparency support */

/* function wp_expand_dimensions() – Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height. */

/* function wp_max_upload_size() – Determines the maximum upload size allowed in php.ini. */

/* function wp_get_image_editor() – Returns a WP_Image_Editor instance and loads file into it. */

/* function wp_image_editor_supports() – Tests whether there is an editor that supports a given mime type or methods. */

/* function _wp_image_editor_choose() – Tests which editors are capable of supporting the request. */

/* function wp_plupload_default_settings() – Prints default Plupload arguments. */

/* function 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. */

/* function wp_enqueue_media() – Enqueues all scripts, styles, settings, and templates necessary to use
all media JS APIs. */

/* function get_attached_media() – Retrieves media attached to the passed post. */

/* function get_media_embedded_in_content() – Check the content HTML for a audio, video, object, embed, or iframe tags. */

/* function get_post_galleries() – Retrieves galleries from the passed post’s content. */

/* function get_post_gallery() – Check a specified post’s content for gallery and, if present, return the first */

/* function get_post_galleries_images() – Retrieve the image srcs from galleries from a post’s content, if present */

/* function get_post_gallery_images() – Checks a post’s content for galleries and return the image srcs for the first found gallery */

/* function wp_maybe_generate_attachment_metadata() – Maybe attempts to generate attachment metadata, if missing. */

/* function attachment_url_to_postid() – Tries to convert an attachment URL into a post ID. */

/* function wpview_media_sandbox_styles() – Returns the URLs for CSS files used in an iframe-sandbox’d TinyMCE media view. */

/* function wp_register_media_personal_data_exporter() – Registers the personal data exporter for media */

/* function wp_media_personal_data_exporter() – Finds and exports attachments associated with an email address. */

/* function _wp_add_additional_image_sizes() – Add additional default image sub-sizes. */

/* function wp_show_heic_upload_error() – Callback to enable showing of the user error when uploading .heic images. */

/* function wp_getimagesize() – Allows PHP’s getimagesize() to be debuggable when necessary. */

/* function wp_get_webp_info() – Extracts meta information about a WebP file: width, height, and type. */

/* function wp_get_loading_attr_default() – Gets the default value to use for a `loading` attribute on an element. */

/* function wp_omit_loading_attr_threshold() – Gets the threshold for how many of the first content media elements to not lazy-load. */

/* function wp_increase_content_media_count() – Increases an internal content media count variable. */