Make WordPress Core


Ignore:
Timestamp:
09/29/2011 10:57:43 PM (13 years ago)
Author:
ryan
Message:

phpdoc typo and readability fixes. Props SergeyBiryukov. fixes #18560

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r18639 r18827  
    1818 * not set.
    1919 *
    20  * Finally, there is a filter named, 'editor_max_image_size' that will be called
     20 * Finally, there is a filter named 'editor_max_image_size', that will be called
    2121 * on the calculated array for width and height, respectively. The second
    2222 * parameter will be the value that was in the $size parameter. The returned
     
    178178/**
    179179 * Registers a new image size
     180 *
     181 * @since 2.9.0
    180182 */
    181183function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
     
    186188/**
    187189 * Registers an image size for the post thumbnail
     190 *
     191 * @since 2.9.0
    188192 */
    189193function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
     
    330334 * @param int $dest_h New height.
    331335 * @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.
    333337 */
    334338function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = false) {
     
    399403 * @param int $max_h Maximum height to resize to.
    400404 * @param bool $crop Optional. Whether to crop image or resize.
    401  * @param string $suffix Optional. File Suffix.
     405 * @param string $suffix Optional. File suffix.
    402406 * @param string $dest_path Optional. New image file path.
    403407 * @param int $jpeg_quality Optional, default is 90. Image quality percentage.
     
    670674
    671675/**
    672  * Adds a 'wp-post-image' class to post thumbnail thumbnails
     676 * Adds a 'wp-post-image' class to post thumbnails
    673677 * 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 thumbnails
     678 * dynamically add/remove itself so as to only filter post thumbnails
    675679 *
    676680 * @since 2.9.0
     
    753757 * @since 2.5.0
    754758 *
    755  * @param array $attr Attributes attributed to the shortcode.
     759 * @param array $attr Attributes of the shortcode.
    756760 * @return string HTML content to display gallery.
    757761 */
     
    907911 * @since 2.5.0
    908912 *
    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.
    910914 */
    911915function adjacent_image_link($prev = true, $size = 'thumbnail', $text = false) {
     
    10801084
    10811085    /**
    1082      * If a post/page was saved, then output Javascript to make
     1086     * If a post/page was saved, then output JavaScript to make
    10831087     * an AJAX request that will call WP_Embed::cache_oembed().
    10841088     */
     
    13741378 *
    13751379 * @param string $url The URL that should be embedded.
    1376  * @param array $args Addtional arguments and parameters.
     1380 * @param array $args Additional arguments and parameters.
    13771381 * @return string The original URL on failure or the embed HTML on success.
    13781382 */
Note: See TracChangeset for help on using the changeset viewer.