Ticket #17388: 17388.patch
File 17388.patch, 1.8 KB (added by , 11 years ago) |
---|
-
wp-includes/class-wp-editor.php
681 681 public static function wp_fullscreen_html() { 682 682 global $content_width; 683 683 $post = get_post(); 684 $post_type_object = get_post_type_object( $post->post_type ); 685 $can_publish = current_user_can( $post_type_object->cap->publish_posts ); 684 686 685 687 $width = isset($content_width) && 800 > $content_width ? $content_width : 800; 686 688 $width = $width + 22; // compensate for the padding and border 687 689 $dfw_width = get_user_setting( 'dfw_width', $width ); 688 $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save'); 690 691 if ( isset($post->post_status) && ! in_array( $post->post_status, array( 'publish', 'future', 'private' ) ) ) { 692 if ( $can_publish ) : 693 if ( !empty( $post->post_date_gmt ) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) 694 $save = __( 'Schedule' ); 695 else 696 $save = __( 'Publish' ); 697 698 else : 699 $save = __( 'Submit for Review' ); 700 endif; 701 702 } else { 703 $save = __( 'Update' ); 704 } 689 705 ?> 690 706 <div id="wp-fullscreen-body"<?php if ( is_rtl() ) echo ' class="rtl"'; ?>> 691 707 <div id="fullscreen-topbar"> … … 737 753 </div></div> 738 754 739 755 <div id="wp-fullscreen-save"> 740 <input type="button" class="button-primary right" value="<?php e cho $save;?>" onclick="fullscreen.save();" />756 <input type="button" class="button-primary right" value="<?php esc_attr_e( $save ) ?>" onclick="fullscreen.save();" /> 741 757 <span class="spinner"></span> 742 758 <span class="fs-saved"><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span> 743 759 </div>