Fix PHP Warning related to $post_type functions.php on line 1060
Tested with last wordpress version 6.4.3
check with the last version 6.3.1 of wordpress