Skip to content

Commit 7505fa2

Browse files
authored
getFeaturedMedia, not getFeaturedImage
1 parent bc41c15 commit 7505fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎using-the-rest-api/backbone-javascript-client.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ post.getAuthorUser().done( function( user ){
152152
} );
153153

154154
// Get a posts featured image Media model.
155-
post.getFeaturedImage().done( function( image ){
155+
post.getFeaturedMedia().done( function( image ){
156156
// ... do something with image
157157
console.log( image );
158158
} );

0 commit comments

Comments
 (0)