WordPress.org

Make WordPress Core

Changeset 44513


Ignore:
Timestamp:
01/09/2019 11:25:19 AM (7 months 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.