mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
Add core_version_check_locale filter. Props nbachiyski. see #8729 for 2.7
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df231af292
commit
dcc5b55d46
@ -30,7 +30,7 @@ function wp_version_check() {
|
|||||||
if ( ! is_object($current) )
|
if ( ! is_object($current) )
|
||||||
$current = new stdClass;
|
$current = new stdClass;
|
||||||
|
|
||||||
$locale = get_locale();
|
$locale = apply_filters( 'core_version_check_locale', get_locale() );
|
||||||
if (
|
if (
|
||||||
isset( $current->last_checked ) &&
|
isset( $current->last_checked ) &&
|
||||||
43200 > ( time() - $current->last_checked ) &&
|
43200 > ( time() - $current->last_checked ) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user