mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
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 git-svn-id: https://develop.svn.wordpress.org/branches/4.6@38188 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
399a91f582
commit
1cebcccec1
@ -249,7 +249,7 @@
|
||||
wp.updates.queueChecker();
|
||||
}
|
||||
|
||||
if ( 'undefined' !== typeof response.debug ) {
|
||||
if ( 'undefined' !== typeof response.debug && window.console && window.console.log ) {
|
||||
_.map( response.debug, function( message ) {
|
||||
window.console.log( $( '<p />' ).html( message ).text() );
|
||||
} );
|
||||
@ -1349,7 +1349,6 @@
|
||||
break;
|
||||
|
||||
default:
|
||||
window.console.error( 'Failed to execute queued update job.', job );
|
||||
break;
|
||||
}
|
||||
};
|
||||
@ -1938,7 +1937,6 @@
|
||||
break;
|
||||
|
||||
default:
|
||||
window.console.error( 'The page "%s" is not white-listed for bulk action handling.', pagenow );
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1970,7 +1968,6 @@
|
||||
break;
|
||||
|
||||
default:
|
||||
window.console.error( 'Failed to identify bulk action: %s', bulkAction );
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user