Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit dcfb851

Browse files
committed
Fix for race condition.
1 parent 7a9f1de commit dcfb851

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redux-core/inc/classes/class-redux-args.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ private function args( $args ) {
199199

200200
$args = $this->filters( $args );
201201

202+
if ( ! function_exists( 'wp_rand' ) ) {
203+
require_once ABSPATH . '/wp-includes/pluggable.php';
204+
}
205+
202206
$this->parent->core_instance = chr( 64 + wp_rand( 1, 26 ) ) . time() . '_' . wp_rand( 0, 1000000 );
203207
$this->parent->core_thread = chr( 64 + wp_rand( 1, 26 ) ) . time() . '_' . wp_rand( 0, 1000000 );
204208

0 commit comments

Comments
 (0)