WordPress.org

Make WordPress Core

Changeset 38188


Ignore:
Timestamp:
08/03/2016 10:33:37 PM (3 years ago)
Author:
jorbin
Message:

Updates: Clean up debug statements.

Merge of [38186] to the 4.6 branch

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

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-admin/js/updates.js

    r38187 r38188  
    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.