Changeset 32546 for trunk/src/wp-includes/class-wp-image-editor-gd.php
- Timestamp:
- 05/22/2015 06:17:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r31576 r32546 34 34 * @access public 35 35 * 36 * @param array $args 36 37 * @return boolean 37 38 */ … … 128 129 * @param int $width 129 130 * @param int $height 131 * @return true 130 132 */ 131 133 protected function update_size( $width = false, $height = false ) { … … 153 155 * @param int|null $max_h Image height. 154 156 * @param boolean $crop 155 * @return boolean|WP_Error157 * @return true|WP_Error 156 158 */ 157 159 public function resize( $max_w, $max_h, $crop = false ) { … … 172 174 } 173 175 176 /** 177 * 178 * @param int $max_w 179 * @param int $max_h 180 * @param bool|array $crop 181 * @return resource|WP_Error 182 */ 174 183 protected function _resize( $max_w, $max_h, $crop = false ) { 175 184 $dims = image_resize_dimensions( $this->size['width'], $this->size['height'], $max_w, $max_h, $crop ); … … 304 313 * 305 314 * @param float $angle 306 * @return boolean|WP_Error315 * @return true|WP_Error 307 316 */ 308 317 public function rotate( $angle ) { … … 331 340 * @param boolean $horz Flip along Horizontal Axis 332 341 * @param boolean $vert Flip along Vertical Axis 333 * @returns boolean|WP_Error342 * @returns true|WP_Error 334 343 */ 335 344 public function flip( $horz, $vert ) { … … 434 443 * 435 444 * @param string $mime_type 445 * @return bool 436 446 */ 437 447 public function stream( $mime_type = null ) {
Note: See TracChangeset
for help on using the changeset viewer.