projects/packages/connection/src/class-client.php 1 location
|
@@ 108-112 (lines=5) @@
|
| 105 |
|
|
| 106 |
|
$timestamp = time() + $time_diff; |
| 107 |
|
|
| 108 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 109 |
|
$nonce = wp_generate_password( 10, false ); |
| 110 |
|
} else { |
| 111 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
// Kind of annoying. Maybe refactor Jetpack_Signature to handle body-hashing. |
| 115 |
|
if ( is_null( $body ) ) { |
projects/packages/connection/src/class-tokens.php 1 location
|
@@ 546-550 (lines=5) @@
|
| 543 |
|
|
| 544 |
|
$timestamp = time(); |
| 545 |
|
|
| 546 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 547 |
|
$nonce = wp_generate_password( 10, false ); |
| 548 |
|
} else { |
| 549 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 550 |
|
} |
| 551 |
|
|
| 552 |
|
$normalized_request_string = join( |
| 553 |
|
"\n", |