Make WordPress Core


Ignore:
Timestamp:
09/19/2022 10:51:53 PM (17 months ago)
Author:
davidbaumwald
Message:

Media: Revert WebP generation.

Given Matt's recent post about removing WebP from core and possibly implementing the feature in a future Canonical Plugin, this change reverts changesets [54086], [54094], and [54097]. Additionally, [54210] contained a coding standards follow-up in one of the affected files that is no longer needed.

Reverts [54086], [54094], and [54097].

Props SergeyBiryukov.
See #55443.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image-edit.php

    r54086 r54226  
    918918
    919919    // Save the full-size file, also needed to create sub-sizes.
    920     $saved = wp_save_image_file( $new_path, $img, $post->post_mime_type, $post_id );
    921     if ( ! $saved ) {
     920    if ( ! wp_save_image_file( $new_path, $img, $post->post_mime_type, $post_id ) ) {
    922921        $return->error = esc_js( __( 'Unable to save the image.' ) );
    923922        return $return;
    924923    }
    925     $new_path = $saved['path'];
    926924
    927925    if ( 'nothumb' === $target || 'all' === $target || 'full' === $target || $scaled ) {
Note: See TracChangeset for help on using the changeset viewer.