Changeset 8484
- Timestamp:
- 07/29/2008 05:22:58 AM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r7831 r8484 55 55 case 'media': 56 56 ?> 57 <td><strong><a href=" media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />57 <td><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 58 58 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 59 59 <?php do_action('manage_media_media_column', $post->ID); ?> … … 98 98 } 99 99 ?> 100 <td><strong><a href=" post.php?action=edit&post=<?php echo $post->post_parent; ?>"><?php echo $title ?></a></strong></td>100 <td><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong></td> 101 101 <?php 102 102 } else { -
trunk/wp-admin/edit-pages.php
r8345 r8484 106 106 endif; 107 107 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 108 <div id="message" class="updated fade"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href=" page.php?action=edit&post=<?php echo $_GET['posted']; ?>"><?php _e('Edit page'); ?></a></p></div>108 <div id="message" class="updated fade"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit page'); ?></a></p></div> 109 109 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 110 110 endif; -
trunk/wp-admin/edit-post-rows.php
r7775 r8484 35 35 global $current_user; 36 36 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); 37 $edit_link = get_edit_post_link( $post->ID ); 37 38 $title = get_the_title(); 38 39 if ( empty($title) ) … … 81 82 case 'title': 82 83 ?> 83 <td><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href=" post.php?action=edit&post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong>84 <td><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; } ?></strong> 84 85 <?php if ( !empty($post->post_password) ) { _e(' — <strong>Protected</strong>'); } elseif ('private' == $post->post_status) { _e(' — <strong>Private</strong>'); } ?></td> 85 86 <?php … … 174 175 case 'control_edit': 175 176 ?> 176 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href=' post.php?action=edit&post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>177 <td><?php if ( current_user_can('edit_post',$post->ID) ) { echo "<a href='$edit_link' class='edit'>" . __('Edit') . "</a>"; } ?></td> 177 178 <?php 178 179 break; -
trunk/wp-admin/edit.php
r7998 r8484 111 111 112 112 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 113 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href=" post.php?action=edit&post=<?php echo $_GET['posted']; ?>"><?php _e('Edit post'); ?></a></p></div>113 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div> 114 114 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 115 115 endif; -
trunk/wp-admin/includes/template.php
r8455 r8484 458 458 case 'title': 459 459 ?> 460 <td><strong><a class="row-title" href=" page.php?action=edit&post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong>460 <td><strong><a class="row-title" href="<?php echo get_edit_post_link( $page->ID ); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong> 461 461 <?php if ('private' == $page->post_status) _e(' — <strong>Private</strong>'); ?></td> 462 462 <?php -
trunk/wp-admin/page.php
r8033 r8484 21 21 } elseif ( isset($_POST['save']) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) { 22 22 if ( $_POST['_wp_original_http_referer'] && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/page.php') === false && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/page-new.php') === false ) 23 $location = add_query_arg( '_wp_original_http_referer', urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), "page.php?action=edit&post=$page_ID&message=1" ); 23 $location = add_query_arg( array( 24 '_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), 25 'message' => 1 26 ), get_edit_post_link( $page_ID, 'url' ) ); 24 27 else 25 $location = "page.php?action=edit&post=$page_ID&message=4";28 $location = add_query_arg( 'message', 4, get_edit_post_link( $page_ID, 'url' ) ); 26 29 } elseif ($_POST['addmeta']) { 27 30 $location = add_query_arg( 'message', 2, wp_get_referer() ); … … 46 49 $location = 'attachments.php'; 47 50 } else { 48 $location = "page.php?action=edit&post=$page_ID&message=4";51 $location = add_query_arg( 'message', 4, get_edit_post_link( $page_ID, 'url' ) ); 49 52 } 50 53 -
trunk/wp-admin/post-new.php
r8033 r8484 27 27 28 28 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 29 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href=" post.php?action=edit&post=<?php echo $_GET['posted']; ?>"><?php _e('Edit post'); ?></a></p></div>29 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div> 30 30 <?php 31 31 endif; -
trunk/wp-admin/post.php
r8033 r8484 23 23 } elseif ( isset($_POST['save']) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) { 24 24 if ( $_POST['_wp_original_http_referer'] && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post.php') === false && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post-new.php') === false ) 25 $location = add_query_arg( '_wp_original_http_referer', urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), "post.php?action=edit&post=$post_ID&message=1" ); 25 $location = add_query_arg( array( 26 '_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), 27 'message' => 1 28 ), get_edit_post_link( $post_ID, 'url' ) ); 26 29 else 27 $location = "post.php?action=edit&post=$post_ID&message=4";30 $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) ); 28 31 } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) { 29 32 $location = add_query_arg( 'message', 2, wp_get_referer() ); … … 48 51 $location = 'attachments.php'; 49 52 } else { 50 $location = "post.php?action=edit&post=$post_ID&message=4";53 $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) ); 51 54 } 52 55 -
trunk/wp-admin/press-this.php
r8476 r8484 94 94 </head> 95 95 <body class="press-this"> 96 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href=" post.php?action=edit&post=<?php echo $post_ID; ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>96 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div> 97 97 <div id="footer"> 98 98 <p><?php -
trunk/wp-admin/upload.php
r7883 r8484 112 112 <?php 113 113 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 114 <div id="message" class="updated fade"><p><strong><?php _e('Your media has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View media'); ?></a> | <a href=" media.php?action=edit&attachment_id=<?php echo $_GET['posted']; ?>"><?php _e('Edit media'); ?></a></p></div>114 <div id="message" class="updated fade"><p><strong><?php _e('Your media has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View media'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit media'); ?></a></p></div> 115 115 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 116 116 endif;
Note: See TracChangeset
for help on using the changeset viewer.