Changeset 49108 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r48798 r49108 787 787 } 788 788 789 $fwidth = ! empty( $_REQUEST['fwidth'] ) ? intval( $_REQUEST['fwidth'] ): 0;790 $fheight = ! empty( $_REQUEST['fheight'] ) ? intval( $_REQUEST['fheight'] ): 0;789 $fwidth = ! empty( $_REQUEST['fwidth'] ) ? (int) $_REQUEST['fwidth'] : 0; 790 $fheight = ! empty( $_REQUEST['fheight'] ) ? (int) $_REQUEST['fheight'] : 0; 791 791 $target = ! empty( $_REQUEST['target'] ) ? preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['target'] ) : ''; 792 792 $scale = ! empty( $_REQUEST['do'] ) && 'scale' === $_REQUEST['do']; … … 945 945 946 946 if ( isset( $_wp_additional_image_sizes[ $size ] ) ) { 947 $width = intval( $_wp_additional_image_sizes[ $size ]['width'] );948 $height = intval( $_wp_additional_image_sizes[ $size ]['height'] );947 $width = (int) $_wp_additional_image_sizes[ $size ]['width']; 948 $height = (int) $_wp_additional_image_sizes[ $size ]['height']; 949 949 $crop = ( $nocrop ) ? false : $_wp_additional_image_sizes[ $size ]['crop']; 950 950 } else {
Note: See TracChangeset
for help on using the changeset viewer.