Changeset 23103
- Timestamp:
- 12/06/2012 07:56:04 AM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-image-editor-gd.php
r23038 r23103 242 242 imagedestroy( $this->image ); 243 243 $this->image = $dst; 244 $this->update_size( $dst_w, $dst_h);244 $this->update_size(); 245 245 return true; 246 246 } -
trunk/wp-includes/class-wp-image-editor-imagick.php
r23038 r23103 318 318 319 319 $this->image->scaleImage( $dst_w, $dst_h ); 320 return $this->update_size( $dst_w, $dst_h);320 return $this->update_size(); 321 321 } 322 322 } … … 324 324 return new WP_Error( 'image_crop_error', $e->getMessage() ); 325 325 } 326 return $this->update_size( $src_w, $src_h);326 return $this->update_size(); 327 327 } 328 328 -
trunk/wp-includes/class-wp-image-editor.php
r23038 r23103 186 186 protected function update_size( $width = null, $height = null ) { 187 187 $this->size = array( 188 'width' => $width,189 'height' => $height188 'width' => (int) $width, 189 'height' => (int) $height 190 190 ); 191 191 return true;
Note: See TracChangeset
for help on using the changeset viewer.