packages/connection/src/class-client.php 1 location
|
@@ 89-93 (lines=5) @@
|
| 86 |
|
|
| 87 |
|
$timestamp = time() + $time_diff; |
| 88 |
|
|
| 89 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 90 |
|
$nonce = wp_generate_password( 10, false ); |
| 91 |
|
} else { |
| 92 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
// Kind of annoying. Maybe refactor Jetpack_Signature to handle body-hashing. |
| 96 |
|
if ( is_null( $body ) ) { |
packages/connection/src/class-manager.php 1 location
|
@@ 2669-2673 (lines=5) @@
|
| 2666 |
|
|
| 2667 |
|
$timestamp = time(); |
| 2668 |
|
|
| 2669 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 2670 |
|
$nonce = wp_generate_password( 10, false ); |
| 2671 |
|
} else { |
| 2672 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 2673 |
|
} |
| 2674 |
|
|
| 2675 |
|
$normalized_request_string = join( |
| 2676 |
|
"\n", |