From 4ff03a433a1492ea31887c4506636fa6dd07a070 Mon Sep 17 00:00:00 2001 From: julesfell Date: Wed, 5 Nov 2025 10:24:53 +0100 Subject: [PATCH] add post in preview_post_link filter --- classes/admin/admin-restrictions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/admin/admin-restrictions.php b/classes/admin/admin-restrictions.php index 730cb6e..a3522c9 100644 --- a/classes/admin/admin-restrictions.php +++ b/classes/admin/admin-restrictions.php @@ -84,8 +84,7 @@ public static function post_row_actions( array $actions, WP_Post $post ) { if ( null !== $_origin_key && empty( $_has_syncs ) ) { if ( 'pending' === $post->post_status ) { - $actions['view'] = '' . __( 'Preview' ) . ''; - + $actions['view'] = '' . __( 'Preview' ) . ''; if ( current_user_can( 'publish_post', $post->ID ) ) { $actions['publish'] = sprintf( '%s',