Changeset 52345
- Timestamp:
- 12/07/2021 10:48:54 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
-
blocks.php (modified) (1 diff)
-
rest-api/endpoints/class-wp-rest-templates-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r52291 r52345 104 104 } 105 105 // Path needs to be normalized to work in Windows env. 106 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC );107 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) );108 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm );106 $wpinc_path_norm = wp_normalize_path( ABSPATH . WPINC ); 107 $script_path_norm = wp_normalize_path( realpath( dirname( $metadata['file'] ) . '/' . $script_path ) ); 108 $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], $wpinc_path_norm ); 109 109 110 110 $script_uri = $is_core_block ? -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r52332 r52345 343 343 */ 344 344 public function create_item( $request ) { 345 $prepared_post = $this->prepare_item_for_database( $request );345 $prepared_post = $this->prepare_item_for_database( $request ); 346 346 347 347 if ( is_wp_error( $prepared_post ) ) { … … 858 858 'readonly' => true, 859 859 ), 860 'author' => array(860 'author' => array( 861 861 'description' => __( 'The ID for the author of the template.' ), 862 862 'type' => 'integer',
Note: See TracChangeset
for help on using the changeset viewer.