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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Block Library - Site Title, Site Tagline] - Readonly view when user has no the right permissions #32817

Merged
merged 3 commits into from
Jun 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fallback value during init of RichText until title is loaded
  • Loading branch information
ntsekouras committed Jun 20, 2021
commit d5fef09d13fe3e692a36c1dabf5f227fa0d3f926
2 changes: 1 addition & 1 deletion packages/block-library/src/site-title/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function SiteTitleEdit( {
tagName="a"
aria-label={ __( 'Site title text' ) }
placeholder={ __( 'Write site title…' ) }
value={ title }
value={ title || readOnlyTitle }
onChange={ setTitle }
allowedFormats={ [] }
disableLineBreaks
Expand Down