← All changes
|
src/integrations/third-party/woocommerce-permalinks.php
+4
-0
18.5.1
→
trunk
View file →
| @@ -40,8 +40,10 @@ | ||
| 40 | 40 | /** |
| 41 | 41 | * Registers the hooks. |
| 42 | 42 | * |
| 43 | 43 | * @codeCoverageIgnore |
| 44 | + * | |
| 45 | + * @return void | |
| 44 | 46 | */ |
| 45 | 47 | public function register_hooks() { |
| 46 | 48 | \add_filter( 'wpseo_post_types_reset_permalinks', [ $this, 'filter_product_from_post_types' ] ); |
| 47 | 49 | \add_action( 'update_option_woocommerce_permalinks', [ $this, 'reset_woocommerce_permalinks' ], 10, 2 ); |
| @@ -64,8 +66,10 @@ | ||
| 64 | 66 | * Resets the indexables for WooCommerce based on the changed permalink fields. |
| 65 | 67 | * |
| 66 | 68 | * @param array $old_value The old value. |
| 67 | 69 | * @param array $new_value The new value. |
| 70 | + * | |
| 71 | + * @return void | |
| 68 | 72 | */ |
| 69 | 73 | public function reset_woocommerce_permalinks( $old_value, $new_value ) { |
| 70 | 74 | $changed_options = \array_diff( $old_value, $new_value ); |
| 71 | 75 | |