fake page doesn’t work with WP 6.1
-
I’m using a similar code like https://geek.hellyer.kiwi/2018/08/02/creating-fake-wordpress-pages/ to generate a page on the fly. I get some php errors since update to WP 6.1:
PHP Warning: Attempt to read property "post_type" on null in /wp-includes/link-template.php on line 4066 PHP Warning: Attempt to read property "post_type" on null in /wp-includes/link-template.php on line 4068
The reason is, as I understand it, that the post doesn’t exist really and therefore a shortlink doesn’t exist. Is this a bug or should I change something in the code?
Thank you very much.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘fake page doesn’t work with WP 6.1’ is closed to new replies.