diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-18 13:47:42 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-18 13:47:42 +0000 |
| commit | 56777d417dd3fefd42e44db4f60377709fccdf5a (patch) | |
| tree | 163d1422f805827f7ba408260ccd9d9aaa6c5ea7 /wp-inst/wp-admin/edit-page-form.php | |
| parent | 2b56b90f06b0018f0dba866e2d799cda640d9597 (diff) | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@440 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit-page-form.php')
| -rw-r--r-- | wp-inst/wp-admin/edit-page-form.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/wp-inst/wp-admin/edit-page-form.php b/wp-inst/wp-admin/edit-page-form.php index cf9d584..ec625ca 100644 --- a/wp-inst/wp-admin/edit-page-form.php +++ b/wp-inst/wp-admin/edit-page-form.php @@ -20,6 +20,8 @@ $sendto = wp_specialchars( $sendto ); ?> +<?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?> + <form name="post" action="post.php" method="post" id="post"> <?php @@ -117,7 +119,7 @@ endforeach; </fieldset> -<fieldset id="<?php echo ( 'true' != get_user_option('rich_editing') ) ? 'postdiv' : 'postdivrich'; ?>"> +<fieldset id="<?php echo ( $richedit) ? 'postdivrich' : 'postdiv'; ?>"> <legend><?php _e('Page Content') ?></legend> <?php $rows = get_settings('default_post_edit_rows'); @@ -125,11 +127,12 @@ endforeach; $rows = 10; } ?> -<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div> +<?php if (! $richedit ) the_quicktags(); ?> + +<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $richedit ? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div> </fieldset> -<?php if ( 'true' != get_user_option('rich_editing') ) : ?> -<?php the_quicktags(); ?> +<?php if ( !$richedit ) : ?> <script type="text/javascript"> <!-- edCanvas = document.getElementById('content'); @@ -140,7 +143,7 @@ edCanvas = document.getElementById('content'); <p class="submit"> <?php if ( $post_ID ) : ?> <input name="save" type="submit" id="save" tabindex="5" value=" <?php _e('Save and Continue Editing'); ?> "/> -<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Save') : _e('Create New Page') ?> »" style="font-weight: bold;"/> +<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Save') : _e('Create New Page') ?> »" /> <?php else : ?> <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page') ?> »" /> <?php endif; ?> @@ -150,8 +153,6 @@ edCanvas = document.getElementById('content'); <?php $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID); $uploading_iframe_src = "inline-uploading.php?action=view&post=$uploading_iframe_ID"; -if ( !$attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$uploading_iframe_ID'") ) - $uploading_iframe_src = "inline-uploading.php?action=upload&post=$uploading_iframe_ID"; $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); if ( false != $uploading_iframe_src ) echo '<iframe id="uploading" border="0" src="' . $uploading_iframe_src . '">' . __('This feature requires iframe support.') . '</iframe>'; |
