wp-media / adminimize

Adminimize is a WordPress plugin that lets you hide 'unnecessary' items from the WordPress backend.
https://wordpress.org/plugins/adminimize/
GNU General Public License v2.0
100 stars 30 forks source link

Imported adminize.json causes plugin to break. #116

Closed flameoftheforest closed 2 years ago

flameoftheforest commented 5 years ago

Version Information

Expression of Thanks

First and foremost, thank you so much for this plugin! It is very useful. You guys deserve all the good things in life because you have really make my life as a software janitor a lot easier.

Steps to Reproduce

  1. Export settings to JSON file
  2. Import settings
  3. Error thrown: "Cannot use object of type stdClass as array in /var/www/html/wp-content/plugins/adminimize/inc-options/menu_options.php:191"

What I Expected

Plugin Settngs Page renders normally.

What Happened Instead

Plugin Settings Page stops rendering after Menu-Options > Settings > Discussions.

What I did to fix it:

Please consider the fix and/or look into how to address the cause of this issue.

Thank you! Bryan Hillsong.com

bueltge commented 2 years ago

Should be fixed with the last commit ^ and released in the new version 1.11.8