PhotoDune

Uninstalling WordPress Plugin Issue

12 posts
  • Has been a member for 1-2 years
  • United States
GFlashedBureau says
Inside uninstall.php file which triggers after clicking on plugin delete link, I see in every second plugin such start line (which prevents calling script directly):

if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
    exit();

What is ”!defined( ‘ABSPATH’)” part is for and why is there “&&” there? Shouldn’t it just be check for “WP_UNINSTALL_PLUGIN”?

by
by
by
by
by