• Adam Ainsworth

    (@adamainsworth)


    In your example under troubleshooting, it throws a fatal error if the plugin isn’t present. You should change the code to the following:

    if (file_exists(WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php')) {
    require_once WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php';
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Safer mu-plugins call’ is closed to new replies.