Changeset 46596 for trunk/src/wp-includes/media.php
- Timestamp:
- 10/26/2019 09:07:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r46594 r46596 1040 1040 * @since 2.8.0 1041 1041 * 1042 * @param array $attr Attributes for the image markup.1042 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 1043 1043 * @param WP_Post $attachment Image attachment post. 1044 1044 * @param string|array $size Requested size. Image size or array of width and height values … … 1604 1604 * @since 2.9.0 1605 1605 * 1606 * @param array $attr Thumbnail attributes including src, class, alt, title.1607 * @return arrayModified array of attributes including the new 'wp-post-image' class.1606 * @param string[] $attr Array of thumbnail attributes including src, class, alt, title, keyed by attribute name. 1607 * @return string[] Modified array of attributes including the new 'wp-post-image' class. 1608 1608 */ 1609 1609 function _wp_post_thumbnail_class_filter( $attr ) { … … 1619 1619 * @since 2.9.0 1620 1620 * 1621 * @param array $attr Thumbnail attributes including src, class, alt, title.1621 * @param string[] $attr Array of thumbnail attributes including src, class, alt, title, keyed by attribute name. 1622 1622 */ 1623 1623 function _wp_post_thumbnail_class_filter_add( $attr ) { … … 1632 1632 * @since 2.9.0 1633 1633 * 1634 * @param array $attr Thumbnail attributes including src, class, alt, title.1634 * @param string[] $attr Array of thumbnail attributes including src, class, alt, title, keyed by attribute name. 1635 1635 */ 1636 1636 function _wp_post_thumbnail_class_filter_remove( $attr ) { … … 2417 2417 * @since 3.6.0 2418 2418 * 2419 * @return arraySupported audio formats.2419 * @return string[] Supported audio formats. 2420 2420 */ 2421 2421 function wp_get_audio_extensions() { … … 2425 2425 * @since 3.6.0 2426 2426 * 2427 * @param array$extensions An array of supported audio formats. Defaults are2428 * 'mp3', 'ogg', 'flac', 'm4a', 'wav'.2427 * @param string[] $extensions An array of supported audio formats. Defaults are 2428 * 'mp3', 'ogg', 'flac', 'm4a', 'wav'. 2429 2429 */ 2430 2430 return apply_filters( 'wp_audio_extensions', array( 'mp3', 'ogg', 'flac', 'm4a', 'wav' ) ); … … 2665 2665 * @since 3.6.0 2666 2666 * 2667 * @return arrayList of supported video formats.2667 * @return string[] List of supported video formats. 2668 2668 */ 2669 2669 function wp_get_video_extensions() { … … 2673 2673 * @since 3.6.0 2674 2674 * 2675 * @param array$extensions An array of supported video formats. Defaults are2676 * 'mp4', 'm4v', 'webm', 'ogv', 'flv'.2675 * @param string[] $extensions An array of supported video formats. Defaults are 2676 * 'mp4', 'm4v', 'webm', 'ogv', 'flv'. 2677 2677 */ 2678 2678 return apply_filters( 'wp_video_extensions', array( 'mp4', 'm4v', 'webm', 'ogv', 'flv' ) ); … … 3267 3267 * @since 3.5.0 3268 3268 * 3269 * @param array $image_editors List of available image editors. Defaults are3270 * 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'.3269 * @param string[] $image_editors Array of available image editor class names. Defaults are 3270 * 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'. 3271 3271 */ 3272 3272 $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) ); … … 3984 3984 * @since 3.5.0 3985 3985 * 3986 * @param array $strings List of media view strings.3987 * @param WP_Post $post Post object.3986 * @param string[] $strings Array of media view strings keyed by the name they'll be referenced by in JavaScript. 3987 * @param WP_Post $post Post object. 3988 3988 */ 3989 3989 $strings = apply_filters( 'media_view_strings', $strings, $post ); … … 4025 4025 * @param string $type Mime type. 4026 4026 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 4027 * @return array Found attachments.4027 * @return WP_Post[] Array of media attached to the given post. 4028 4028 */ 4029 4029 function get_attached_media( $type, $post = 0 ) { … … 4061 4061 * @since 3.6.0 4062 4062 * 4063 * @param array $children Associative array of media attached to the given post.4064 * @param string $type Mime type of the media desired.4065 * @param WP_Post $post Post object.4063 * @param WP_Post[] $children Array of media attached to the given post. 4064 * @param string $type Mime type of the media desired. 4065 * @param WP_Post $post Post object. 4066 4066 */ 4067 4067 return (array) apply_filters( 'get_attached_media', $children, $type, $post ); … … 4073 4073 * @since 3.6.0 4074 4074 * 4075 * @param string $content A string which might contain media data.4076 * @param array$types An array of media types: 'audio', 'video', 'object', 'embed', or 'iframe'.4077 * @return array A list of found HTML media embeds.4075 * @param string $content A string of HTML which might contain media elements. 4076 * @param string[] $types An array of media types: 'audio', 'video', 'object', 'embed', or 'iframe'. 4077 * @return string[] Array of found HTML media elements. 4078 4078 */ 4079 4079 function get_media_embedded_in_content( $content, $types = null ) { … … 4085 4085 * @since 4.2.0 4086 4086 * 4087 * @param array$allowed_media_types An array of allowed media types. Default media types are4088 * 'audio', 'video', 'object', 'embed', and 'iframe'.4087 * @param string[] $allowed_media_types An array of allowed media types. Default media types are 4088 * 'audio', 'video', 'object', 'embed', and 'iframe'. 4089 4089 */ 4090 4090 $allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) ); … … 4327 4327 * Registers the personal data exporter for media. 4328 4328 * 4329 * @param array $exporters An array of personal data exporters.4330 * @return array Anarray of personal data exporters.4329 * @param array[] $exporters An array of personal data exporters, keyed by their ID. 4330 * @return array[] Updated array of personal data exporters. 4331 4331 */ 4332 4332 function wp_register_media_personal_data_exporter( $exporters ) {
Note: See TracChangeset
for help on using the changeset viewer.