Make WordPress Core


Ignore:
Timestamp:
01/09/2019 11:25:19 AM (5 years ago)
Author:
swissspidy
Message:

Upgrade/Install: Prevent possible JavaScript error when updating translations.

Props Presskopp.
Fixes #39189.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader-skin.php

    r42761 r44513  
    192192            echo '<script type="text/javascript">
    193193                    (function( wp ) {
    194                         if ( wp && wp.updates.decrementCount ) {
     194                        if ( wp && wp.updates && wp.updates.decrementCount )
    195195                            wp.updates.decrementCount( "' . $type . '" );
    196196                        }
Note: See TracChangeset for help on using the changeset viewer.