Quantcast
Viewing all articles
Browse latest Browse all 67836

Fix for $_post Issue

Replies: 0

This is what I got from this plugin after updating WordPress:
This plugin is not supported think anymore.

Error when I used Wp_debug to true in wp-config:
Notice: Undefined index: action in /home/directory/public_html/wp-content/plugins/wp-from-email/wp-from-email.php on line 17

If anyone runs into this issue. Here is a fix to the deprecated $_post. Line 17 has this:

Undefined index:
if($_post[‘action’] == ‘wp_from_update’)

My Fix:
if($_SERVER[‘REQUEST_METHOD’] == ‘POST’ && ‘wp_from_update’)

It has been working for me if there is anyone that has a better way or corrected way to do this post it here.


Viewing all articles
Browse latest Browse all 67836

Trending Articles