- Timestamp:
- 12/11/2018 04:12:56 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43682
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r43584 r43974 1780 1780 if ( 'attachment' !== $this->post_type && current_user_can( $post_type->cap->publish_posts ) ) { 1781 1781 $rels[] = 'https://api.w.org/action-publish'; 1782 } 1783 1784 if ( current_user_can( 'unfiltered_html' ) ) { 1785 $rels[] = 'https://api.w.org/action-unfiltered-html'; 1782 1786 } 1783 1787 … … 2191 2195 } 2192 2196 2197 $links[] = array( 2198 'rel' => 'https://api.w.org/action-unfiltered-html', 2199 'title' => __( 'The current user can post unfiltered HTML markup and JavaScript.' ), 2200 'href' => $href, 2201 'targetSchema' => array( 2202 'type' => 'object', 2203 'properties' => array( 2204 'content' => array( 2205 'raw' => array( 2206 'type' => 'string', 2207 ), 2208 ), 2209 ), 2210 ), 2211 ); 2212 2193 2213 if ( 'post' === $this->post_type ) { 2194 2214 $links[] = array(
Note: See TracChangeset
for help on using the changeset viewer.