We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 484d1df + 4ff03a4 commit e2110acCopy full SHA for e2110ac
1 file changed
classes/admin/admin-restrictions.php
@@ -84,8 +84,7 @@ public static function post_row_actions( array $actions, WP_Post $post ) {
84
85
if ( null !== $_origin_key && empty( $_has_syncs ) ) {
86
if ( 'pending' === $post->post_status ) {
87
- $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', set_url_scheme( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $post->post_title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
88
-
+ $actions['view'] = '<a href="' . esc_url( apply_filters( 'preview_post_link', set_url_scheme( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ), $post ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $post->post_title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>';
89
if ( current_user_can( 'publish_post', $post->ID ) ) {
90
$actions['publish'] = sprintf(
91
'<a href="%s">%s</a>',
0 commit comments