Skip to content

Commit ab245a8

Browse files
committed
Revert "No need to initialize $path_pieces"
This reverts commit 830d826.
1 parent 830d826 commit ab245a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/plugins/jetpack/class.json-api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ public function serve( $exit = true ) {
476476
}
477477

478478
// Find which endpoint to serve.
479-
$found = false;
480-
479+
$found = false;
480+
$path_pieces = array();
481481
foreach ( $this->endpoints as $endpoint_path_versions => $endpoints_by_method ) {
482482
// @todo Determine if anything depends on this being serialized rather than e.g. JSON.
483483
// phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize -- Legacy, possibly depended on elsewhere.

0 commit comments

Comments
 (0)