Skip to content

Commit

Permalink
Tidy PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Mar 16, 2023
1 parent 1f27278 commit ef95d35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/compat/wordpress-6.3/template-parts-preloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
* Preloads requests needed for common Template Part posts
*
* @param array $preload_paths Preload paths to be filtered.
* @return array
* @param array $context Context for the preload paths.
* @return array the preload paths.
*/
function gutenberg_preload_template_parts( $preload_paths, $context ) {

Expand All @@ -34,8 +35,6 @@ function gutenberg_preload_template_parts( $preload_paths, $context ) {
'wp_template_part'
);

$standard_template_parts = array( 'header', 'footer' );

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

0 comments on commit ef95d35

Please sign in to comment.