Make WordPress Core


Ignore:
Timestamp:
09/28/2011 05:27:48 PM (13 years ago)
Author:
azaozz
Message:

Add filter so the users can select custom image sizes added by themes and plugins, props alexkingorg, fixes #18520

File:
1 edited

Legend:

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

    r18758 r18802  
    869869
    870870        // get a list of the actual pixel dimensions of each possible intermediate version of this image
    871         $size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size'));
     871        $size_names = apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) );
    872872
    873873        if ( empty($check) )
Note: See TracChangeset for help on using the changeset viewer.