Skip to content

Commit 2bd591d

Browse files
Use relative path in activate_plugin
1 parent 84e4d93 commit 2bd591d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎admin/load.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ function perflab_install_activate_standalone_plugins_callback() {
709709
}
710710
}
711711

712-
$result = activate_plugin( WP_PLUGIN_DIR . '/' . $plugin_basename );
712+
$result = activate_plugin( $plugin_basename );
713713
if ( is_wp_error( $result ) ) {
714714
$status['errorMessage'] = $result->get_error_message();
715715
wp_send_json_error( $status );

0 commit comments

Comments
 (0)