Make WordPress Core


Ignore:
Timestamp:
09/05/2019 10:26:50 PM (5 years ago)
Author:
azaozz
Message:

Media: Add two new intermediate image sizes, 1536px and 2048px. They are meant to enhance the way WordPress displays images on the front-end on larger, high-density devices. They make it possible to generate more suitable srcset and sizes attributes, and not use the original, often non-optimized image.

Also change the default max_srcset_image_width value to match the new max size.

Props pierlo, azaozz.
See #43524.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r45901 r46066  
    520520add_action( 'wp_playlist_scripts', 'wp_playlist_scripts' );
    521521add_action( 'customize_controls_enqueue_scripts', 'wp_plupload_default_settings' );
     522add_action( 'plugins_loaded', '_wp_add_additional_image_sizes', 0 );
    522523
    523524// Nav menu
Note: See TracChangeset for help on using the changeset viewer.