Commit 096785ab authored by Erick Hitter's avatar Erick Hitter
Browse files

Consistency

parent df5e44ff
......@@ -100,7 +100,7 @@ class Internal_Events extends Singleton {
* Events that are always run, regardless of how many jobs are queued
*/
public function is_internal_event( $action ) {
return in_array( $action, wp_list_pluck( $this->internal_jobs, 'action' ) );
return in_array( $action, wp_list_pluck( $this->internal_jobs, 'action' ), true );
}
/**
......
......@@ -37,7 +37,7 @@ function is_rest_endpoint_request( $type = 'list' ) {
// Build the full endpoint and check against the current request
$run_endpoint = sprintf( '%s/%s/%s', rest_get_url_prefix(), REST_API::API_NAMESPACE, $endpoint );
return in_array( $run_endpoint, parse_request() );
return in_array( $run_endpoint, parse_request(), true );
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment