Skip to content

Commit

Permalink
Restore accidental reversion.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@3150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Nov 18, 2005
1 parent e1f22d2 commit b0386fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wp-admin/admin-header.php
Expand Up @@ -340,7 +340,7 @@ function myPload( str ) {
<?php
require(ABSPATH . '/wp-admin/menu-header.php');

if ( $parent_file == 'options-personal.php' ) {
if ( $parent_file == 'options-general.php' ) {
require(ABSPATH . '/wp-admin/options-head.php');
}
?>
10 changes: 8 additions & 2 deletions wp-admin/edit-form-advanced.php
Expand Up @@ -10,6 +10,10 @@
<?php $richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true; ?>

<form name="post" action="post.php" method="post" id="post">
<?php if ( (isset($mode) && 'bookmarklet' == $mode) ||
isset($_GET['popupurl']) ): ?>
<input type="hidden" name="mode" value="bookmarklet" />
<?php endif; ?>

<div class="wrap">
<h2 id="write-post"><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
Expand Down Expand Up @@ -200,7 +204,7 @@ function focusit() {

<p class="submit"><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php _e('Save') ?>" style="font-weight: bold;" tabindex="4" />
<?php
if ('publish' != $post_status || 0 == $post_ID) {
if ('publish' != $post->post_status || 0 == $post_ID) {
?>
<?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" />
Expand All @@ -209,7 +213,9 @@ function focusit() {
}
?>
<input name="referredby" type="hidden" id="referredby" value="<?php
if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID )
if ( !empty($_REQUEST['popupurl']) )
echo wp_specialchars($_REQUEST['popupurl']);
else if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID )
echo 'redo';
else
echo wp_specialchars($_SERVER['HTTP_REFERER']);
Expand Down

0 comments on commit b0386fa

Please sign in to comment.