Skip to content

Commit

Permalink
Avoid vars in strings
Browse files Browse the repository at this point in the history
Co-authored-by: Marin Atanasov <[email protected]>
  • Loading branch information
getdave and tyxla committed Mar 16, 2023
1 parent 3d193da commit 1f27278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.3/template-parts-preloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function gutenberg_preload_template_parts( $preload_paths, $context ) {

foreach ( $theme_json_template_part_slugs as $template_part_slug ) {
$preload_paths[] = array(
$template_parts_rest_route . "/$theme_slug//$template_part_slug?context=edit",
$template_parts_rest_route . '/' . $theme_slug . '//' . $template_part_slug . '?context=edit',
'GET',
);
}
Expand Down

0 comments on commit 1f27278

Please sign in to comment.