Ticket #34981: 34981.diff
| File 34981.diff, 3.4 KB (added by , 10 years ago) |
|---|
-
src/wp-admin/custom-background.php
467 467 if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit; 468 468 $attachment_id = absint($_POST['attachment_id']); 469 469 /** This filter is documented in wp-admin/includes/media.php */ 470 $sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) )); 470 $sizes = array_keys( apply_filters( 'image_size_names_choose', array( 471 'thumbnail' => __( 'Thumbnail' ), 472 'medium' => __( 'Medium' ), 473 'large' => __( 'Large' ), 474 'full' => __( 'Full Size' ) 475 ), __METHOD__ ) ); 471 476 $size = 'thumbnail'; 472 477 if ( in_array( $_POST['size'], $sizes ) ) 473 478 $size = esc_attr( $_POST['size'] ); -
src/wp-admin/includes/media.php
983 983 * 984 984 * @since 3.3.0 985 985 * 986 * @param array $size_names Array of image sizes and their names. Default values 987 * include 'Thumbnail', 'Medium', 'Large', 'Full Size'. 986 * @param array $size_names Array of image sizes and their names. Default values 987 * include 'Thumbnail', 'Medium', 'Large', 'Full Size'. 988 * @param string $context The current context: function name, method name, or media template ID. 988 989 */ 989 990 $size_names = apply_filters( 'image_size_names_choose', array( 990 991 'thumbnail' => __( 'Thumbnail' ), … … 991 992 'medium' => __( 'Medium' ), 992 993 'large' => __( 'Large' ), 993 994 'full' => __( 'Full Size' ) 994 ) );995 ), __FUNCTION__ ); 995 996 996 997 if ( empty( $check ) ) { 997 998 $check = get_user_setting('imgsize', 'medium'); -
src/wp-includes/media-template.php
688 688 'medium' => __('Medium'), 689 689 'large' => __('Large'), 690 690 'full' => __('Full Size'), 691 ) );691 ), 'tmpl-attachment-display-settings' ); 692 692 693 693 foreach ( $sizes as $value => $name ) : ?> 694 694 <# … … 763 763 'medium' => __( 'Medium' ), 764 764 'large' => __( 'Large' ), 765 765 'full' => __( 'Full Size' ), 766 ) );766 ), 'tmpl-gallery-settings' ); 767 767 768 768 foreach ( $size_names as $size => $label ) : ?> 769 769 <option value="<?php echo esc_attr( $size ); ?>"> … … 937 937 'medium' => __('Medium'), 938 938 'large' => __('Large'), 939 939 'full' => __('Full Size'), 940 ) );940 ), 'tmpl-image-details' ); 941 941 942 942 foreach ( $sizes as $value => $name ) : ?> 943 943 <# -
src/wp-includes/media.php
3117 3117 'medium' => __('Medium'), 3118 3118 'large' => __('Large'), 3119 3119 'full' => __('Full Size'), 3120 ) );3120 ), __FUNCTION__ ); 3121 3121 unset( $possible_sizes['full'] ); 3122 3122 3123 3123 // Loop through all potential sizes that may be chosen. Try to do this with some efficiency.