jchristopher / cms-tree-page-view

17 stars 2 forks source link

Update option storage #5

Open jchristopher opened 3 years ago

jchristopher commented 3 years ago

Original thread: https://wordpress.org/support/topic/deprecated-options-php-error/

From: [SITE]/wp-admin/options-general.php?page=cms-tpv-options when I save the settings I got the following error 27 times :

Deprecated: options.php was called with an argument that is deprecated since version 2.7.0! The post-type-menu-post setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/ in [PATH]\wp-includes\functions.php on line 4997
Call Stack
# Time Memory Function Location
1 0.0007 478832 {main}( ) …\options.php:0
2 0.6554 50194584 _deprecated_argument( ) …\options.php:274
3 0.6554 50195096 trigger_error ( ) …\functions.php:4997
jchristopher commented 3 years ago

Settings need to be updated to use the Settings API