@@ -55,20 +55,20 @@ Feature: Manage WordPress taxonomies
5555 <?php
5656 // Plugin Name: Test Taxonomy Strict/No-Strict Mode
5757 add_action(
58- 'init',
59- function () {
60- $args = array(
61- 'hierarchical' => true,
62- 'show_ui' => true,
63- 'show_admin_column' => true,
64- 'update_count_callback' => '_update_post_term_count',
65- 'query_var' => true,
66- 'labels' => array(
67- 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),
68- ),
69- );
70- register_taxonomy( 'genres', array( 'post', 'page' ), $args );
71- }
58+ 'init',
59+ function () {
60+ $args = array(
61+ 'hierarchical' => true,
62+ 'show_ui' => true,
63+ 'show_admin_column' => true,
64+ 'update_count_callback' => '_update_post_term_count',
65+ 'query_var' => true,
66+ 'labels' => array(
67+ 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),
68+ ),
69+ );
70+ register_taxonomy( 'genres', array( 'post', 'page' ), $args );
71+ }
7272 );
7373 """
7474
@@ -95,20 +95,20 @@ Feature: Manage WordPress taxonomies
9595 <?php
9696 // Plugin Name: Test Taxonomy Strict/No-Strict Mode
9797 add_action(
98- 'init',
99- function () {
100- $args = array(
101- 'hierarchical' => true,
102- 'show_ui' => true,
103- 'show_admin_column' => true,
104- 'update_count_callback' => '_update_post_term_count',
105- 'query_var' => true,
106- 'labels' => array(
107- 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),
108- ),
109- );
110- register_taxonomy( 'genres', array( 'post', 'page' ), $args );
111- }
98+ 'init',
99+ function () {
100+ $args = array(
101+ 'hierarchical' => true,
102+ 'show_ui' => true,
103+ 'show_admin_column' => true,
104+ 'update_count_callback' => '_update_post_term_count',
105+ 'query_var' => true,
106+ 'labels' => array(
107+ 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),
108+ ),
109+ );
110+ register_taxonomy( 'genres', array( 'post', 'page' ), $args );
111+ }
112112 );
113113 """
114114
0 commit comments