diff --git a/plugins/woocommerce/src/Internal/Admin/Logging/PageController.php b/plugins/woocommerce/src/Internal/Admin/Logging/PageController.php index abeb6e66e25..89b5e132d14 100644 --- a/plugins/woocommerce/src/Internal/Admin/Logging/PageController.php +++ b/plugins/woocommerce/src/Internal/Admin/Logging/PageController.php @@ -506,7 +506,8 @@ class PageController { } $classes = implode( ' ', $classes ); - $line = sprintf( + + return sprintf( '%3$s%4$s', absint( $line_number ), esc_attr( $classes ), @@ -519,7 +520,5 @@ class PageController { wp_kses_post( $text ) ) ); - - return $line; } }