Changeset 21735 for trunk/wp-includes/class-wp-editor.php
- Timestamp:
- 09/04/2012 04:29:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-editor.php
r21664 r21735 127 127 128 128 public static function editor_settings($editor_id, $set) { 129 global $editor_styles , $post;129 global $editor_styles; 130 130 $first_run = false; 131 131 … … 371 371 $body_class = $editor_id; 372 372 373 if ( isset($post) )374 $body_class .= " post-type-$post->post_type";373 if ( $post = get_post() ) 374 $body_class .= ' post-type-' . $post->post_type; 375 375 376 376 if ( !empty($set['tinymce']['body_class']) ) { … … 613 613 614 614 public static function wp_fullscreen_html() { 615 global $content_width, $post; 615 global $content_width; 616 $post = get_post(); 616 617 617 618 $width = isset($content_width) && 800 > $content_width ? $content_width : 800;
Note: See TracChangeset
for help on using the changeset viewer.