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 9249096 commit 7a97fcfCopy full SHA for 7a97fcf
wp-graphql-yoast-seo.php
@@ -130,6 +130,7 @@ function wpcom_vip_attachment_url_to_postid($url)
130
'default',
131
12 * HOUR_IN_SECONDS + mt_rand(0, 4 * HOUR_IN_SECONDS) // phpcs:ignore
132
);
133
+ $id = null; // Set $id to null instead of false
134
} else {
135
wp_cache_set(
136
$cache_key,
@@ -139,12 +140,12 @@ function wpcom_vip_attachment_url_to_postid($url)
139
140
141
}
142
} elseif ('not_found' === $id) {
- return false;
143
+ return null; // Return null instead of false
144
-
145
+
146
return $id;
147
- }
148
+ }
149
150
function wp_gql_seo_build_content_types($types)
151
{
0 commit comments