Ticket #23198: 23198.2.diff
File 23198.2.diff, 2.6 KB (added by , 11 years ago) |
---|
-
wp-includes/post-template.php
1309 1309 $date = date_i18n( $datef, strtotime( $revision->post_modified ) ); 1310 1310 if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) ) 1311 1311 $date = "<a href='$link'>$date</a>"; 1312 1312 1313 1313 $revision_date_author = sprintf( 1314 1314 '%s %s, %s %s (%s)', 1315 1315 $gravatar, -
wp-includes/class-wp-editor.php
395 395 } 396 396 397 397 $body_class = $editor_id; 398 $post = get_post(); 398 399 399 if ( $post = get_post() ) 400 $body_class .= ' post-type-' . $post->post_type; 400 if ( $post ) { 401 $body_class .= ' post-type-' . $post->post_type . ' post-status-' . $post->post_status; 402 if ( post_type_supports( $post->post_type, 'post-formats' ) ) { 403 $post_format = get_post_format( $post ); 404 if ( $post_format && ! is_wp_error( $post_format ) ) 405 $body_class .= ' post-format-' . sanitize_html_class( $post_format ); 406 else 407 $body_class .= ' post-format-standard'; 408 } 409 } 401 410 402 411 if ( !empty($set['tinymce']['body_class']) ) { 403 412 $body_class .= ' ' . $set['tinymce']['body_class']; -
wp-admin/js/post-formats.js
12 12 $this.addClass('nav-tab-active').blur(); 13 13 $('#post_format').val(format); 14 14 $('#post-body-content').attr('class', 'wp-format-' + format ); 15 16 var ed = tinymce.get( 'content' ), edBody, format; 17 if ( ed && this.id ) { 18 edBody = ed.getBody(); 19 format = 'post-format-' + this.id; // also need to handle 'post-format-0' 20 edBody.className = edBody.className.replace( /\bpost-format-[^ ]+/, '' ); 21 ed.dom.addClass( edBody, format ); 22 } 15 23 }); 16 24 17 25 // Image selection -
wp-admin/edit-form-advanced.php
343 343 else 344 344 $class = 'nav-tab'; 345 345 346 echo '<a class="' . $class . '" href="?format=' . $slug . '" data-wp-format="' . $slug . '">' . $label . '</a>';346 echo '<a id="' . $slug . '" class="' . $class . '" href="?format=' . $slug . '" data-wp-format="' . $slug . '">' . $label . '</a>'; 347 347 } 348 348 349 349 echo '</h2>';