Skip to content

Commit

Permalink
ensure href set before using in gutenberg_add_target_schema_to_links
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed May 8, 2018
1 parent 9af3e3f commit e83bdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function gutenberg_add_target_schema_to_links( $response, $post, $request ) {
$new_links['https://api.w.org/action-sticky'] = array(
array(
'title' => __( 'The current user can sticky this post.', 'gutenberg' ),
'href' => $orig_links['self'][0]['href'],
'href' => isset( $orig_links['self'] ) ? $orig_links['self'][0]['href'] : null,
'targetSchema' => array(
'type' => 'object',
'properties' => array(
Expand Down

0 comments on commit e83bdc2

Please sign in to comment.