Use of 'roles' not 'user levels' #7

alexrudy opened this Issue Dec 15, 2011 · 2 comments


None yet
2 participants

alexrudy commented Dec 15, 2011

Why does the call to add_options_page use 'user levels' instead of 'capabilities'?

You can see information on the 'capabilities' (added in 2.0) here:

Currently, when I run your plug-in with WP-DEBUG enabled, I get output about the depreciated roles, which is minorly annoying. In my copy, I have changed the third argument of the add_options_page in FpAdminSettingEvent.php to 'manage_options'. Using capabilities would make your plug-in not work with 1.5, but it would also stop using depreciated features.

As such, I might suggest that you change this call to

$page = add_options_page(FlickrPress::NAME.' Option', FlickrPress::NAME, 'manage_options' , __FILE__, array('FpAdminSettingEvent','generateOptionForm'));

Otherwise, great plugin!

@ghost ghost assigned fukata Dec 15, 2011


fukata commented Dec 15, 2011

I support it bugs me another, please wait.

Thank you.

@fukata fukata closed this in 9835151 Dec 15, 2011


fukata commented Dec 15, 2011

Fixed option settings menu capability "manage_options" and released v1.7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment