- Timestamp:
- 10/31/2025 06:55:47 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r61002 r61105 1255 1255 'count' => true, 1256 1256 'orderby' => 'none', 1257 'type' => 'all', 1257 1258 ) 1258 1259 ); … … 1261 1262 $args = array( 1262 1263 'parent' => $comment->comment_ID, 1264 ); 1265 1266 $rest_url = add_query_arg( $args, rest_url( $this->namespace . '/' . $this->rest_base ) ); 1267 1268 $links['children'] = array( 1269 'href' => $rest_url, 1270 'embeddable' => true, 1271 ); 1272 } 1273 1274 // Embedding children for notes requires `type` and `status` inheritance. 1275 if ( isset( $links['children'] ) && 'note' === $comment->comment_type ) { 1276 $args = array( 1277 'parent' => $comment->comment_ID, 1278 'type' => $comment->comment_type, 1279 'status' => 'all', 1263 1280 ); 1264 1281
Note: See TracChangeset
for help on using the changeset viewer.