@@ -37,15 +37,14 @@ final class DeprecatedFunctionsSniff extends AbstractFunctionRestrictionsSniff {
3737 /**
3838 * List of deprecated functions with alternative when available.
3939 *
40- * To be updated after every major release.
41- * Last updated for WordPress 6.3.
42- *
4340 * Version numbers should be fully qualified.
4441 * Replacement functions should have parentheses.
4542 *
4643 * To retrieve a function list for comparison, the following tool is available:
4744 * https://github.com/JDGrimes/wp-deprecated-code-scanner
4845 *
46+ * {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
47+ *
4948 * @var array
5049 */
5150 private $ deprecated_functions = array (
@@ -1597,6 +1596,62 @@ final class DeprecatedFunctionsSniff extends AbstractFunctionRestrictionsSniff {
15971596 'alt ' => '' ,
15981597 'version ' => '6.3.0 ' ,
15991598 ),
1599+
1600+ // WP 6.4.0.
1601+ '_admin_bar_bump_cb ' => array (
1602+ 'alt ' => 'wp_enqueue_admin_bar_bump_styles() ' ,
1603+ 'version ' => '6.4.0 ' ,
1604+ ),
1605+ '_inject_theme_attribute_in_block_template_content ' => array (
1606+ 'alt ' => 'traverse_and_serialize_blocks( parse_blocks( $template_content ), \'_inject_theme_attribute_in_template_part_block \' ) ' ,
1607+ 'version ' => '6.4.0 ' ,
1608+ ),
1609+ '_remove_theme_attribute_in_block_template_content ' => array (
1610+ 'alt ' => 'traverse_and_serialize_blocks( parse_blocks( $template_content ), \'_remove_theme_attribute_from_template_part_block \' ) ' ,
1611+ 'version ' => '6.4.0 ' ,
1612+ ),
1613+ '_wp_theme_json_webfonts_handler ' => array (
1614+ 'alt ' => 'wp_print_font_faces() ' ,
1615+ 'version ' => '6.4.0 ' ,
1616+ ),
1617+ 'print_embed_styles ' => array (
1618+ 'alt ' => 'wp_enqueue_embed_styles() ' ,
1619+ 'version ' => '6.4.0 ' ,
1620+ ),
1621+ 'print_emoji_styles ' => array (
1622+ 'alt ' => 'wp_enqueue_emoji_styles() ' ,
1623+ 'version ' => '6.4.0 ' ,
1624+ ),
1625+ 'the_block_template_skip_link ' => array (
1626+ 'alt ' => 'wp_enqueue_block_template_skip_link() ' ,
1627+ 'version ' => '6.4.0 ' ,
1628+ ),
1629+ 'wp_admin_bar_header ' => array (
1630+ 'alt ' => 'wp_enqueue_admin_bar_header_styles() ' ,
1631+ 'version ' => '6.4.0 ' ,
1632+ ),
1633+ 'wp_img_tag_add_decoding_attr ' => array (
1634+ 'alt ' => 'wp_img_tag_add_loading_optimization_attrs() ' ,
1635+ 'version ' => '6.4.0 ' ,
1636+ ),
1637+ 'wp_update_https_detection_errors ' => array (
1638+ 'alt ' => 'wp_get_https_detection_errors() ' ,
1639+ 'version ' => '6.4.0 ' ,
1640+ ),
1641+
1642+ // WP 6.5.0.
1643+ 'block_core_file_ensure_interactivity_dependency ' => array (
1644+ 'alt ' => 'wp_register_script_module() ' ,
1645+ 'version ' => '6.5.0 ' ,
1646+ ),
1647+ 'block_core_image_ensure_interactivity_dependency ' => array (
1648+ 'alt ' => 'wp_register_script_module() ' ,
1649+ 'version ' => '6.5.0 ' ,
1650+ ),
1651+ 'block_core_query_ensure_interactivity_dependency ' => array (
1652+ 'alt ' => 'wp_register_script_module() ' ,
1653+ 'version ' => '6.5.0 ' ,
1654+ ),
16001655 );
16011656
16021657 /**
0 commit comments