Changeset 49927 for trunk/src/wp-includes/class-wp-image-editor.php
- Timestamp:
- 01/03/2021 10:02:13 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor.php
r49230 r49927 65 65 * @abstract 66 66 * 67 * @return bool|WP_Error True if loaded; WP_Error on failure.67 * @return true|WP_Error True if loaded; WP_Error on failure. 68 68 */ 69 69 abstract public function load(); … … 94 94 * @param int|null $max_h Image height. 95 95 * @param bool $crop 96 * @return bool|WP_Error96 * @return true|WP_Error 97 97 */ 98 98 abstract public function resize( $max_w, $max_h, $crop = false ); … … 130 130 * @param int $dst_h Optional. The destination height. 131 131 * @param bool $src_abs Optional. If the source crop points are absolute. 132 * @return bool|WP_Error132 * @return true|WP_Error 133 133 */ 134 134 abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ); … … 141 141 * 142 142 * @param float $angle 143 * @return bool|WP_Error143 * @return true|WP_Error 144 144 */ 145 145 abstract public function rotate( $angle ); … … 153 153 * @param bool $horz Flip along Horizontal Axis 154 154 * @param bool $vert Flip along Vertical Axis 155 * @return bool|WP_Error155 * @return true|WP_Error 156 156 */ 157 157 abstract public function flip( $horz, $vert ); … … 164 164 * 165 165 * @param string $mime_type The mime type of the image. 166 * @return bool|WP_Error True on success, WP_Error object or falseon failure.166 * @return true|WP_Error True on success, WP_Error object on failure. 167 167 */ 168 168 abstract public function stream( $mime_type = null );
Note: See TracChangeset
for help on using the changeset viewer.