PHP Notices after updating from 1.1.3 to 1.2.0
-
Hello.
I just updated the plugin from v. 1.1.3 to v. 1.2.0. I already had a couple of custom post types and I got the following notices:
Notice: Undefined index: description in /.../wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 340
Notice: Undefined index: show_in_rest in /.../wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 346
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /.../wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php:346) in /.../wp-content/plugins/ag-custom-admin/plugin.php on line 91
I believe this happens because of the introduction of the taxonomy properties description, show_in_rest and rest_base. For the rest_base there is a proper check above the arguments declaration, but not for the description and the show_in_rest properties. The notices will dissapear once these checks are in place.
I installed it on another WordPress installation and since it doesn’t have any custom post types yet, these notices didn’t appear.
Regards
- The topic ‘PHP Notices after updating from 1.1.3 to 1.2.0’ is closed to new replies.