Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Jun 15, 2018
2 parents a9c3392 + 8837556 commit af32a84
Show file tree
Hide file tree
Showing 6 changed files with 815 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/components/url-input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ class UrlInput extends Component {
loading: true,
} );
this.suggestionsRequest = apiRequest( {
path: `/wp/v2/posts?${ stringify( {
path: `/gutenberg/v1/search?${ stringify( {
search: value,
per_page: 20,
orderby: 'relevance',
type_exclude: 'attachment',
} ) }`,
} );

Expand Down Expand Up @@ -227,7 +227,7 @@ class UrlInput extends Component {
onClick={ () => this.selectLink( post.link ) }
aria-selected={ index === selectedSuggestion }
>
{ decodeEntities( post.title.rendered ) || __( '(no title)' ) }
{ decodeEntities( post.title ) || __( '(no title)' ) }
</button>
) ) }
</div>
Expand Down
Loading

0 comments on commit af32a84

Please sign in to comment.