wp-includes/class-wp-image-editor-gd.php:151Sets or updates current image size.
$widthintoptionalfalse$heightintoptionalfalsetrue protected function update_size( $width = false, $height = false ) { if ( ! $width ) { $width = imagesx( $this->image ); } if ( ! $height ) { $height = imagesy( $this->image ); } return parent::update_size( $width, $height ); }Introduced in 3.5.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$width retyped from int to int|null.verified against source$height retyped from int to int|null.verified against sourcesrc/wp-includes/class-wp-image-editor-gd.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.