Changeset 1273
- Timestamp:
- 05/14/2004 08:38:34 AM (21 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r1240 r1273 46 46 $saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="' . __('Save and Continue Editing') . '" />'; 47 47 48 if (empty($post_status)) $post_status = 'draft'; 48 49 49 50 ?> -
trunk/wp-admin/options-permalink.php
r1245 r1273 107 107 if ($permalink_structure) { 108 108 ?> 109 < ?php printf(__('<p>Using the permalink structure value you currently have, <code>%s</code>, these are the mod_rewrite rules you should have in your <code>.htaccess</code> file.</p>'), $permalink_structure) ?>109 <p><?php printf(__('Using the permalink structure value you currently have, <code>%s</code>, these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.'), $permalink_structure) ?></p> 110 110 <?php 111 111 $site_root = str_replace('http://', '', trim(get_settings('siteurl'))); … … 120 120 <form action=""> 121 121 <p> 122 <textarea rows="5" style="width: 100%;">RewriteEngine On122 <textarea rows="5" style="width: 98%;">RewriteEngine On 123 123 RewriteBase <?php echo $home_root; ?> 124 124 <?php … … 126 126 foreach ($rewrite as $match => $query) { 127 127 if (strstr($query, 'index.php')) echo 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA]\n"; 128 e cho 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA]\n";128 else echo 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA]\n"; 129 129 } 130 130 ?> … … 140 140 <?php _e('You are not currently using customized permalinks. No special mod_rewrite rules are needed.') ?> 141 141 </p> 142 <?php } ?> 143 </div> 144 142 145 <?php 143 }144 echo "</div>\n";145 146 146 require('./admin-footer.php'); 147 147 ?> -
trunk/wp-admin/options.php
r1206 r1273 110 110 } 111 111 112 if (strstr($_SERVER['HTTP_REFERER'], '?')) $goback = str_replace('&updated=true', '', $_SERVER['HTTP_REFERER']) . '&updated=true'; 112 $referred = str_replace(array('&updated=true', '?updated=true') , '', $_SERVER['HTTP_REFERER']); 113 if (strstr($referred, '?')) $goback = $referred . '&updated=true'; 113 114 else $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true'; 114 115 header('Location: ' . $goback); -
trunk/wp-admin/post.php
r1266 r1273 62 62 } 63 63 $post_status = $_POST['post_status']; 64 if (empty($post_status)) $post_status = get_settings('default_post_status');64 if (empty($post_status)) $post_status = 'draft'; 65 65 $comment_status = $_POST['comment_status']; 66 66 if (empty($comment_status)) $comment_status = get_settings('default_comment_status'); … … 134 134 $location = 'post.php'; 135 135 } 136 if ( '' != $_POST['advanced'])136 if ( '' != $_POST['advanced'] || isset($_POST['save']) ) 137 137 $location = "post.php?action=edit&post=$post_ID"; 138 138 … … 725 725 } 726 726 //set defaults 727 $post_status = get_settings('default_post_status');727 $post_status = 'draft'; 728 728 $comment_status = get_settings('default_comment_status'); 729 729 $ping_status = get_settings('default_ping_status');
Note: See TracChangeset
for help on using the changeset viewer.