WordPress.org

Make WordPress Core

Ticket #43005: 43005.1.patch

File 43005.1.patch, 419 bytes (added by manikmist09, 21 months ago)

As the error was occurring because of var message was null and its property was checking. So, I checked if is message null before checking its property.

  • wp-admin/js/updates.js

    diff --git a/wp-admin/js/updates.js b/wp-admin/js/updates.js
    index ac360da..83995e6 100644
    a b  
    24232423                                return;
    24242424                        }
    24252425
    2426                         if ( 'undefined' === typeof message.action ) {
    2427                                 return;
    2428                         }
     2426            if ( null === message  || 'undefined' === typeof message.action ) {
     2427                return;
     2428            }
    24292429
    24302430                        switch ( message.action ) {
    24312431