Changeset 46660 for trunk/src/wp-includes/media.php
- Timestamp:
- 11/05/2019 09:21:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r46644 r46660 846 846 847 847 /** 848 * Gets the available intermediate image size s.848 * Gets the available intermediate image size names. 849 849 * 850 850 * @since 3.0.0 851 851 * 852 * @return array Returns a filtered array of image size strings.852 * @return string[] An array of image size names. 853 853 */ 854 854 function get_intermediate_image_sizes() { … … 865 865 * @since 2.5.0 866 866 * 867 * @param array $default_sizes An array of intermediate image sizes. Defaults868 * are 'thumbnail', 'medium', 'medium_large', 'large'.867 * @param string[] $default_sizes An array of intermediate image size names. Defaults 868 * are 'thumbnail', 'medium', 'medium_large', 'large'. 869 869 */ 870 870 return apply_filters( 'intermediate_image_sizes', $default_sizes ); … … 2437 2437 * @param WP_Post $attachment The current attachment, provided for context. 2438 2438 * @param string $context Optional. The context. Accepts 'edit', 'display'. Default 'display'. 2439 * @return arrayKey/value pairs of field keys to labels.2439 * @return string[] Key/value pairs of field keys to labels. 2440 2440 */ 2441 2441 function wp_get_attachment_id3_keys( $attachment, $context = 'display' ) { … … 3047 3047 * or 'objects' to return an array of taxonomy objects. 3048 3048 * Default is 'names'. 3049 * @return array Empty array on failure. List of taxonomies on success.3049 * @return string[]|WP_Taxonomy[] List of taxonomies or taxonomy names. Empty array on failure. 3050 3050 */ 3051 3051 function get_attachment_taxonomies( $attachment, $output = 'names' ) { … … 3160 3160 * @param int $max_width The maximum allowed width. 3161 3161 * @param int $max_height The maximum allowed height. 3162 * @return array The maximum possible width and height based on the example ratio. 3162 * @return int[] { 3163 * An array of maximum width and height values. 3164 * 3165 * @type int $0 The maximum width in pixels. 3166 * @type int $1 The maximum height in pixels. 3167 * } 3163 3168 */ 3164 3169 function wp_expand_dimensions( $example_width, $example_height, $max_width, $max_height ) { … … 4227 4232 * 4228 4233 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. 4229 * @return arrayA list of a gallery's image srcs in order.4234 * @return string[] A list of a gallery's image srcs in order. 4230 4235 */ 4231 4236 function get_post_gallery_images( $post = 0 ) { … … 4313 4318 * @since 4.0.0 4314 4319 * 4315 * @return arrayThe relevant CSS file URLs.4320 * @return string[] The relevant CSS file URLs. 4316 4321 */ 4317 4322 function wpview_media_sandbox_styles() {
Note: See TracChangeset
for help on using the changeset viewer.