Changeset 43861 for branches/5.0/src/wp-admin/edit-form-blocks.php
- Timestamp:
- 11/03/2018 07:56:28 AM (7 years ago)
- File:
-
- 1 edited
-
branches/5.0/src/wp-admin/edit-form-blocks.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/edit-form-blocks.php
r43857 r43861 209 209 } 210 210 211 // Image sizes. 212 $image_sizes = get_intermediate_image_sizes(); 213 $image_sizes[] = 'full'; 214 215 /** This filter is documented in wp-admin/includes/media.php */ 216 $image_size_names = apply_filters( 217 'image_size_names_choose', 218 array( 219 'thumbnail' => __( 'Thumbnail' ), 220 'medium' => __( 'Medium' ), 221 'large' => __( 'Large' ), 222 'full' => __( 'Full Size' ), 223 ) 224 ); 225 226 $available_image_sizes = array(); 227 foreach ( $image_sizes as $image_size_slug ) { 228 $available_image_sizes[] = array( 229 'slug' => $image_size_slug, 230 'name' => isset( $image_size_names[ $image_size_slug ] ) ? $image_size_names[ $image_size_slug ] : $image_size_slug, 231 ); 232 } 233 211 234 // Lock settings. 212 235 $user_id = wp_check_post_lock( $post->ID ); … … 264 287 'allowedMimeTypes' => get_allowed_mime_types(), 265 288 'styles' => $styles, 289 'availableImageSizes' => $available_image_sizes, 266 290 'postLock' => $lock_details, 267 291 'postLockUtils' => array( … … 270 294 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 271 295 ), 296 297 // Whether or not to load the 'postcustom' meta box is stored as a user meta 298 // field so that we're not always loading its assets. 299 'enableCustomFields' => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ), 272 300 ); 273 301
Note: See TracChangeset
for help on using the changeset viewer.