|
@@ 1118-1121 (lines=4) @@
|
| 1115 |
|
$path = ABSPATH; |
| 1116 |
|
|
| 1117 |
|
// Detect path if it is set in the file param. |
| 1118 |
|
if ( false !== strpos( $file, '/' ) ) { |
| 1119 |
|
$path = dirname( $file ); |
| 1120 |
|
$file = basename( $file ); |
| 1121 |
|
} |
| 1122 |
|
|
| 1123 |
|
$format = 'json'; |
| 1124 |
|
|
|
@@ 1164-1167 (lines=4) @@
|
| 1161 |
|
$path = ABSPATH; |
| 1162 |
|
|
| 1163 |
|
// Detect path if it is set in the file param. |
| 1164 |
|
if ( false !== strpos( $file, '/' ) ) { |
| 1165 |
|
$path = dirname( $file ); |
| 1166 |
|
$file = basename( $file ); |
| 1167 |
|
} |
| 1168 |
|
|
| 1169 |
|
$format = 'json'; |
| 1170 |
|
|