WordPress.org

Make WordPress Core

Changeset 4317


Ignore:
Timestamp:
10/04/06 07:46:47 (8 years ago)
Author:
markjaquith
Message:

Better notice and link after post/page saving. Props mdawaffe. fixes #1690

Location:
trunk/wp-admin
Files:
4 edited

Legend:

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

    r4082 r4317  
    99?> 
    1010 
    11 <?php if ( isset($_GET['saved']) || isset($_GET['posted'])  ) : ?> 
    12 <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') ; ?> &raquo;</a></strong></p></div> 
     11<?php if ( isset($_GET['posted']) || isset($_GET['saved'])  ) : ?> 
     12<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; ?> 
    1414 
  • trunk/wp-admin/page.php

    r4169 r4317  
    3030        } 
    3131    } else { 
    32         $location = 'page-new.php?posted=true'; 
     32        $location = "page-new.php?posted=$page_ID"; 
    3333    } 
    3434 
     
    100100            } 
    101101        } else { 
    102             $location = 'page-new.php?posted=true'; 
     102            $location = "page-new.php?posted=$page_ID"; 
    103103        } 
    104104 
  • trunk/wp-admin/post-new.php

    r4250 r4317  
    2121 
    2222if ( isset($_GET['posted']) ) : ?> 
    23 <div id="message" class="updated fade"><p><?php printf(__('Post saved. <a href="%s">View site &raquo;</a>'), get_bloginfo('home') . '/'); ?></p></div> 
     23<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 
    2525endif; 
  • trunk/wp-admin/post.php

    r4169 r4317  
    3333        } 
    3434    } else { 
    35         $location = 'post-new.php?posted=true'; 
     35        $location = "post-new.php?posted=$post_ID"; 
    3636    } 
    3737 
     
    107107            } 
    108108        } else { 
    109             $location = 'post-new.php?posted=true'; 
     109            $location = "post-new.php?posted=$post_ID"; 
    110110        } 
    111111 
Note: See TracChangeset for help on using the changeset viewer.