Skip to content

Commit 59e2aef

Browse files
Refactor is_woocommerce_request function condition
1 parent 6b3357d commit 59e2aef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/Visualizer/Source/Json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ public function refresh( $series ) {
507507
* @return bool True if it's a WooCommerce request, false otherwise.
508508
*/
509509
private function is_woocommerce_request( $url ) {
510-
if ( empty( $url ) || ! is_string( $url ) ) {
510+
if ( empty( $url ) ) {
511511
return false;
512512
}
513513

0 commit comments

Comments
 (0)