@@ -43,8 +43,8 @@ _future_post_hook( 10, $post );
4343_load_remote_block_patterns ( $ value );
4444_wp_post_revision_fields ( $ foo , 'deprecated ' );
4545add_option ( '' , '' , [] );
46- add_option ( '' , '' , 1.23 );
47- add_option ( '' , '' , 10 );
46+ \Add_Option ( '' , '' , 1.23 );
47+ ADD_OPTION ( '' , '' , 10 );
4848add_option ( '' , '' , false );
4949add_option ( '' , '' , 'deprecated ' );
5050comments_link ( 'deprecated ' , 'deprecated ' );
@@ -100,3 +100,12 @@ inject_ignored_hooked_blocks_metadata_attributes('', 'deprecated');
100100// All will give an WARNING as they have been deprecated after WP 6.6.
101101wp_render_elements_support_styles ('deprecated ' );
102102_wp_can_use_pcre_u ('deprecated ' );
103+
104+ /*
105+ * Safeguard correct handling of all types of namespaced function calls.
106+ */
107+ \add_option ( '' , '' , [] ); // Bad.
108+ MyNamespace \get_blog_list ( $ foo , $ bar , 'deprecated ' ); // Ok.
109+ \MyNamespace \get_wp_title_rss ( 'deprecated ' ); // Ok.
110+ namespace \the_author ( 'deprecated ' , 'deprecated ' ); // The sniff should start flagging this once it can resolve relative namespaces.
111+ namespace \Sub \wp_title_rss ( 'deprecated ' ); // Ok.
0 commit comments