Publishing of blank pages or posts now kicks you back to the appropriate Write screen without an errant message. Props majelbstoat. fixes #3198

git-svn-id: http://svn.automattic.com/wordpress/trunk@4338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-10-04 13:16:07 +00:00
parent a9e165babd
commit 5d3de3ef4e
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ wp_enqueue_script('autosave');
require_once('admin-header.php');
?>
<?php if ( isset($_GET['posted']) || isset($_GET['saved']) ) : ?>
<?php if ( (isset($_GET['posted']) && $_GET['posted']) || isset($_GET['saved']) ) : ?>
<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( isset($_GET['posted']) ? $_GET['posted'] : $_GET['saved'] ); ?>"><?php _e('View page') ; ?> &raquo;</a></p></div>
<?php endif; ?>

View File

@ -19,7 +19,7 @@ When you&#8217;re promoted, just reload this page and you&#8217;ll be able to bl
exit();
}
if ( isset($_GET['posted']) ) : ?>
if ( isset($_GET['posted']) && $_GET['posted'] ) : ?>
<div id="message" class="updated fade"><p><strong><?php _e('Post saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?> &raquo;</a></p></div>
<?php
endif;