Skip to content

Commit

Permalink
Remove unused data endpoints param (woocommerce/woocommerce-admin#8379)
Browse files Browse the repository at this point in the history
* Remove unused data endpoints param

* Add changelog
  • Loading branch information
louwie17 committed Feb 28, 2022
1 parent 3e672d7 commit 1c6b18c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
@@ -0,0 +1,4 @@
Significance: minor
Type: Dev

Remove unused pre loaded setting data displaying all the routes. #8379
2 changes: 1 addition & 1 deletion plugins/woocommerce-admin/src/Loader.php
Expand Up @@ -1020,7 +1020,7 @@ public static function add_component_settings( $settings ) {
];
}

$preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array( '/wc/v3' ) );
$preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() );
if ( class_exists( 'Jetpack' ) ) {
$preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection';
}
Expand Down

0 comments on commit 1c6b18c

Please sign in to comment.