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:
parent
a9e165babd
commit
5d3de3ef4e
|
@ -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') ; ?> »</a></p></div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ When you’re promoted, just reload this page and you’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'); ?> »</a></p></div>
|
||||
<?php
|
||||
endif;
|
||||
|
|
Loading…
Reference in New Issue