mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@38186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user