Better notice and link after post/page saving. Props mdawaffe. fixes #1690
git-svn-id: https://develop.svn.wordpress.org/trunk@4317 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2a6e4903dc
commit
3fdba8da61
@ -8,8 +8,8 @@ wp_enqueue_script('autosave');
|
||||
require_once('admin-header.php');
|
||||
?>
|
||||
|
||||
<?php if ( isset($_GET['saved']) || isset($_GET['posted']) ) : ?>
|
||||
<div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_bloginfo('home') . '/'; ?>"><?php _e('View site') ; ?> »</a></strong></p></div>
|
||||
<?php if ( isset($_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; ?>
|
||||
|
||||
<?php
|
||||
@ -22,4 +22,4 @@ if ( current_user_can('edit_pages') ) {
|
||||
}
|
||||
?>
|
||||
|
||||
<?php include('admin-footer.php'); ?>
|
||||
<?php include('admin-footer.php'); ?>
|
||||
|
@ -29,7 +29,7 @@ case 'post':
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$location = 'page-new.php?posted=true';
|
||||
$location = "page-new.php?posted=$page_ID";
|
||||
}
|
||||
|
||||
if ( isset($_POST['save']) )
|
||||
@ -99,7 +99,7 @@ case 'editpost':
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$location = 'page-new.php?posted=true';
|
||||
$location = "page-new.php?posted=$page_ID";
|
||||
}
|
||||
|
||||
if ( isset($_POST['save']) )
|
||||
|
@ -20,7 +20,7 @@ When you’re promoted, just reload this page and you’ll be able to bl
|
||||
}
|
||||
|
||||
if ( isset($_GET['posted']) ) : ?>
|
||||
<div id="message" class="updated fade"><p><?php printf(__('Post saved. <a href="%s">View site »</a>'), get_bloginfo('home') . '/'); ?></p></div>
|
||||
<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;
|
||||
|
||||
@ -93,4 +93,4 @@ window.open ("profile.php?action=IErightclick", "oneclickbookmarklet", "width=50
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php include('admin-footer.php'); ?>
|
||||
<?php include('admin-footer.php'); ?>
|
||||
|
@ -32,7 +32,7 @@ case 'post':
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$location = 'post-new.php?posted=true';
|
||||
$location = "post-new.php?posted=$post_ID";
|
||||
}
|
||||
|
||||
if ( isset($_POST['save']) )
|
||||
@ -106,7 +106,7 @@ case 'editpost':
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$location = 'post-new.php?posted=true';
|
||||
$location = "post-new.php?posted=$post_ID";
|
||||
}
|
||||
|
||||
if ( isset($_POST['save']) )
|
||||
|
Loading…
Reference in New Issue
Block a user