Make WordPress Core

Changeset 30644


Ignore:
Timestamp:
11/30/2014 09:58:54 AM (11 years ago)
Author:
DrewAPicture
Message:

Improve the inline documentation for image_edit_apply_changes().

Including:

  • Add a correct type (array) for the $changes parameter
  • Add the @since version
  • Add proper descriptions for both parameters and the return value.

Props tillkruess for the initial patch.
See #30508.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image-edit.php

    r30203 r30644  
    404404 * Performs group of changes on Editor specified.
    405405 *
    406  * @param WP_Image_Editor $image
    407  * @param type $changes
    408  * @return WP_Image_Editor
     406 * @since 2.9.0
     407 *
     408 * @param WP_Image_Editor $image   {@see WP_Image_Editor} instance.
     409 * @param array           $changes Array of change operations.
     410 * @return WP_Image_Editor {@see WP_Image_Editor} instance with changes applied.
    409411 */
    410412function image_edit_apply_changes( $image, $changes ) {
Note: See TracChangeset for help on using the changeset viewer.