packages/connection/src/class-manager.php 1 location
|
@@ 2648-2652 (lines=5) @@
|
| 2645 |
|
|
| 2646 |
|
$timestamp = time(); |
| 2647 |
|
|
| 2648 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 2649 |
|
$nonce = wp_generate_password( 10, false ); |
| 2650 |
|
} else { |
| 2651 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 2652 |
|
} |
| 2653 |
|
|
| 2654 |
|
$normalized_request_string = join( |
| 2655 |
|
"\n", |
packages/connection/src/class-client.php 1 location
|
@@ 84-88 (lines=5) @@
|
| 81 |
|
|
| 82 |
|
$timestamp = time() + $time_diff; |
| 83 |
|
|
| 84 |
|
if ( function_exists( 'wp_generate_password' ) ) { |
| 85 |
|
$nonce = wp_generate_password( 10, false ); |
| 86 |
|
} else { |
| 87 |
|
$nonce = substr( sha1( wp_rand( 0, 1000000 ) ), 0, 10 ); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
// Kind of annoying. Maybe refactor Jetpack_Signature to handle body-hashing. |
| 91 |
|
if ( is_null( $body ) ) { |