From 546c17b19361ef8c9e4d9eaf90cbe54bb9148ab5 Mon Sep 17 00:00:00 2001 From: Abhishek Kaushik Date: Mon, 13 Jul 2026 15:13:52 +0530 Subject: [PATCH] feat: add WordPress 6.9 and 7.0 upgrade rule sets Add WP_6_9/WP_7_0 sets and UP_TO_WP_6_9/UP_TO_WP_7_0 level sets, covering the deprecations verified against WordPress core at tags 6.9 and 7.0. Simple renames (RenameFunctionRector): - 6.9: seems_utf8 -> wp_is_valid_utf8; wp_print_auto_sizes_contain_css_fix -> wp_enqueue_img_auto_sizes_contain_css_fix - 7.0: addslashes_gpc -> wp_slash; block_core_navigation_submenu_render_submenu_icon -> block_core_shared_navigation_render_submenu_icon Add RenameFunctionWithArgumentsRector (renames a function and appends literal arguments in a single pass) for deprecations that need extra args: - 6.9: utf8_encode/utf8_decode -> mb_convert_encoding(..., charset, charset) - 7.0: block_core_navigation_block_contains_core_navigation -> block_core_navigation_block_tree_has_block_type(..., 'core/navigation') wp_sanitize_script_attributes is left as a documented TODO: it returns an attribute string while its replacements return a full