- Timestamp:
- 12/11/2018 04:00:37 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 (added) merged: 43681
- Property svn:mergeinfo changed
-
trunk/package-lock.json
r43634 r43973 1 1 { 2 2 "name": "WordPress", 3 "version": "5. 0.0",3 "version": "5.1.0", 4 4 "lockfileVersion": 1, 5 5 "requires": true, -
trunk/src/wp-admin/includes/template.php
r43665 r43973 1257 1257 $page = $screen->id; 1258 1258 1259 $hidden = get_hidden_meta_boxes( $screen );1259 $hidden = get_hidden_meta_boxes( $screen ); 1260 1260 ?> 1261 1261 <div id="side-sortables" class="accordion-container"> -
trunk/src/wp-includes/media-template.php
r43633 r43973 97 97 <# if ( h ) { #>height="{{ h }}"<# } #> 98 98 <?php 99 $props = array(99 $props = array( 100 100 'poster' => '', 101 101 'preload' => 'metadata', -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r43604 r43973 376 376 // Wrap the data in a response object. 377 377 $response = rest_ensure_response( $data ); 378 $response->add_links( $links ); 378 379 foreach ( $links as $rel => $rel_links ) { 380 foreach ( $rel_links as $link ) { 381 $response->add_link( $rel, $link['href'], $link['attributes'] ); 382 } 383 } 379 384 380 385 /** -
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r43571 r43973 1468 1468 1469 1469 $this->assertArrayHasKey( 'self', $links ); 1470 $this->assertArrayHasKey( 'author', $links ); 1471 1472 $this->assertCount( 1, $links['author'] ); 1473 $this->assertArrayHasKey( 'embeddable', $links['author'][0]['attributes'] ); 1474 $this->assertTrue( $links['author'][0]['attributes']['embeddable'] ); 1470 1475 } 1471 1476 -
trunk/tests/qunit/fixtures/wp-api-generated.js
r43585 r43973 4080 4080 "self": [ 4081 4081 { 4082 "attributes": [],4083 4082 "href": "http://example.org/index.php?rest_route=/wp/v2/media/8" 4084 4083 } … … 4086 4085 "collection": [ 4087 4086 { 4088 "attributes": [],4089 4087 "href": "http://example.org/index.php?rest_route=/wp/v2/media" 4090 4088 } … … 4092 4090 "about": [ 4093 4091 { 4094 "attributes": [],4095 4092 "href": "http://example.org/index.php?rest_route=/wp/v2/types/attachment" 4096 4093 } … … 4098 4095 "replies": [ 4099 4096 { 4100 "attributes": { 4101 "embeddable": true 4102 }, 4097 "embeddable": true, 4103 4098 "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8" 4104 4099 }
Note: See TracChangeset
for help on using the changeset viewer.