Use wp_hash to create cron's check hash.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2e45c1e08
commit
02cfbbe93b
|
@ -3,7 +3,7 @@ ignore_user_abort(true);
|
|||
define('DOING_CRON', TRUE);
|
||||
require_once('wp-config.php');
|
||||
|
||||
if ( $_GET['check'] != md5(DB_PASS . '187425') )
|
||||
if ( $_GET['check'] != wp_hash('187425') )
|
||||
exit;
|
||||
|
||||
if ( get_option('doing_cron') > time() )
|
||||
|
|
|
@ -97,7 +97,7 @@ function spawn_cron() {
|
|||
|
||||
if ( $argyle )
|
||||
fputs( $argyle,
|
||||
"GET {$parts['path']}?check=" . md5(DB_PASS . '187425') . " HTTP/1.0\r\n"
|
||||
"GET {$parts['path']}?check=" . wp_hash('187425') . " HTTP/1.0\r\n"
|
||||
. "Host: {$_SERVER['HTTP_HOST']}\r\n\r\n"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue