Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
406c69d
no message
carlomanf May 19, 2021
5bcc469
Fix some errors
carlomanf May 19, 2021
dd3486a
Don't allow new posts to replace existing slugs
carlomanf May 20, 2021
45fd485
Fix some unwanted behaviour with slugs
carlomanf May 20, 2021
26133df
https://core.trac.wordpress.org/ticket/28099
carlomanf May 20, 2021
8b43314
Let theme files resolve (fixes error with last commit)
carlomanf May 20, 2021
5483d90
Add isset check
carlomanf May 20, 2021
8c3e2f1
Validate theme mods entries
carlomanf May 20, 2021
651b35a
Fix style errors
carlomanf May 25, 2021
2fc6c82
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into t…
carlomanf May 26, 2021
f25014a
Temporarily disable inactive access for 5.8 version.
carlomanf Jun 3, 2021
a280490
Amend _gutenberg_build_template_result_from_post
carlomanf Jun 10, 2021
30b76ad
Change theme_slugs to ids
carlomanf Jun 10, 2021
65184de
Amend unit test
carlomanf Jun 10, 2021
77b264f
Amend prepare_item_for_database
carlomanf Jun 10, 2021
5ef6d6e
Remove inactive access totally for 5.8 version
carlomanf Jun 10, 2021
83a8645
Fix some other errors
carlomanf Jun 10, 2021
6cbb605
Use $template->source instead of $template->has_theme_file
carlomanf Jun 10, 2021
c5fee72
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into t…
carlomanf Sep 29, 2021
2fb5420
Detach theme association from save_post hook
carlomanf Sep 29, 2021
2447033
Update new unit test
carlomanf Sep 29, 2021
735b3ff
Add theme association to update_item method
carlomanf Sep 29, 2021
76d5f8a
Use $template->slug instead of $request['id']
carlomanf Sep 29, 2021
27c28d0
Instantiate tax_input for template part area.
carlomanf Sep 29, 2021
a4bf0aa
Update admin view
carlomanf Oct 2, 2021
764d484
Stop using post_name altogether
carlomanf Oct 2, 2021
0a46d34
Improve customize_template function
carlomanf Oct 6, 2021
d307f35
Clean up prepare_item_for_database
carlomanf Oct 6, 2021
6a3407e
Fix unit test
carlomanf Oct 6, 2021
5aa6998
Add gutenberg prefix
carlomanf Oct 6, 2021
8e72522
Merge branch 'trunk' of https://github.com/WordPress/gutenberg into t…
carlomanf Oct 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
https://core.trac.wordpress.org/ticket/28099
  • Loading branch information
carlomanf committed May 20, 2021
commit 26133dfb75029c51b184f9d41c56659e434726ec
5 changes: 5 additions & 0 deletions lib/full-site-editing/block-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ function gutenberg_get_block_templates( $query = array(), $template_type = 'wp_t
}
}

// https://core.trac.wordpress.org/ticket/28099
if ( $wp_query_args['post__in'] === array() ) {
return array();
}

// This is only needed for the regular templates/template parts CPT listing and editor.
if ( isset( $query['wp_id'] ) ) {
$wp_query_args['p'] = $query['wp_id'];
Expand Down