Changeset 24006 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 04/17/2013 04:08:46 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-advanced.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r23993 r24006 134 134 wp_enqueue_style( 'wp-mediaelement' ); 135 135 $post_format = get_post_format(); 136 137 if ( ! $post_format ) 136 $post_format_set_class = 'post-format-set'; 137 138 if ( ! $post_format ) { 138 139 $post_format = 'standard'; 140 if ( 'auto-draft' == $post->post_status ) 141 $post_format_set_class = ''; 142 } 139 143 140 144 $format_class = " class='wp-format-{$post_format}'"; … … 143 147 $all_post_formats = array( 144 148 'standard' => array ( 145 'description' => __( ' Add a title and use the editorto compose your post.' )149 'description' => __( 'Use the editor below to compose your post.' ) 146 150 ), 147 151 'image' => array ( 148 'description' => __( 'Select or upload an image to usefor your post.' )152 'description' => __( 'Select or upload an image for your post.' ) 149 153 ), 150 154 'gallery' => array ( … … 167 171 ), 168 172 'quote' => array ( 169 'description' => __( 'Copy a quotation into the box . Also add thesource and URL if you have them.' )173 'description' => __( 'Copy a quotation into the box below. Add a source and URL if you have them.' ) 170 174 ), 171 175 'aside' => array ( 172 'description' => __( ' An aside is a quick thought or side topic. Use the editor to compose one.' )176 'description' => __( 'Use the editor to share a quick thought or side topic.' ) 173 177 ) 174 178 ); … … 182 186 } 183 187 184 $post_format_options .= '<a ' . $class . ' href="?format=' . $slug . '" data-description="' . $attr['description'] . '" data-wp-format="' . $slug . '" title="' . ucfirst( sprintf( __( '%s Post' ), $slug ) ) . '"><div class="' . $slug . '"></div></a>';188 $post_format_options .= '<a ' . $class . ' href="?format=' . $slug . '" data-description="' . $attr['description'] . '" data-wp-format="' . $slug . '" title="' . ucfirst( $slug ) . '"><div class="' . $slug . '"></div><span class="post-format-title">' . ucfirst( $slug ) . '</span></a>'; 185 189 } 186 190 … … 359 363 ?> 360 364 361 <div class="wrap ">365 <div class="wrap <?php echo $post_format_set_class; ?>"> 362 366 <?php screen_icon(); ?> 363 367 <h2><?php … … 375 379 <p><?php _e("You have lost your connection with the server, and saving has been disabled. This message will vanish once you've reconnected."); ?></p> 376 380 </div> 381 <?php if ( ! empty( $post_format_options ) ) : ?> 382 <div class="post-format-options"> 383 <?php echo $post_format_options; ?> 384 </div> 385 <?php endif; ?> 377 386 <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>> 378 387 <?php wp_nonce_field($nonce_action); ?> … … 401 410 <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>"> 402 411 <div id="post-body-content"<?php echo $format_class; ?>> 403 404 <?php if ( ! empty( $post_format_options ) ) : ?>405 <div class="post-format-options">406 <span class="post-format-tip">Standard Post</span>407 <?php echo $post_format_options; ?>408 </div>409 <?php endif; ?>410 411 412 <?php if ( post_type_supports($post_type, 'title') ) { ?> 412 413 <div id="titlediv"> … … 425 426 $has_sample_permalink = $sample_permalink_html && 'auto-draft' != $post->post_status; 426 427 ?> 427 <div id="edit-slug-box" class="hide-if-no-js <?php if ( ! $has_sample_permalink ) echo ' hidden' ?>">428 <div id="edit-slug-box" class="hide-if-no-js"> 428 429 <?php 429 430 if ( $has_sample_permalink )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)