WordPress.org

Make WordPress Core

Changeset 49769


Ignore:
Timestamp:
12/08/2020 11:49:23 AM (11 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in references to WP_Error in some DocBlocks.

See #51800.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r49751 r49769  
    35063506 * @param int $width  Image width in pixels.
    35073507 * @param int $height Image height in pixels.
    3508  * @return resource|GdImage|false The GD image resource or GdImage instance on success. False on failure.
     3508 * @return resource|GdImage|false The GD image resource or GdImage instance on success.
     3509 *                                False on failure.
    35093510 */
    35103511function wp_imagecreatetruecolor( $width, $height ) {
     
    35793580 * @param array  $args Optional. Additional arguments for retrieving the image editor.
    35803581 *                     Default empty array.
    3581  * @return WP_Image_Editor|WP_Error The WP_Image_Editor object if successful, an WP_Error
    3582  *                                  object otherwise.
     3582 * @return WP_Image_Editor|WP_Error The WP_Image_Editor object on success,
     3583 *                                  a WP_Error object otherwise.
    35833584 */
    35843585function wp_get_image_editor( $path, $args = array() ) {
     
    36313632 *
    36323633 * @param array $args Optional. Array of arguments for choosing a capable editor. Default empty array.
    3633  * @return string|false Class name for the first editor that claims to support the request. False if no
    3634  *                     editor claims to support the request.
     3634 * @return string|false Class name for the first editor that claims to support the request.
     3635 *                      False if no editor claims to support the request.
    36353636 */
    36363637function _wp_image_editor_choose( $args = array() ) {
  • trunk/src/wp-includes/taxonomy.php

    r49693 r49769  
    725725 * Retrieve object_ids of valid taxonomy and term.
    726726 *
    727  * The strings of $taxonomies must exist before this function will continue. On
    728  * failure of finding a valid taxonomy, it will return an WP_Error class, kind
    729  * of like Exceptions in PHP 5, except you can't catch them. Even so, you can
    730  * still test for the WP_Error class and get the error message.
     727 * The strings of $taxonomies must exist before this function will continue.
     728 * On failure of finding a valid taxonomy, it will return a WP_Error class,
     729 * kind of like Exceptions in PHP 5, except you can't catch them. Even so,
     730 * you can still test for the WP_Error class and get the error message.
    731731 *
    732732 * The $terms aren't checked the same as $taxonomies, but still need to exist
Note: See TracChangeset for help on using the changeset viewer.