Make WordPress Core


Ignore:
Timestamp:
11/17/2005 05:47:29 PM (20 years ago)
Author:
ryan
Message:

Big tiny fixes from skeltoac. fixes #1897

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r3126 r3136  
    2020
    2121?>
     22
     23<?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?>
    2224
    2325<form name="post" action="post.php" method="post" id="post">
     
    118120
    119121
    120 <fieldset id="<?php echo ( 'true' != get_user_option('rich_editing') ) ? 'postdiv' : 'postdivrich'; ?>">
     122<fieldset id="<?php echo ( $richedit) ? 'postdivrich' : 'postdiv'; ?>">
    121123    <legend><?php _e('Page Content') ?></legend>
    122124<?php
     
    126128 }
    127129?>
    128 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div>
     130<?php if (! $richedit ) the_quicktags(); ?>
     131
     132<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>
    129133</fieldset>
    130134
    131 <?php if ( 'true' != get_user_option('rich_editing') ) : ?>
    132 <?php the_quicktags(); ?>
     135<?php if ( !$richedit ) : ?>
    133136<script type="text/javascript">
    134137<!--
     
    141144<?php if ( $post_ID ) : ?>
    142145<input name="save" type="submit" id="save" tabindex="5" value=" <?php _e('Save and Continue Editing'); ?> "/>
    143 <input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Save') : _e('Create New Page') ?> &raquo;" style="font-weight: bold;"/>
     146<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php $post_ID ? _e('Edit Page') : _e('Create New Page') ?> &raquo;" />
    144147<?php else : ?>
    145148<input name="savepage" type="submit" id="savepage" tabindex="6" value="<?php _e('Create New Page') ?> &raquo;" />
     
    151154$uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
    152155$uploading_iframe_src = "inline-uploading.php?action=view&amp;post=$uploading_iframe_ID";
    153 if ( !$attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$uploading_iframe_ID'") )
    154     $uploading_iframe_src = "inline-uploading.php?action=upload&amp;post=$uploading_iframe_ID";
    155156$uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
    156157if ( false != $uploading_iframe_src )
Note: See TracChangeset for help on using the changeset viewer.