| 145 | | if ( $post_id ) |
| 146 | | echo sprintf(__('Comments on “%s”'), |
| 147 | | sprintf('<a href="%s">%s</a>', |
| 148 | | get_edit_post_link($post_id), |
| 149 | | wp_html_excerpt(_draft_or_post_title($post_id), 50) |
| | 145 | if ( $post_id ) { |
| | 146 | $post = get_post( $post_id ); |
| | 147 | $post_type_object = get_post_type_object( $post->post_type ); |
| | 148 | echo sprintf( __( 'Comments on “%1$s” - %2$s' ), |
| | 149 | sprintf( '<a href="%s">%s</a>', |
| | 150 | get_edit_post_link( $post_id ), |
| | 151 | wp_html_excerpt( _draft_or_post_title( $post_id ), 50 ) |
| | 152 | ), |
| | 153 | sprintf( '<a href="%s" target="_blank">%s</a>', |
| | 154 | get_permalink( $post_id ), $post_type_object->labels->view_item |