Changeset 52062 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/08/2021 11:09:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r52041 r52062 19 19 * 20 20 * @since 2.8.0 21 * @since 5.9.0 Added `'wp_template_part_area'` taxonomy. 21 22 * 22 23 * @global WP_Rewrite $wp_rewrite WordPress rewrite component. … … 176 177 register_taxonomy( 177 178 'wp_theme', 178 array( 'wp_template', 'wp_ global_styles' ),179 array( 'wp_template', 'wp_template_part', 'wp_global_styles' ), 179 180 array( 180 181 'public' => false, … … 183 184 'name' => __( 'Themes' ), 184 185 'singular_name' => __( 'Theme' ), 186 ), 187 'query_var' => false, 188 'rewrite' => false, 189 'show_ui' => false, 190 '_builtin' => true, 191 'show_in_nav_menus' => false, 192 'show_in_rest' => false, 193 ) 194 ); 195 196 register_taxonomy( 197 'wp_template_part_area', 198 array( 'wp_template_part' ), 199 array( 200 'public' => false, 201 'hierarchical' => false, 202 'labels' => array( 203 'name' => __( 'Template Part Areas' ), 204 'singular_name' => __( 'Template Part Area' ), 185 205 ), 186 206 'query_var' => false,
Note: See TracChangeset
for help on using the changeset viewer.