verygoodplugins

Untitled

Oct 5th, 2021 (edited)
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. if ( is_admin() ) {
  2.     require_once WPF_DIR_PATH . 'includes/admin/class-updater.php'; // this file contains the class WPF_Plugin_Updater(); it only loads in the admin.
  3. }
  4.  
  5. if ( ! is_admin() ) {
  6.     return; // if we're not in the admin, quit
  7. }
  8.  
  9. $edd_updater = new WPF_Plugin_Updater(); // Fatal error, class not found, because the file wasn't included. Somehow WPMU is running this line of code outside of the admin, despite the line above.
Add Comment
Please, Sign In to add comment