wpmetabox / meta-box

The best plugin for WordPress custom fields and custom meta boxes
https://metabox.io
1.18k stars 423 forks source link

fix: defensively check for null post in add_fields() for php 8.3 #1557

Closed balexey88 closed 5 months ago

balexey88 commented 5 months ago

Hello!

One of our customers requested some changes in metabox related to PHP 8.3 Could you please take a look https://github.com/udx/wp-stateless/pull/694?

Thanks you!

rilwis commented 5 months ago

We're working on that at #1560 . We think removing the type check for $post is better as it's compatible with PHP < 7.2.

balexey88 commented 5 months ago

@rilwis thank you the update!