Skip to content

Commit 87b66ce

Browse files
authored
Merge pull request woocommerce#15061 from rasmusbe/fix-array-duplicates
Remove duplicate entries from defined arrays
2 parents 99e63a8 + 51fd482 commit 87b66ce

4 files changed

+0
-19
lines changed

includes/admin/class-wc-admin-help.php

-4
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ public function add_tabs() {
117117
'title' => __( 'API Settings', 'woocommerce' ),
118118
'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq.jsonp?',
119119
),
120-
'wc-settings-api' => array(
121-
'title' => __( 'API Settings', 'woocommerce' ),
122-
'url' => '//fast.wistia.net/embed/iframe/1q0ny74vvq.jsonp?',
123-
),
124120
'product' => array(
125121
'title' => __( 'Creating Products', 'woocommerce' ),
126122
'url' => '//fast.wistia.net/embed/iframe/fw0477t6wr.jsonp?',

includes/api/class-wc-rest-webhook-deliveries.php

-7
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ public function get_item_schema() {
101101
'context' => array( 'view' ),
102102
'readonly' => true,
103103
),
104-
'request_headers' => array(
105-
'description' => __( 'The URL where the webhook was delivered.', 'woocommerce' ),
106-
'type' => 'string',
107-
'format' => 'uri',
108-
'context' => array( 'view' ),
109-
'readonly' => true,
110-
),
111104
'request_headers' => array(
112105
'description' => __( 'Request headers.', 'woocommerce' ),
113106
'type' => 'array',

includes/api/v1/class-wc-rest-webhook-deliveries.php

-7
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,6 @@ public function get_item_schema() {
255255
'context' => array( 'view' ),
256256
'readonly' => true,
257257
),
258-
'request_headers' => array(
259-
'description' => __( 'The URL where the webhook was delivered.', 'woocommerce' ),
260-
'type' => 'string',
261-
'format' => 'uri',
262-
'context' => array( 'view' ),
263-
'readonly' => true,
264-
),
265258
'request_headers' => array(
266259
'description' => __( 'Request headers.', 'woocommerce' ),
267260
'type' => 'array',

includes/class-wc-post-types.php

-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ public static function register_taxonomies() {
208208
'show_ui' => true,
209209
'show_in_quick_edit' => false,
210210
'show_in_menu' => false,
211-
'show_in_nav_menus' => false,
212211
'meta_box_cb' => false,
213212
'query_var' => 1 === $tax->attribute_public,
214213
'rewrite' => false,

0 commit comments

Comments
 (0)