Changeset 32546
- Timestamp:
- 05/22/2015 06:17:16 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-ixr-client.php
r30681 r32546 47 47 } 48 48 49 /** 50 * @return bool 51 */ 49 52 public function query() { 50 53 $args = func_get_args(); -
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 ) { -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r31576 r32546 38 38 * @access public 39 39 * 40 * @param array $args 40 41 * @return boolean 41 42 */ … … 113 114 * @access protected 114 115 * 115 * @return boolean|WP_Error True if loaded; WP_Error on failure.116 * @return true|WP_Error True if loaded; WP_Error on failure. 116 117 */ 117 118 public function load() { … … 157 158 * 158 159 * @param int $quality Compression Quality. Range: [1,100] 159 * @return boolean|WP_Error True if set successfully; WP_Error on failure.160 * @return true|WP_Error True if set successfully; WP_Error on failure. 160 161 */ 161 162 public function set_quality( $quality = null ) { … … 375 376 * 376 377 * @param float $angle 377 * @return boolean|WP_Error378 * @return true|WP_Error 378 379 */ 379 380 public function rotate( $angle ) { … … 406 407 * @param boolean $horz Flip along Horizontal Axis 407 408 * @param boolean $vert Flip along Vertical Axis 408 * @returns boolean|WP_Error409 * @returns true|WP_Error 409 410 */ 410 411 public function flip( $horz, $vert ) { … … 450 451 } 451 452 453 /** 454 * 455 * @param Imagick $image 456 * @param string $filename 457 * @param string $mime_type 458 * @return array|WP_Error 459 */ 452 460 protected function _save( $image, $filename = null, $mime_type = null ) { 453 461 list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type ); … … 492 500 * 493 501 * @param string $mime_type 494 * @return boolean|WP_Error502 * @return true|WP_Error 495 503 */ 496 504 public function stream( $mime_type = null ) { -
trunk/src/wp-includes/class-wp-image-editor.php
r31127 r32546 227 227 * 228 228 * @param int $quality Compression Quality. Range: [1,100] 229 * @return boolean|WP_Error True if set successfully; WP_Error on failure.229 * @return true|WP_Error True if set successfully; WP_Error on failure. 230 230 */ 231 231 public function set_quality( $quality = null ) { … … 446 446 * 447 447 * @param string $extension 448 * @return string| boolean448 * @return string|false 449 449 */ 450 450 protected static function get_mime_type( $extension = null ) { … … 472 472 * 473 473 * @param string $mime_type 474 * @return string| boolean474 * @return string|false 475 475 */ 476 476 protected static function get_extension( $mime_type = null ) {
Note: See TracChangeset
for help on using the changeset viewer.