WP-Polls for non-admins

WP-Polls is a nice plugin that lets you add polls to your WordPress site, either in posts, pages, or in your sidebar via a widget. For some (probably logical) reason, the author decided to hard-code the WordPress role allowed to manage polls to the administrator. I’d rather let my blog users set up their own polls – maybe they’ll manage to blow up something by being able to, but I doubt it. Here’s how to allow a non-admin roles to manage polls:

  1. Search for “administrator” in wp-polls.php.
  2. Replace it with the desired role – such as “editor” or “author”.
  3. Deactivate and reactivate the plugin.

Keep in mind that you’ll need to re-do this each time you update the plugin…unless/until the plugin author decides to add an admin Settings page to do this.

This entry was tagged . Bookmark the permalink. Share on Twitter or Facebook.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>