Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jul 23, 2018
1 parent adee936 commit 27b921b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,6 @@ function gutenberg_api_request( $path ) {
$request->set_query_params( $query_params );
}


// Ensure the global $post remains the same after the API request is made.
// Because API requests can call the_content and other filters, callbacks
// can unexpectedly modify $post resulting in issues
Expand All @@ -624,7 +623,7 @@ function gutenberg_api_request( $path ) {

$response = rest_do_request( $request );

// restore the global post
// restore the global post.
$post = $backup_global_post;

if ( 200 === $response->status ) {
Expand Down Expand Up @@ -656,7 +655,6 @@ function gutenberg_api_request( $path ) {
* @return array Modified reduce accumulator.
*/
function gutenberg_preload_api_request( $memo, $path ) {

// array_reduce() doesn't support passing an array in PHP 5.2
// so we need to make sure we start with one.
if ( ! is_array( $memo ) ) {
Expand Down

0 comments on commit 27b921b

Please sign in to comment.