PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/integrations/third-party/woocommerce-permalinks.php +8 -4 18.3 → 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 );
@@ -62,13 +64,15 @@
62 64
63 65 /**
64 66 * Resets the indexables for WooCommerce based on the changed permalink fields.
65 67 *
66 - * @param array $old The old value.
67 - * @param array $new The new value.
68 + * @param array $old_value The old value.
69 + * @param array $new_value The new value.
70 + *
71 + * @return void
68 72 */
69 - public function reset_woocommerce_permalinks( $old, $new ) {
70 - $changed_options = \array_diff( $old, $new );
73 + public function reset_woocommerce_permalinks( $old_value, $new_value ) {
74 + $changed_options = \array_diff( $old_value, $new_value );
71 75
72 76 if ( \array_key_exists( 'product_base', $changed_options ) ) {
73 77 $this->indexable_helper->reset_permalink_indexables( 'post', 'product' );
74 78 }