projects/packages/connection/src/class-client.php 1 location
|
@@ 109-113 (lines=5) @@
|
106 |
|
|
107 |
|
$timestamp = time() + $time_diff; |
108 |
|
|
109 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
110 |
|
$nonce = wp_generate_password( 10, false ); |
111 |
|
} else { |
112 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
113 |
|
} |
114 |
|
|
115 |
|
// Kind of annoying. Maybe refactor Jetpack_Signature to handle body-hashing. |
116 |
|
if ( is_null( $body ) ) { |
projects/packages/connection/src/class-manager.php 1 location
|
@@ 2761-2765 (lines=5) @@
|
2758 |
|
|
2759 |
|
$timestamp = time(); |
2760 |
|
|
2761 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
2762 |
|
$nonce = wp_generate_password( 10, false ); |
2763 |
|
} else { |
2764 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
2765 |
|
} |
2766 |
|
|
2767 |
|
$normalized_request_string = join( |
2768 |
|
"\n", |