GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
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: http://codex.wordpress.org/Roles_and_Capabilities#User_Levels
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!
I support it bugs me another, please wait.
Fixed option settings menu capability "manage_options" and released v1.7.4.