Changes in trunk/wp-admin/page.php [5159:4780]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/page.php
r5159 r4780 53 53 if($post->post_status == 'draft') { 54 54 wp_enqueue_script('prototype'); 55 wp_enqueue_script('interface');56 55 wp_enqueue_script('autosave'); 57 56 } … … 62 61 63 62 include('edit-page-form.php'); 63 ?> 64 <div id='preview' class='wrap'> 65 <h2 id="preview-post"><?php _e('Page Preview (updated when page is saved)'); ?></h2> 66 <iframe src="<?php echo attribute_escape(apply_filters('preview_page_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe> 67 </div> 68 <?php 64 69 break; 65 70 … … 102 107 103 108 if ( isset($_POST['save']) ) 104 $location = "page.php?action=edit&post=$page_ID"; 109 $location = "page.php?action=edit&post=$page_ID"; 105 110 } else { 106 111 if ($_POST['save']) { … … 143 148 144 149 $sendback = wp_get_referer(); 145 if (str pos($sendback, 'page.php') !== false) $sendback = get_option('siteurl') .'/wp-admin/page.php';146 elseif (str pos($sendback, 'attachments.php') !== false) $sendback = get_option('siteurl') .'/wp-admin/attachments.php';150 if (strstr($sendback, 'page.php')) $sendback = get_option('siteurl') .'/wp-admin/page.php'; 151 elseif (strstr($sendback, 'attachments.php')) $sendback = get_option('siteurl') .'/wp-admin/attachments.php'; 147 152 $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback); 148 153 wp_redirect($sendback);
Note: See TracChangeset
for help on using the changeset viewer.