WordPress.org

Make WordPress Core

Ticket #6821: 6821.docs.src_abs.diff

File 6821.docs.src_abs.diff, 1.6 KB (added by mikeschroder, 6 years ago)

src_abs Docs Fixes

  • wp-includes/class-wp-image-editor-gd.php

    diff --git wp-includes/class-wp-image-editor-gd.php wp-includes/class-wp-image-editor-gd.php
    index 3e7e43f..90ce4aa 100644
    class WP_Image_Editor_GD extends WP_Image_Editor { 
    192192         * @param int $src_h The height to crop.
    193193         * @param int $dst_w Optional. The destination width.
    194194         * @param int $dst_h Optional. The destination height.
    195          * @param int $src_abs Optional. If the source crop points are absolute.
     195         * @param boolean $src_abs Optional. If the source crop points are absolute.
    196196         * @return boolean|WP_Error
    197197         */
    198198        public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
  • wp-includes/class-wp-image-editor-imagick.php

    diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php
    index f7012d5..372ce47 100644
    class WP_Image_Editor_Imagick extends WP_Image_Editor { 
    243243         * @param int $src_h The height to crop.
    244244         * @param int $dst_w Optional. The destination width.
    245245         * @param int $dst_h Optional. The destination height.
    246          * @param int $src_abs Optional. If the source crop points are absolute.
     246         * @param boolean $src_abs Optional. If the source crop points are absolute.
    247247         * @return boolean|WP_Error
    248248         */
    249249        public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
    250                 // Not sure this is compatible.
    251250                if ( $src_abs ) {
    252251                        $src_w -= $src_x;
    253252                        $src_h -= $src_y;