diff --git a/packages/block-library/src/post-author-name/edit.js b/packages/block-library/src/post-author-name/edit.js index 8c0281edb5df8a..5df47e447195b4 100644 --- a/packages/block-library/src/post-author-name/edit.js +++ b/packages/block-library/src/post-author-name/edit.js @@ -132,15 +132,15 @@ function PostAuthorNameEdit( {
- { supportsAuthor - ? displayAuthor - : sprintf( + { ! supportsAuthor && postType !== undefined + ? sprintf( // translators: %s: Name of the post type e.g: "post". __( 'This post type (%s) does not support the author.' ), postType - ) } + ) + : displayAuthor }
); diff --git a/packages/block-library/src/post-author/edit.js b/packages/block-library/src/post-author/edit.js index dd2b3aa617548d..f41fbf707ecc44 100644 --- a/packages/block-library/src/post-author/edit.js +++ b/packages/block-library/src/post-author/edit.js @@ -99,7 +99,7 @@ function PostAuthorEdit( { const showAuthorControl = !! postId && ! isDescendentOfQueryLoop && authorOptions.length > 0; - if ( ! supportsAuthor ) { + if ( ! supportsAuthor && postType !== undefined ) { return (
{ sprintf(