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

Undefined index cause Notices #15

Open
pablolopezmestre opened this issue Mar 30, 2020 · 0 comments
Open

Undefined index cause Notices #15

pablolopezmestre opened this issue Mar 30, 2020 · 0 comments

Comments

@pablolopezmestre
Copy link

pablolopezmestre commented Mar 30, 2020

if ( $settings['auto_orient'] ) {

I have a custom wp-cli command that update posts information (include featured image) from API. In terminal launch a lot of Notices:
Undefined index: auto_orient in /wp-content/plugins/kraken-image-optimizer/kraken.php on line 1150

Also:
Undefined index: preserve_meta_copyright in /wp-content/plugins/kraken-image-optimizer/kraken.php on line 1130

I think it would be a good idea to check that the $settings array contains all the keys

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

1 participant