• $_wp_additional_image_sizes does not include core sizes.

    This means when I go to use a core size (i.e. ‘large’) it does not work.

    wordpress/wp-content/plugins/thumbnails/plugin.php:157
    if (isset($sizes[$size])) { …
    $sizes does not include ‘thumbnail’, ‘medium’, or ‘large’;

    get_intermediate_image_sizes() includes all these sizes.

Viewing 1 replies (of 1 total)
  • Thread Starter nedmartin.org

    (@nedmartinorg)

    Replacing lines 144, 145 in plugin.php:

    if (function_exists('wp_get_additional_image_sizes')) {
                $sizes = wp_get_additional_image_sizes();

    with

    if (function_exists('wp_get_registered_image_subsizes')) {
                $sizes = wp_get_registered_image_subsizes();

    fixes the issue.

Viewing 1 replies (of 1 total)
  • The topic ‘$_wp_additional_image_sizes does not include core sizes’ is closed to new replies.