We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6051199 commit 34f4104Copy full SHA for 34f4104
WordPress/Tests/WP/GetMetaSingleUnitTest.inc
@@ -46,3 +46,10 @@ $warning = get_metadata(
46
);
47
$warning = get_metadata_raw( 'post', $post_id, $meta_key );
48
$warning = get_metadata_default( 'post', $post_id, $meta_key );
49
+
50
+/*
51
+ * Safeguard correct handling of fully qualified and relative namespaced function calls (fully qualified global function
52
+ * call and partially qualified namespaced function call are already handled above).
53
+ */
54
+\MyNamespace\get_post_meta( $post_id, $meta_key ); // Ok.
55
+namespace\get_post_meta( $post_id, $meta_key ); // The sniff should start flagging this once it can resolve relative namespaces.
0 commit comments