summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/class-wp-image-editor.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-includes/class-wp-image-editor.php')
-rw-r--r--src/wp-includes/class-wp-image-editor.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wp-includes/class-wp-image-editor.php b/src/wp-includes/class-wp-image-editor.php
index 033601ab2a..7dcdc91d5a 100644
--- a/src/wp-includes/class-wp-image-editor.php
+++ b/src/wp-includes/class-wp-image-editor.php
@@ -64,7 +64,7 @@ abstract class WP_Image_Editor {
* @since 3.5.0
* @abstract
*
- * @return bool|WP_Error True if loaded; WP_Error on failure.
+ * @return true|WP_Error True if loaded; WP_Error on failure.
*/
abstract public function load();
@@ -93,7 +93,7 @@ abstract class WP_Image_Editor {
* @param int|null $max_w Image width.
* @param int|null $max_h Image height.
* @param bool $crop
- * @return bool|WP_Error
+ * @return true|WP_Error
*/
abstract public function resize( $max_w, $max_h, $crop = false );
@@ -129,7 +129,7 @@ abstract class WP_Image_Editor {
* @param int $dst_w Optional. The destination width.
* @param int $dst_h Optional. The destination height.
* @param bool $src_abs Optional. If the source crop points are absolute.
- * @return bool|WP_Error
+ * @return true|WP_Error
*/
abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );
@@ -140,7 +140,7 @@ abstract class WP_Image_Editor {
* @abstract
*
* @param float $angle
- * @return bool|WP_Error
+ * @return true|WP_Error
*/
abstract public function rotate( $angle );
@@ -152,7 +152,7 @@ abstract class WP_Image_Editor {
*
* @param bool $horz Flip along Horizontal Axis
* @param bool $vert Flip along Vertical Axis
- * @return bool|WP_Error
+ * @return true|WP_Error
*/
abstract public function flip( $horz, $vert );
@@ -163,7 +163,7 @@ abstract class WP_Image_Editor {
* @abstract
*
* @param string $mime_type The mime type of the image.
- * @return bool|WP_Error True on success, WP_Error object or false on failure.
+ * @return true|WP_Error True on success, WP_Error object on failure.
*/
abstract public function stream( $mime_type = null );