From 7079ad1a9ad8e7decf2dcd05ec773946ee1dfc1d Mon Sep 17 00:00:00 2001 From: AKSHAT2802 Date: Wed, 3 Dec 2025 23:02:27 +0530 Subject: [PATCH] Fix: Show update button when post is published public from private --- src/js/_enqueues/admin/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/_enqueues/admin/post.js b/src/js/_enqueues/admin/post.js index 3f8b42e261e8b..ada3f1e585ad6 100644 --- a/src/js/_enqueues/admin/post.js +++ b/src/js/_enqueues/admin/post.js @@ -775,7 +775,7 @@ jQuery( function($) { if ( attemptedDate > currentDate ) { publishOn = __( 'Schedule for:' ); $('#publish').val( _x( 'Schedule', 'post action/button label' ) ); - } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) { + } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' && 0 === postId ) { publishOn = __( 'Publish on:' ); $('#publish').val( __( 'Publish' ) ); } else {