Replace 'DIRECTORY_SEPARATOR' with '/'

This commit is contained in:
Romario 2020-08-26 17:02:07 -05:00
parent c4ccc38780
commit fefc6193be
1 changed files with 2 additions and 2 deletions

View File

@ -1057,7 +1057,7 @@ class WC_AJAX {
$item_id = $item->save();
ob_start();
include __DIR__ . DIRECTORY_SEPARATOR. 'admin/meta-boxes/views/html-order-shipping.php';
include __DIR__ . '/admin/meta-boxes/views/html-order-shipping.php';
$response['html'] = ob_get_clean();
} catch ( Exception $e ) {
wp_send_json_error( array( 'error' => $e->getMessage() ) );
@ -1104,7 +1104,7 @@ class WC_AJAX {
$item->save();
ob_start();
include __DIR__ . DIRECTORY_SEPARATOR . 'admin/meta-boxes/views/html-order-items.php';
include __DIR__ . '/admin/meta-boxes/views/html-order-items.php';
$response['html'] = ob_get_clean();
} catch ( Exception $e ) {
wp_send_json_error( array( 'error' => $e->getMessage() ) );