[Plugin: Dave's WordPress Live Search] Bug Fix
-
To get rid of the has_cap notice and clean up the code a bit…
DavesWordPressLiveSearch.php lines 152 thru 154:
public static function admin_menu() { if (current_user_can('manage_options')) { add_options_page("Dave's WordPress Live Search Options", __('Live Search', 'mt_trans_domain'), 8, __FILE__, array('DavesWordPressLiveSearch', 'plugin_options')); } }should simply be:
public static function admin_menu(){ add_options_page("Dave's WordPress Live Search Options", __('Live Search', 'mt_trans_domain'), 'manage_options', __FILE__, array('DavesWordPressLiveSearch', 'plugin_options')); }specifically, 8 needs to become ‘manage_options’
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[Plugin: Dave's WordPress Live Search] Bug Fix’ is closed to new replies.