WordPress.org

Make WordPress Core

Changeset 18996


Ignore:
Timestamp:
10/18/2011 08:33:34 PM (7 years ago)
Author:
nacin
Message:

Use get_intermediate_image_sizes() in image edit functions. props mau, fixes #17475.

File:
1 edited

Legend:

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

    r17749 r18996  
    432432    $parts = pathinfo($file);
    433433    $suffix = time() . rand(100, 999);
    434     $default_sizes = apply_filters( 'intermediate_image_sizes', array('large', 'medium', 'thumbnail') );
     434    $default_sizes = get_intermediate_image_sizes();
    435435
    436436    if ( isset($backup_sizes['full-orig']) && is_array($backup_sizes['full-orig']) ) {
     
    604604
    605605        if ( $success && ('nothumb' == $target || 'all' == $target) ) {
    606             $sizes = apply_filters( 'intermediate_image_sizes', array('large', 'medium', 'thumbnail') );
     606            $sizes = get_intermediate_image_sizes();
    607607            if ( 'nothumb' == $target )
    608608                $sizes = array_diff( $sizes, array('thumbnail') );
Note: See TracChangeset for help on using the changeset viewer.