mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
Docs: Fix typo in references to WP_Error in some DocBlocks.
See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@49769 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3505,7 +3505,8 @@ function is_gd_image( $image ) {
|
||||
*
|
||||
* @param int $width Image width in pixels.
|
||||
* @param int $height Image height in pixels.
|
||||
* @return resource|GdImage|false The GD image resource or GdImage instance on success. False on failure.
|
||||
* @return resource|GdImage|false The GD image resource or GdImage instance on success.
|
||||
* False on failure.
|
||||
*/
|
||||
function wp_imagecreatetruecolor( $width, $height ) {
|
||||
$img = imagecreatetruecolor( $width, $height );
|
||||
@@ -3578,8 +3579,8 @@ function wp_max_upload_size() {
|
||||
* @param string $path Path to the file to load.
|
||||
* @param array $args Optional. Additional arguments for retrieving the image editor.
|
||||
* Default empty array.
|
||||
* @return WP_Image_Editor|WP_Error The WP_Image_Editor object if successful, an WP_Error
|
||||
* object otherwise.
|
||||
* @return WP_Image_Editor|WP_Error The WP_Image_Editor object on success,
|
||||
* a WP_Error object otherwise.
|
||||
*/
|
||||
function wp_get_image_editor( $path, $args = array() ) {
|
||||
$args['path'] = $path;
|
||||
@@ -3630,8 +3631,8 @@ function wp_image_editor_supports( $args = array() ) {
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @param array $args Optional. Array of arguments for choosing a capable editor. Default empty array.
|
||||
* @return string|false Class name for the first editor that claims to support the request. False if no
|
||||
* editor claims to support the request.
|
||||
* @return string|false Class name for the first editor that claims to support the request.
|
||||
* False if no editor claims to support the request.
|
||||
*/
|
||||
function _wp_image_editor_choose( $args = array() ) {
|
||||
require_once ABSPATH . WPINC . '/class-wp-image-editor.php';
|
||||
|
||||
Reference in New Issue
Block a user