Skip to content
Closed
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions src/wp-includes/theme-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_id
}

// For wp_template, slugs no longer have to be unique within the same theme.
if ( 'wp_template' !== $post_type ) {
return $override_slug;
if ( 'wp_template' === $post_type ) {
return $slug;
}

if ( ! $override_slug ) {
Expand Down
Loading