__call : missing function', [ 'function_name' => $name, 'is_cli' => defined('WP_CLI') && WP_CLI ? 'yes' : 'no', // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized 'current_script' => $_SERVER['SCRIPT_FILENAME'], 'backtrace' => $backtrace, // phpcs:ignore WordPress.Security.NonceVerification.Recommended 'request' => $_REQUEST ]); if ($name === 'blocksy_has_dynamic_css_in_frontend') { return false; } if ($name === 'blocksy_get_search_post_type') { return []; } $functions_with_default = [ 'blocksy_get_theme_mod', 'blocksy_get_variables_from_file', ]; // Special case for blocksy_get_theme_mod, when we know the default // is the 2nd argument. Other helpers will not be handled like this // and the caller are supposed to handle the `null` return value. if (in_array($name, $functions_with_default)) { if (count($arguments) > 1) { return $arguments[1]; } } // Every other function should handle the special case of the `null`. return self::$NON_EXISTING_FUNCTION; } }