Make WordPress Core

Changeset 38186 for trunk


Ignore:
Timestamp:
08/03/2016 10:27:51 PM (8 years ago)
Author:
jorbin
Message:

Updates: Clean up debug statements.

Removing some console.error calls leftover from development and wrapping the console.log call in a check to ensure console.log exists.

Fixes #37514.
Props ocean90, obenland

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r38185 r38186  
    250250        }
    251251
    252         if ( 'undefined' !== typeof response.debug ) {
     252        if ( 'undefined' !== typeof response.debug && window.console && window.console.log ) {
    253253            _.map( response.debug, function( message ) {
    254254                window.console.log( $( '<p />' ).html( message ).text() );
     
    13501350
    13511351            default:
    1352                 window.console.error( 'Failed to execute queued update job.', job );
    13531352                break;
    13541353        }
     
    19391938
    19401939                default:
    1941                     window.console.error( 'The page "%s" is not white-listed for bulk action handling.', pagenow );
    19421940                    return;
    19431941            }
     
    19711969
    19721970                default:
    1973                     window.console.error( 'Failed to identify bulk action: %s', bulkAction );
    19741971                    return;
    19751972            }
Note: See TracChangeset for help on using the changeset viewer.