Footnote Fatal Error | WordPress.org

[ad_1]

This is yet another example of WP’s faultless programming. This returns something that isn’t empty:

$footnotes = get_post_meta( $block->context['postId'], 'footnotes', true );

However, whatever that is, it isn’t valid JSON. WP assumes it is, thus the error.

After the line above, add this:

print_r($footnotes);exit;

What does it output?

You can stop the problem by copying lines 31-33, and pasting those below line 35.

I created this: https://github.com/WordPress/WordPress/pull/666

Then I found this:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer