Undefined array key “post_type” | WordPress.org

[ad_1]

I’m getting warnings (but no errors) when I open the new post page. The plugin still works, but this is slightly annoying.

Warning: Undefined array key “post_type” in /home/public/wp-content/plugins/my-default-post-content/my-default-post-content.php on line 140

Warning: Undefined array key “post_type” in /home/public/wp-content/plugins/my-default-post-content/my-default-post-content.php on line 122

I am using the classic editor. I haven’t added or removed any other plugins, since the last time it was behaving normally, but I did just upgrade to PHP 8.0.29.

 

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