WordPress.org

Ready to get started?Download WordPress

Forums

WP-Status.net
Patch: fix array key, has_cap warnings (1 post)

  1. Jani Uusitalo
    Member
    Posted 1 year ago #

    --- 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');
         	}
     }

    http://wordpress.org/extend/plugins/wp-statusnet/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.