Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments Title: Make non-editable #40817

Merged
merged 9 commits into from
May 6, 2022
Prev Previous commit
Next Next commit
Avoid showing 'undefined' while loading
  • Loading branch information
ockham committed May 4, 2022
commit d1580ec184882e08aca52a9cf66b85d67b0b6fc6
2 changes: 1 addition & 1 deletion packages/block-library/src/comments-title/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function Edit( {
const postTitle = isSiteEditor ? __( '"Post Title"' ) : `"${ rawTitle }"`;

let placeholder;
if ( showCommentsCount ) {
if ( showCommentsCount && commentsCount !== undefined ) {
if ( showPostTitle ) {
if ( commentsCount === 1 ) {
/* translators: %s: Post title. */
Expand Down