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-form-advanced.php

    r3135 r3136  
    88<?php endif; ?>
    99
     10<?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?>
     11
    1012<form name="post" action="post.php" method="post" id="post">
    11 <?php if ( (isset($mode) && 'bookmarklet' == $mode) ||
    12             isset($_GET['popupurl']) ): ?>
    13 <input type="hidden" name="mode" value="bookmarklet" />
    14 <?php endif; ?>
    1513
    1614<div class="wrap">
     
    138136</fieldset>
    139137
    140 <fieldset id="<?php echo ( 'true' != get_user_option('rich_editing') ) ? 'postdiv' : 'postdivrich'; ?>">
     138<fieldset id="<?php echo $richedit ? 'postdivrich' : 'postdiv'; ?>">
    141139<legend><?php _e('Post') ?></legend>
    142140
     
    147145 }
    148146?>
    149 <div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $post->post_content ?></textarea></div>
    150 </fieldset>
    151 
    152 <?php if ( 'true' != get_user_option('rich_editing') ) : ?>
    153 <?php the_quicktags(); ?>
     147<?php if ( !$richedit ) the_quicktags(); ?>
     148
     149<div><textarea title="true" rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="2" id="content"><?php echo $richedit ? wp_richedit_pre($post->post_content) : $post->post_content; ?></textarea></div>
     150</fieldset>
     151
     152<?php if ( !$richedit ) : ?>
    154153<script type="text/javascript">
    155154<!--
     
    202201<p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
    203202<?php
    204 if ('publish' != $post->post_status || 0 == $post_ID) {
     203if ('publish' != $post_status || 0 == $post_ID) {
    205204?>
    206205<?php if ( current_user_can('publish_posts') ) : ?>
     
    211210?>
    212211<input name="referredby" type="hidden" id="referredby" value="<?php
    213 if ( !empty($_REQUEST['popupurl']) )
    214     echo wp_specialchars($_REQUEST['popupurl']);
    215 else if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID )
     212if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID )
    216213    echo 'redo';
    217214else
     
    224221$uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID);
    225222$uploading_iframe_src = "inline-uploading.php?action=view&amp;post=$uploading_iframe_ID";
    226 if ( !$attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$uploading_iframe_ID'") )
    227     $uploading_iframe_src = "inline-uploading.php?action=upload&amp;post=$uploading_iframe_ID";
    228223$uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src);
    229224if ( false != $uploading_iframe_src )
Note: See TracChangeset for help on using the changeset viewer.