@@ -54,22 +54,22 @@ Feature: Manage WordPress taxonomies
5454 """
5555 <?php
5656 // Plugin Name: Test Taxonomy Strict/No-Strict Mode
57-
58- add_action( 'init', function() {
59- $args = array(
60- 'hierarchical' => true,
61- 'show_ui' => true,
62- 'show_admin_column' => true,
63- 'update_count_callback' => '_update_post_term_count' ,
64- 'query_var' => true ,
65- 'labels ' => array(
66- 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),
67- ),
68-
69- );
70-
71- register_taxonomy( 'genres', array( 'post','page' ), $args );
72- } );
57+ 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+ }
72+ );
7373 """
7474
7575 When I run `wp taxonomy list --object_type=post --strict`
@@ -94,22 +94,22 @@ Feature: Manage WordPress taxonomies
9494 """
9595 <?php
9696 // Plugin Name: Test Taxonomy Strict/No-Strict Mode
97-
98- add_action( 'init', function() {
99- $args = array(
100- 'hierarchical' => true,
101- 'show_ui' => true,
102- 'show_admin_column' => true,
103- 'update_count_callback' => '_update_post_term_count' ,
104- 'query_var' => true ,
105- 'labels ' => array(
106- 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),
107- ),
108-
109- );
110-
111- register_taxonomy( 'genres', array( 'post','page' ), $args );
112- } );
97+ 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+ }
112+ );
113113 """
114114
115115 When I run `wp taxonomy list --object_type=post --strict`
0 commit comments