WordPress.org

Make WordPress Core

Changeset 4338


Ignore:
Timestamp:
10/04/06 13:16:07 (9 years ago)
Author:
markjaquith
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/page-new.php

    r4317 r4338  
    99?> 
    1010 
    11 <?php if ( isset($_GET['posted']) || isset($_GET['saved'])  ) : ?> 
     11<?php if ( (isset($_GET['posted']) && $_GET['posted']) || isset($_GET['saved'])  ) : ?> 
    1212<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> 
    1313<?php endif; ?> 
  • trunk/wp-admin/post-new.php

    r4317 r4338  
    2020} 
    2121 
    22 if ( isset($_GET['posted']) ) : ?> 
     22if ( isset($_GET['posted']) && $_GET['posted'] ) : ?> 
    2323<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> 
    2424<?php 
Note: See TracChangeset for help on using the changeset viewer.