Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP notices when posting settings #36

Closed
fiskhandlarn opened this issue May 10, 2019 · 1 comment
Closed

PHP notices when posting settings #36

fiskhandlarn opened this issue May 10, 2019 · 1 comment

Comments

@fiskhandlarn
Copy link
Contributor

Expected behavior

Save settings without seeing PHP notices

Observed behavior

Notice: options.php was called with an argument that is deprecated since version 2.7.0! The bugsnag_api_key setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API

Notice: options.php was called with an argument that is deprecated since version 2.7.0! The bugsnag_notify_severities setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API

Notice: options.php was called with an argument that is deprecated since version 2.7.0! The bugsnag_filterfields setting is unregistered. Unregistered settings are deprecated. See https://codex.wordpress.org/Settings_API

Steps to reproduce

  1. Configure PHP to show notices
  2. Go to /wp-admin/options-general.php?page=bugsnag
  3. Enter API key
  4. Submit the form

Version

1.3.1


This actually seems to be due to the settings form posting to action="options.php" (as explained in https://wordpress.stackexchange.com/a/289620/144404). If I remove action="options.php" from views/settings.php the form posts without notices.

@fiskhandlarn
Copy link
Contributor Author

PR to fix this: #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants