Upgrade/Install: Prevent possible JavaScript error when updating translations.
Props Presskopp. Fixes #39189. Built from https://develop.svn.wordpress.org/trunk@44513 git-svn-id: http://core.svn.wordpress.org/trunk@44344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f57b25f447
commit
d32d061a5e
|
@ -191,7 +191,7 @@ class WP_Upgrader_Skin {
|
|||
} else {
|
||||
echo '<script type="text/javascript">
|
||||
(function( wp ) {
|
||||
if ( wp && wp.updates.decrementCount ) {
|
||||
if ( wp && wp.updates && wp.updates.decrementCount )
|
||||
wp.updates.decrementCount( "' . $type . '" );
|
||||
}
|
||||
})( window.wp );
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-alpha-44512';
|
||||
$wp_version = '5.1-alpha-44513';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue