Skip to content

Commit

Permalink
Adds a "(no title)" label to links to pages or posts with no title (#…
Browse files Browse the repository at this point in the history
…19528)

* adds no title label to links to pages or posts with no title

* fixes a wrong return and an explicit comparison

* undo mistaken CSS edit
  • Loading branch information
draganescu authored Jan 13, 2020
1 parent b6ff6e9 commit e7342de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function Navigation( {
type,
id,
url,
label: escape( title.rendered ),
title: escape( title.raw ),
label: ! title.rendered ? __( '(no title)' ) : escape( title.rendered ),
title: ! title.raw ? __( '(no title)' ) : escape( title.raw ),
opensInNewTab: false,
}
)
Expand Down

0 comments on commit e7342de

Please sign in to comment.