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 9b23cb7 commit b2b742cCopy full SHA for b2b742c
1 file changed
web/app/themes/platformlondon/functions.php
@@ -306,7 +306,7 @@
306
!wp_is_json_request()
307
) {
308
global $post;
309
- if ($post->post_name === "projects") {
+ if ($post && isset($post->post_name) && $post->post_name === "projects") {
310
preg_match('#<img.*src="([^"]*)"#', $block_content, $matches);
311
if (count($matches) !== 2) {
312
return $block_content;
0 commit comments