Make WordPress Core


Ignore:
Timestamp:
11/08/2021 02:24:02 PM (3 years ago)
Author:
jorgefilipecosta
Message:

Add: wp_global_styles custom post type.

This commit adds the wp_global_styles custom post type following the same approach used to add other core custom post types. It also updates the wp_theme taxonomy to include the wp_global_styles post type.
The post type is registered in the same way it is on the plugin we just adapt the location for the core.

See #54336.
Props oandregal.

File:
1 edited

Legend:

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

    r51965 r52041  
    176176    register_taxonomy(
    177177        'wp_theme',
    178         array( 'wp_template' ),
     178        array( 'wp_template', 'wp_global_styles' ),
    179179        array(
    180180            'public'            => false,
Note: See TracChangeset for help on using the changeset viewer.