Skip to content

Commit 464a7c3

Browse files
committed
Set default rest path
1 parent 19b1933 commit 464a7c3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dist/easycoder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7626,9 +7626,8 @@ const EasyCoder_Rest = {
76267626
}
76277627

76287628
const url = program.getValue(command.url);
7629-
// Default is the path for a WordPress installation
76307629
if (!EasyCoder_Rest.restPath) {
7631-
EasyCoder_Rest.restPath = `/wp-content/plugins/easycoder/rest.php`;
7630+
EasyCoder_Rest.restPath = `.`;
76327631
}
76337632
let path = url;
76347633
if (!url.startsWith(`http`)) {

js/easycoder/Rest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ const EasyCoder_Rest = {
136136
}
137137

138138
const url = program.getValue(command.url);
139-
// Default is the path for a WordPress installation
140139
if (!EasyCoder_Rest.restPath) {
141-
EasyCoder_Rest.restPath = `/wp-content/plugins/easycoder/rest.php`;
140+
EasyCoder_Rest.restPath = `.`;
142141
}
143142
let path = url;
144143
if (!url.startsWith(`http`)) {

0 commit comments

Comments
 (0)