diff options
Diffstat (limited to 'wp-admin/edit-page-form.php')
| -rw-r--r-- | wp-admin/edit-page-form.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index f55f733..f7083fd 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -131,7 +131,14 @@ endforeach; <fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>"> - <legend><?php _e('Page Content') ?></legend> +<legend><?php _e('Page Content') ?> + +<?php if ( 'publish' == $post->post_status ) { ?> +<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" style="position: absolute; right: 2em; margin-right: 19em; text-decoration: underline;" target="_blank"><?php _e('View »'); ?></a> +<?php } elseif ( 'edit' == $action ) { ?> +<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" style="position: absolute; right: 2em; margin-right: 19em; text-decoration: underline;" target="_blank"><?php _e('Preview »'); ?></a> +<?php } ?> +</legend> <?php the_editor($post->post_content); ?> </fieldset> @@ -156,7 +163,7 @@ if (current_user_can('upload_files')) { $uploading_iframe_src = wp_nonce_url("upload.php?style=inline&tab=upload&post_id=$uploading_iframe_ID", 'inlineuploading'); $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); if ( false != $uploading_iframe_src ) - echo '<iframe id="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; + echo '<iframe id="uploading" name="uploading" frameborder="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; } ?> |
