Ticket #15609: 15609.alt.diff
File 15609.alt.diff, 1.9 KB (added by , 13 years ago) |
---|
-
wp-admin/edit-comments.php
103 103 enqueue_comment_hotkeys_js(); 104 104 105 105 if ( $post_id ) 106 $title = sprintf(__('Comments on “%s”'), wp_html_excerpt(_draft_or_post_title($post_id), 50)); 106 $title = sprintf(__('Comments on “%s”'), 107 sprintf('<a href="%s">%s</a>', 108 get_edit_post_link($post_id), 109 wp_html_excerpt(_draft_or_post_title($post_id), 50) 110 ) 111 ); 107 112 else 108 113 $title = __('Comments'); 109 114 … … 126 131 127 132 <div class="wrap"> 128 133 <?php screen_icon(); ?> 129 <h2><?php echo esc_html( $title ); 134 <h2><?php echo $title; 135 130 136 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 131 137 printf( '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '</span>' ); ?> 132 138 </h2> -
wp-admin/admin-header.php
11 11 require_once( './admin.php' ); 12 12 13 13 get_admin_page_title(); 14 $ title = esc_html( strip_tags( $title ) );14 $_title = esc_html( strip_tags( $title ) ); 15 15 16 16 if ( is_network_admin() ) 17 17 $admin_title = __( 'Network Admin' ); … … 20 20 else 21 21 $admin_title = get_bloginfo( 'name' ); 22 22 23 if ( $admin_title == $ title )24 $admin_title = sprintf( __( '%1$s — WordPress' ), $ title );23 if ( $admin_title == $_title ) 24 $admin_title = sprintf( __( '%1$s — WordPress' ), $_title ); 25 25 else 26 $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $ title, $admin_title );26 $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $_title, $admin_title ); 27 27 28 unset( $_title ); 29 28 30 $admin_title = apply_filters( 'admin_title', $admin_title, $title ); 29 31 30 32 wp_user_settings();