[Plugin: WP-Status.net] Patch: fix array key, has_cap warnings
-
--- wp-status-net.php 2012-07-16 20:51:15.604960940 +0300 +++ wp-status-net.php.new 2012-08-01 21:04:36.392944461 +0300 @@ -700,7 +700,7 @@ function wpstatusnet_options() { - if ( 'save' == $_REQUEST['action'] ) + if ( array_key_exists('action', $_REQUEST) && 'save' == $_REQUEST['action'] ) { $options = array( "apitype" => $_REQUEST[apitype], @@ -931,7 +931,7 @@ { if (function_exists('add_options_page')) { - add_options_page('WP-Status.net', 'WP-Status.net', 0, basename(__FILE__), 'wpstatusnet_options'); + add_options_page('WP-Status.net', 'WP-Status.net', 'manage_options', basename(__FILE__), 'wpstatusnet_options'); } }
The topic ‘[Plugin: WP-Status.net] Patch: fix array key, has_cap warnings’ is closed to new replies.