Changeset 18639 for trunk/wp-includes/media.php
- Timestamp:
- 09/05/2011 07:08:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r18605 r18639 261 261 262 262 /** 263 * Calculates the new dimen tions for a downsampled image.263 * Calculates the new dimensions for a downsampled image. 264 264 * 265 265 * If either width or height are empty, no constraint is applied on … … 306 306 307 307 // Sometimes, due to rounding, we'll end up with a result like this: 465x700 in a 177x177 box is 117x176... a pixel short 308 // We also have issues with recursive calls resulting in an ever-changing result. Con training to the result of a constraint should yield the original result.308 // We also have issues with recursive calls resulting in an ever-changing result. Constraining to the result of a constraint should yield the original result. 309 309 // Thus we look for dimensions that are one pixel shy of the max value and bump them up 310 310 if ( $did_width && $w == $max_width - 1 ) … … 1145 1145 * 1146 1146 * @param array $attr Shortcode attributes. 1147 * @param string $url The URL attempting to be embed ed.1147 * @param string $url The URL attempting to be embedded. 1148 1148 * @return string The embed HTML on success, otherwise the original URL. 1149 1149 */ … … 1373 1373 * @uses WP_oEmbed::get_html() 1374 1374 * 1375 * @param string $url The URL that should be embed ed.1375 * @param string $url The URL that should be embedded. 1376 1376 * @param array $args Addtional arguments and parameters. 1377 1377 * @return string The original URL on failure or the embed HTML on success.
Note: See TracChangeset
for help on using the changeset viewer.