WordPress.org

Make WordPress Core

Ticket #34981: 34981.2.diff

File 34981.2.diff, 691 bytes (added by jorbin, 3 years ago)
  • src/wp-includes/media.php

     
    31313131                $sizes = array();
    31323132
    31333133                /** This filter is documented in wp-admin/includes/media.php */
    3134                 $possible_sizes = apply_filters( 'image_size_names_choose', array(
     3134                $possible_sizes = array(
    31353135                        'thumbnail' => __('Thumbnail'),
    31363136                        'medium'    => __('Medium'),
    31373137                        'large'     => __('Large'),
    31383138                        'full'      => __('Full Size'),
    3139                 ) );
     3139                );
    31403140                unset( $possible_sizes['full'] );
    31413141
    31423142                // Loop through all potential sizes that may be chosen. Try to do this with some efficiency.