fukata/wp-flickr-press — Issue #7: Use of 'roles' not 'user levels'
Author: alexrudy
Created: 2011-12-15 16:10:31+00:00
State: open

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!