Docs: Remove @access notations from method DocBlocks in wp-includes/* classes.
Prior to about 2013, many class methods lacked even access modifiers which made the `@access` notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs. See #41452. Built from https://develop.svn.wordpress.org/trunk@41162 git-svn-id: http://core.svn.wordpress.org/trunk@41002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -17,7 +17,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
/**
|
||||
* Imagick object.
|
||||
*
|
||||
* @access protected
|
||||
* @var Imagick
|
||||
*/
|
||||
protected $image;
|
||||
@@ -39,7 +38,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @static
|
||||
* @access public
|
||||
*
|
||||
* @param array $args
|
||||
* @return bool
|
||||
@@ -98,7 +96,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @static
|
||||
* @access public
|
||||
*
|
||||
* @param string $mime_type
|
||||
* @return bool
|
||||
@@ -126,7 +123,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Loads image from $this->file into new Imagick Object.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return true|WP_Error True if loaded; WP_Error on failure.
|
||||
*/
|
||||
@@ -181,7 +177,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Sets Image Compression quality on a 1-100% scale.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param int $quality Compression Quality. Range: [1,100]
|
||||
* @return true|WP_Error True if set successfully; WP_Error on failure.
|
||||
@@ -214,7 +209,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Sets or updates current image size.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access protected
|
||||
*
|
||||
* @param int $width
|
||||
* @param int $height
|
||||
@@ -249,7 +243,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* maintain aspect ratio according to the provided dimension.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param int|null $max_w Image width.
|
||||
* @param int|null $max_h Image height.
|
||||
@@ -285,7 +278,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* which resizes an image to given dimensions and removes any associated profiles.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access protected
|
||||
*
|
||||
* @param int $dst_w The destination width.
|
||||
* @param int $dst_h The destination height.
|
||||
@@ -417,7 +409,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Resize multiple images from a single source.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param array $sizes {
|
||||
* An array of image size arrays. Default sizes are 'small', 'medium', 'medium_large', 'large'.
|
||||
@@ -488,7 +479,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Crops Image.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param int $src_x The start x position to crop from.
|
||||
* @param int $src_y The start y position to crop from.
|
||||
@@ -535,7 +525,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Rotates current image counter-clockwise by $angle.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param float $angle
|
||||
* @return true|WP_Error
|
||||
@@ -570,7 +559,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Flips current image.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param bool $horz Flip along Horizontal Axis
|
||||
* @param bool $vert Flip along Vertical Axis
|
||||
@@ -594,7 +582,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Saves current image to file.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $destfilename
|
||||
* @param string $mime_type
|
||||
@@ -664,7 +651,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Streams current image to browser.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $mime_type
|
||||
* @return true|WP_Error
|
||||
@@ -694,7 +680,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Strips all image meta except color profiles from an image.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access protected
|
||||
*
|
||||
* @return true|WP_Error True if stripping metadata was successful. WP_Error object on error.
|
||||
*/
|
||||
@@ -747,7 +732,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
* Increases rendering DPI and only loads first page.
|
||||
*
|
||||
* @since 4.7.0
|
||||
* @access protected
|
||||
*
|
||||
* @return string|WP_Error File to load or WP_Error on failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user