Skip to content

Commit

Permalink
fixed rest-routes, missed return
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeldheim committed Jul 27, 2024
1 parent 7b31a17 commit 384a526
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 2 additions & 0 deletions includes/rest-routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ function get_jwt() {
$rest_response = new WP_REST_Response( $response, 200 );
$rest_response->header( 'Cache-Control', 'no-store' ); // Prevent client-side caching

Check failure on line 113 in includes/rest-routes.php

View workflow job for this annotation

GitHub Actions / WPCS

Inline comments must end in full-stops, exclamation marks, or question marks
$rest_response->header( 'Cloudflare-CDN-Cache-Control', 'max-age=' . ($key_exp-10) ); // Enable Cloudflare caching

Check failure on line 114 in includes/rest-routes.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 space after open parenthesis; 0 found

Check failure on line 114 in includes/rest-routes.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 space before "-"; 0 found

Check failure on line 114 in includes/rest-routes.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 space after "-"; 0 found

Check failure on line 114 in includes/rest-routes.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 space before close parenthesis; 0 found

Check failure on line 114 in includes/rest-routes.php

View workflow job for this annotation

GitHub Actions / WPCS

Inline comments must end in full-stops, exclamation marks, or question marks

return $rest_response;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppleMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ class AppleMap {
* Focus the Marker setting when the marker is selected
*
* marker.addEventListener( 'select', ( event ) => {
* const identifier =
* this.map.annotations.indexOf( event.target );
* const identifier =
* this.map.annotations.indexOf( event.target );
* } );
*/
}
Expand Down

0 comments on commit 384a526

Please sign in to comment.