Changeset 18827 for trunk/wp-includes/media.php
- Timestamp:
- 09/29/2011 10:57:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r18639 r18827 18 18 * not set. 19 19 * 20 * Finally, there is a filter named , 'editor_max_image_size'that will be called20 * Finally, there is a filter named 'editor_max_image_size', that will be called 21 21 * on the calculated array for width and height, respectively. The second 22 22 * parameter will be the value that was in the $size parameter. The returned … … 178 178 /** 179 179 * Registers a new image size 180 * 181 * @since 2.9.0 180 182 */ 181 183 function add_image_size( $name, $width = 0, $height = 0, $crop = false ) { … … 186 188 /** 187 189 * Registers an image size for the post thumbnail 190 * 191 * @since 2.9.0 188 192 */ 189 193 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) { … … 330 334 * @param int $dest_h New height. 331 335 * @param bool $crop Optional, default is false. Whether to crop image or resize. 332 * @return bool|array False ,on failure. Returned array matches parameters for imagecopyresampled() PHP function.336 * @return bool|array False on failure. Returned array matches parameters for imagecopyresampled() PHP function. 333 337 */ 334 338 function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = false) { … … 399 403 * @param int $max_h Maximum height to resize to. 400 404 * @param bool $crop Optional. Whether to crop image or resize. 401 * @param string $suffix Optional. File Suffix.405 * @param string $suffix Optional. File suffix. 402 406 * @param string $dest_path Optional. New image file path. 403 407 * @param int $jpeg_quality Optional, default is 90. Image quality percentage. … … 670 674 671 675 /** 672 * Adds a 'wp-post-image' class to post thumbnail thumbnails676 * Adds a 'wp-post-image' class to post thumbnails 673 677 * Uses the begin_fetch_post_thumbnail_html and end_fetch_post_thumbnail_html action hooks to 674 * dynamically add/remove itself so as to only filter post thumbnail thumbnails678 * dynamically add/remove itself so as to only filter post thumbnails 675 679 * 676 680 * @since 2.9.0 … … 753 757 * @since 2.5.0 754 758 * 755 * @param array $attr Attributes attributed tothe shortcode.759 * @param array $attr Attributes of the shortcode. 756 760 * @return string HTML content to display gallery. 757 761 */ … … 907 911 * @since 2.5.0 908 912 * 909 * @param bool $prev Optional. Default is true to display previous link, true for next.913 * @param bool $prev Optional. Default is true to display previous link, false for next. 910 914 */ 911 915 function adjacent_image_link($prev = true, $size = 'thumbnail', $text = false) { … … 1080 1084 1081 1085 /** 1082 * If a post/page was saved, then output Java script to make1086 * If a post/page was saved, then output JavaScript to make 1083 1087 * an AJAX request that will call WP_Embed::cache_oembed(). 1084 1088 */ … … 1374 1378 * 1375 1379 * @param string $url The URL that should be embedded. 1376 * @param array $args Add tional arguments and parameters.1380 * @param array $args Additional arguments and parameters. 1377 1381 * @return string The original URL on failure or the embed HTML on success. 1378 1382 */
Note: See TracChangeset
for help on using the changeset viewer.