mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Add missing doc blocks to wp-image-editor*.php.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -37,6 +37,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $args
|
||||
* @return boolean
|
||||
*/
|
||||
public static function test( $args = array() ) {
|
||||
@@ -112,7 +113,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @since 3.5.0
|
||||
* @access protected
|
||||
*
|
||||
* @return boolean|WP_Error True if loaded; WP_Error on failure.
|
||||
* @return true|WP_Error True if loaded; WP_Error on failure.
|
||||
*/
|
||||
public function load() {
|
||||
if ( $this->image instanceof Imagick )
|
||||
@@ -156,7 +157,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @access public
|
||||
*
|
||||
* @param int $quality Compression Quality. Range: [1,100]
|
||||
* @return boolean|WP_Error True if set successfully; WP_Error on failure.
|
||||
* @return true|WP_Error True if set successfully; WP_Error on failure.
|
||||
*/
|
||||
public function set_quality( $quality = null ) {
|
||||
$quality_result = parent::set_quality( $quality );
|
||||
@@ -374,7 +375,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @access public
|
||||
*
|
||||
* @param float $angle
|
||||
* @return boolean|WP_Error
|
||||
* @return true|WP_Error
|
||||
*/
|
||||
public function rotate( $angle ) {
|
||||
/**
|
||||
@@ -405,7 +406,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
*
|
||||
* @param boolean $horz Flip along Horizontal Axis
|
||||
* @param boolean $vert Flip along Vertical Axis
|
||||
* @returns boolean|WP_Error
|
||||
* @returns true|WP_Error
|
||||
*/
|
||||
public function flip( $horz, $vert ) {
|
||||
try {
|
||||
@@ -449,6 +450,13 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
return $saved;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Imagick $image
|
||||
* @param string $filename
|
||||
* @param string $mime_type
|
||||
* @return array|WP_Error
|
||||
*/
|
||||
protected function _save( $image, $filename = null, $mime_type = null ) {
|
||||
list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type );
|
||||
|
||||
@@ -491,7 +499,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @access public
|
||||
*
|
||||
* @param string $mime_type
|
||||
* @return boolean|WP_Error
|
||||
* @return true|WP_Error
|
||||
*/
|
||||
public function stream( $mime_type = null ) {
|
||||
list( $filename, $extension, $mime_type ) = $this->get_output_format( null, $mime_type );
|
||||
|
||||
Reference in New Issue
Block a user