diff --git src/wp-includes/js/wp-api.js src/wp-includes/js/wp-api.js
index 717ebf8e06..f356a88b0a 100644
|
|
|
323 | 323 | |
324 | 324 | // If we didn’t have an embedded getModel, fetch the getModel data. |
325 | 325 | if ( ! getModel.get( embedCheckField ) ) { |
326 | | getModel.fetch( { success: function( getModel ) { |
327 | | deferred.resolve( getModel ); |
328 | | } } ); |
| 326 | getModel.fetch( { |
| 327 | success: function( getModel ) { |
| 328 | deferred.resolve( getModel ); |
| 329 | }, |
| 330 | error: function( getModel, response ) { |
| 331 | deferred.reject( response ); |
| 332 | } |
| 333 | } ); |
329 | 334 | } else { |
330 | 335 | deferred.resolve( getModel ); |
331 | 336 | } |