Fix undefined index PHP warning

![](https://i.gravityview.co/gtGvNE+)
This commit is contained in:
Zack Katz 2020-06-01 14:32:19 -06:00 committed by GitHub
parent 41ff8ec073
commit 7a7f33f2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ class WC_Site_Tracking {
*/
public static function add_enable_tracking_function() {
global $wp_scripts;
if( ! isset( $wp_scripts->registered['woo-tracks'] ) ) {
return;
}
$woo_tracks_script = $wp_scripts->registered['woo-tracks']->src;
?>