mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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);
|
define('DOING_CRON', TRUE);
|
||||||
require_once('wp-config.php');
|
require_once('wp-config.php');
|
||||||
|
|
||||||
if ( $_GET['check'] != md5(DB_PASS . '187425') )
|
if ( $_GET['check'] != wp_hash('187425') )
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
if ( get_option('doing_cron') > time() )
|
if ( get_option('doing_cron') > time() )
|
||||||
|
@ -97,7 +97,7 @@ function spawn_cron() {
|
|||||||
|
|
||||||
if ( $argyle )
|
if ( $argyle )
|
||||||
fputs( $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"
|
. "Host: {$_SERVER['HTTP_HOST']}\r\n\r\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user