diff --git src/js/_enqueues/wp/api.js src/js/_enqueues/wp/api.js
index b877a8df2c..e10e8a7133 100644
|
|
|
1412 | 1412 | // Function that returns a constructed url passed on the parent. |
1413 | 1413 | url: function() { |
1414 | 1414 | return routeModel.get( 'apiRoot' ) + routeModel.get( 'versionString' ) + |
1415 | | parentName + '/' + this.parent + '/' + |
1416 | | routeName; |
1417 | | }, |
| 1415 | parentName + '/' + |
| 1416 | ( ( _.isUndefined( this.parent ) || '' === this.parent ) ? |
| 1417 | ( _.isUndefined( this.get( 'parent_post' ) ) ? '' : this.get( 'parent_post' ) + '/' ) : |
| 1418 | this.parent + '/' ) + |
| 1419 | routeName; |
| 1420 | }, |
1418 | 1421 | |
1419 | 1422 | // Specify the model that this collection contains. |
1420 | 1423 | model: function( attrs, options ) { |