Changeset 51790
- Timestamp:
- 09/09/2021 08:38:20 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r51298 r51790 424 424 * 425 425 * @since 3.5.0 426 * 427 * @param string|null $filename 428 * @param string|null $mime_type 426 * @since 5.9.0 Renamed `$filename` to `$destfilename` to match parent class 427 * for PHP 8 named parameter support. 428 * 429 * @param string|null $destfilename Optional. Destination filename. Default null. 430 * @param string|null $mime_type Optional. The mime-type. Default null. 429 431 * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} 430 432 */ 431 public function save( $ filename = null, $mime_type = null ) {432 $saved = $this->_save( $this->image, $ filename, $mime_type );433 public function save( $destfilename = null, $mime_type = null ) { 434 $saved = $this->_save( $this->image, $destfilename, $mime_type ); 433 435 434 436 if ( ! is_wp_error( $saved ) ) { -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r51435 r51790 663 663 * @since 3.5.0 664 664 * 665 * @param string $destfilename 666 * @param string $mime_type 665 * @param string $destfilename Optional. Destination filename. Default null. 666 * @param string $mime_type Optional. The mime-type. Default null. 667 667 * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} 668 668 */ -
trunk/src/wp-includes/class-wp-image-editor.php
r51717 r51790 78 78 * @abstract 79 79 * 80 * @param string $destfilename 81 * @param string $mime_type 80 * @param string $destfilename Optional. Destination filename. Default null. 81 * @param string $mime_type Optional. The mime-type. Default null. 82 82 * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} 83 83 */
Note: See TracChangeset
for help on using the changeset viewer.