Changeset 3136 for trunk/wp-admin/edit-form-advanced.php
- Timestamp:
- 11/17/2005 05:47:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-form-advanced.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r3135 r3136 8 8 <?php endif; ?> 9 9 10 <?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?> 11 10 12 <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; ?>15 13 16 14 <div class="wrap"> … … 138 136 </fieldset> 139 137 140 <fieldset id="<?php echo ( 'true' != get_user_option('rich_editing') ) ? 'postdiv' : 'postdivrich'; ?>">138 <fieldset id="<?php echo $richedit ? 'postdivrich' : 'postdiv'; ?>"> 141 139 <legend><?php _e('Post') ?></legend> 142 140 … … 147 145 } 148 146 ?> 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 ) : ?> 154 153 <script type="text/javascript"> 155 154 <!-- … … 202 201 <p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" /> 203 202 <?php 204 if ('publish' != $post ->post_status || 0 == $post_ID) {203 if ('publish' != $post_status || 0 == $post_ID) { 205 204 ?> 206 205 <?php if ( current_user_can('publish_posts') ) : ?> … … 211 210 ?> 212 211 <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 ) 212 if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID ) 216 213 echo 'redo'; 217 214 else … … 224 221 $uploading_iframe_ID = (0 == $post_ID ? $temp_ID : $post_ID); 225 222 $uploading_iframe_src = "inline-uploading.php?action=view&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&post=$uploading_iframe_ID";228 223 $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); 229 224 if ( false != $uploading_iframe_src )
Note: See TracChangeset
for help on using the changeset viewer.