@@ -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 ' );
@@ -99,3 +99,12 @@ global_terms( $foo, 'deprecated' );
9999// All will give an WARNING as they have been deprecated after WP 6.5.
100100inject_ignored_hooked_blocks_metadata_attributes ('' , 'deprecated ' );
101101wp_render_elements_support_styles ('deprecated ' );
102+
103+ /*
104+ * Safeguard correct handling of all types of namespaced function calls.
105+ */
106+ \add_option ( '' , '' , [] ); // Bad.
107+ MyNamespace \get_blog_list ( $ foo , $ bar , 'deprecated ' ); // Ok.
108+ \MyNamespace \get_wp_title_rss ( 'deprecated ' ); // Ok.
109+ namespace \the_author ( 'deprecated ' , 'deprecated ' ); // The sniff should start flagging this once it can resolve relative namespaces.
110+ namespace \Sub \wp_title_rss ( 'deprecated ' ); // Ok.
0 commit comments