Changeset 44261 for trunk/src/wp-admin/edit-form-blocks.php
- Timestamp:
- 12/17/2018 04:50:48 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43884,43888
- Property svn:mergeinfo changed
-
trunk/src/wp-admin/edit-form-blocks.php
r44260 r44261 105 105 // Override "(Auto Draft)" new post default title with empty string, or filtered value. 106 106 $initial_edits = array( 107 'title' => array( 108 'raw' => $post->post_title, 109 ), 110 'content' => array( 111 'raw' => $post->post_content, 112 ), 113 'excerpt' => array( 114 'raw' => $post->post_excerpt, 115 ), 107 'title' => $post->post_title, 108 'content' => $post->post_content, 109 'excerpt' => $post->post_excerpt, 116 110 ); 117 111 } … … 204 198 205 199 // Image sizes. 206 $image_sizes = get_intermediate_image_sizes();207 $image_sizes[] = 'full';208 200 209 201 /** This filter is documented in wp-admin/includes/media.php */ … … 219 211 220 212 $available_image_sizes = array(); 221 foreach ( $image_size s as $image_size_slug) {213 foreach ( $image_size_names as $image_size_slug => $image_size_name ) { 222 214 $available_image_sizes[] = array( 223 215 'slug' => $image_size_slug, 224 'name' => isset( $image_size_names[ $image_size_slug ] ) ? $image_size_names[ $image_size_slug ] : $image_size_slug,216 'name' => $image_size_name, 225 217 ); 226 218 } … … 261 253 * @since 5.0.0 262 254 * 263 * @param string $text Placeholder text. Default ' Write your story'.255 * @param string $text Placeholder text. Default 'Start writing or type / to choose a block'. 264 256 * @param WP_Post $post Post object. 265 257 */ 266 $body_placeholder = apply_filters( 'write_your_story', __( ' Write your story' ), $post );258 $body_placeholder = apply_filters( 'write_your_story', __( 'Start writing or type / to choose a block' ), $post ); 267 259 268 260 $editor_settings = array( … … 281 273 'allowedMimeTypes' => get_allowed_mime_types(), 282 274 'styles' => $styles, 283 ' availableImageSizes'=> $available_image_sizes,275 'imageSizes' => $available_image_sizes, 284 276 'postLock' => $lock_details, 285 277 'postLockUtils' => array(
Note: See TracChangeset
for help on using the changeset viewer.