Some errors
-
Hello,
I’ve received this messages while using this plugin:
Notice: Undefined index: name in wp-content/plugins/windows-azure-storage/windows-azure-storage.php on line 408Notice: Undefined index: _wpnonce in wp-content/plugins/windows-azure-storage/windows-azure-storage.php on line 408
I’ve been looking to the code and I’ve this sugestion to you:
In line 408, instead of$post_array = wp_parse_args( $post_array, array( 'item_id' => $post_array['name'] . '_' . $post_array['_wpnonce'], ) );
You can use this
$post_array_name = isset($post_array['name']) ? $post_array['name'] : ''; $post_array_wponce = isset($post_array['_wpnonce']) ? $post_array['_wpnonce'] : ''; $post_array = wp_parse_args( $post_array, array( 'item_id' => $post_array_name . '_' . $post_array_wponce, ) );
This way it’s possible to prevent those errors when those variables are null.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Some errors’ is closed to new replies.