From 87f9ee860cb24b67e817065f1b20ce9ae78b3822 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 6 Dec 2022 02:28:59 +0000 Subject: [PATCH] Quick edit: Fix cases where the author field is empty when the user no longer has edit capabilities. Props: OllieJones, sabernhardt, iamjaydip, costdev. Fixes: #56819. git-svn-id: https://develop.svn.wordpress.org/trunk@54936 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/admin/inline-edit-post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/_enqueues/admin/inline-edit-post.js b/src/js/_enqueues/admin/inline-edit-post.js index 640d747b41..c26f2ddc79 100644 --- a/src/js/_enqueues/admin/inline-edit-post.js +++ b/src/js/_enqueues/admin/inline-edit-post.js @@ -305,7 +305,7 @@ window.wp = window.wp || {}; if ( !$(':input[name="post_author"] option[value="' + $('.post_author', rowData).text() + '"]', editRow).val() ) { // The post author no longer has edit capabilities, so we need to add them to the list of authors. - $(':input[name="post_author"]', editRow).prepend(''); + $(':input[name="post_author"]', editRow).prepend(''); } if ( $( ':input[name="post_author"] option', editRow ).length === 1 ) { $('label.inline-edit-author', editRow).hide();