Skip to content

Instantly share code, notes, and snippets.

@drzraf
Created June 6, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drzraf/f9f1bbbe0177be9ce78d344061a376a4 to your computer and use it in GitHub Desktop.
Save drzraf/f9f1bbbe0177be9ce78d344061a376a4 to your computer and use it in GitHub Desktop.
diff --git a/includes/api/api-template.php b/includes/api/api-template.php
index bfd0fd2..259885c 100644
--- a/includes/api/api-template.php
+++ b/includes/api/api-template.php
@@ -162,7 +162,7 @@ function get_field_object( $selector, $post_id = false, $format_value = true, $l
* @param $strict (boolean) if true, return a field only when a field key is found.
* @return $field (array)
*/
-function acf_maybe_get_field( $selector, $post_id = false, $strict = true ) {
+function acf_maybe_get_field( $selector, $post_id = false, $strict = false ) {
// init
acf_init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment