From 638b241f1105912e322228916e5121e0575ac4c4 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Wed, 22 Nov 2023 17:29:34 -0600 Subject: [PATCH] Use wp_rand --- src/mt-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mt-settings.php b/src/mt-settings.php index 3d6ab476..0fe6c4ac 100644 --- a/src/mt-settings.php +++ b/src/mt-settings.php @@ -374,7 +374,7 @@ function mt_array_code( $k ) { */ function mt_wp_enqueue_scripts() { global $current_screen; - $version = ( true === SCRIPT_DEBUG ) ? mt_rand( 10000, 100000 ) : mt_get_current_version(); + $version = ( true === SCRIPT_DEBUG ) ? wp_rand( 10000, 100000 ) : mt_get_current_version(); $options = array_merge( mt_default_settings(), get_option( 'mt_settings', array() ) ); if ( isset( $_GET['page'] ) && 'my-tickets' === $_GET['page'] ) { wp_enqueue_script( 'mt.tabs', plugins_url( 'js/tabs.js', __FILE__ ), array( 'jquery' ), $version ); @@ -607,7 +607,7 @@ function mt_ajax_move_ticket() { * Enqueue footer scripts in report view. */ function mt_report_scripts() { - $version = ( true === SCRIPT_DEBUG ) ? mt_rand( 10000, 100000 ) : mt_get_current_version(); + $version = ( true === SCRIPT_DEBUG ) ? wp_rand( 10000, 100000 ) : mt_get_current_version(); if ( isset( $_GET['mt-event-report'] ) && isset( $_GET['mt_print'] ) ) { wp_enqueue_script( 'mt.printable', plugins_url( 'js/report.js', __FILE__ ), array( 'jquery' ), $version ); wp_localize_script(