WP Custom Admin Bar
[resolved] error message (3 posts)

  1. gopanthers
    Posted 5 years ago #

    I love what this plugin should do but for me it gives error messages where the Admin Bar was. I unchecked the Admin Bar display for all roles except Admin and Editors, so regular Subscribers shouldn't see anything. It kinda worked in that the Admin Bar didn't appear for Subscribers but instead, the following error message was displayed at the very top of the page.

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxxxxx/xxxxxx/wp-content/plugins/wp-custom-admin-bar/custom-admin-bar-functions.php on line 89

    I've disabled this plugin for now instead of deleting it because I'd still love to use this plugin once the bug gets fixed. Can't find another similar plugin that lets you choose viability by roles.

  2. Wes Todd
    Plugin Author

    Posted 5 years ago #

    Try updating to version 1.1, I added a line that should help with your problem. I was unable to replicate the error so hopefully that will fix it. If not let me know and I will get it figured out. Thanks for the bug report!

  3. gopanthers
    Posted 5 years ago #

    Yes, it is all fixed now. Thanks. Great plug-in.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Custom Admin Bar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic