Make WordPress Core

Changeset 1273


Ignore:
Timestamp:
05/14/2004 08:38:34 AM (21 years ago)
Author:
saxmatt
Message:

Some fixes.

Location:
trunk/wp-admin
Files:
4 edited

Legend:

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

    r1240 r1273  
    4646$saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="' . __('Save and Continue Editing') . '" />';
    4747
     48if (empty($post_status)) $post_status = 'draft';
    4849
    4950?>
  • trunk/wp-admin/options-permalink.php

    r1245 r1273  
    107107 if ($permalink_structure) {
    108108?>
    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>
    110110  <?php
    111111$site_root = str_replace('http://', '', trim(get_settings('siteurl')));
     
    120120<form action="">
    121121    <p>
    122         <textarea rows="5" style="width: 100%;">RewriteEngine On
     122        <textarea rows="5" style="width: 98%;">RewriteEngine On
    123123RewriteBase <?php echo $home_root; ?>
    124124<?php
     
    126126foreach ($rewrite as $match => $query) {
    127127    if (strstr($query, 'index.php')) echo 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA]\n";
    128     echo 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA]\n";
     128    else echo 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA]\n";
    129129}
    130130?>
     
    140140<?php _e('You are not currently using customized permalinks. No special mod_rewrite rules are needed.') ?>
    141141</p>
     142<?php } ?>
     143</div>
     144
    142145<?php
    143 }
    144 echo "</div>\n";
    145 
    146146require('./admin-footer.php');
    147147?>
  • trunk/wp-admin/options.php

    r1206 r1273  
    110110    }
    111111
    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';
    113114    else $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
    114115    header('Location: ' . $goback);
  • trunk/wp-admin/post.php

    r1266 r1273  
    6262        }
    6363        $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';
    6565        $comment_status = $_POST['comment_status'];
    6666        if (empty($comment_status)) $comment_status = get_settings('default_comment_status');
     
    134134        $location = 'post.php';
    135135    }
    136     if ('' != $_POST['advanced'])
     136    if ( '' != $_POST['advanced'] || isset($_POST['save']) )
    137137        $location = "post.php?action=edit&post=$post_ID";
    138138
     
    725725        }
    726726        //set defaults
    727         $post_status = get_settings('default_post_status');
     727        $post_status = 'draft';
    728728        $comment_status = get_settings('default_comment_status');
    729729        $ping_status = get_settings('default_ping_status');
Note: See TracChangeset for help on using the changeset viewer.