Make WordPress Core


Ignore:
Timestamp:
11/07/2025 12:41:01 PM (5 months ago)
Author:
ellatrix
Message:

Revert template activation.

This commit reverts the PHP changes that were made to support the template activation feature. The UI was already reverted through the packages sync in [61177] (Gutenberg PR: https://github.com/WordPress/gutenberg/pull/73025).

Developed in https://github.com/WordPress/wordpress-develop/pull/10473.

Fixes #64214.
Props ellatrix, t-hamano, mcsf, ramonjd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-templates.php

    r61054 r61178  
    4848    if ( 'wp_template' !== $post_type && 'wp_template_part' !== $post_type ) {
    4949        return $override_slug;
    50     }
    51 
    52     // For wp_template, slugs no longer have to be unique within the same theme.
    53     if ( 'wp_template' === $post_type ) {
    54         return $slug;
    5550    }
    5651
Note: See TracChangeset for help on using the changeset viewer.