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

git-svn-id: https://develop.svn.wordpress.org/trunk@18802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-09-28 17:27:48 +00:00
parent 412422f15c
commit bbd210992d
10 changed files with 19 additions and 24 deletions
+1 -1
View File
@@ -868,7 +868,7 @@ function image_align_input_fields( $post, $checked = '' ) {
function image_size_input_fields( $post, $check = '' ) {
// get a list of the actual pixel dimensions of each possible intermediate version of this image
$size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size'));
$size_names = apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) );
if ( empty($check) )
$check = get_user_setting('imgsize', 'medium');