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


Built from https://develop.svn.wordpress.org/branches/4.6@38188


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2016-08-03 22:34:29 +00:00
parent 7eccc12e97
commit b4cc5d511b
3 changed files with 3 additions and 7 deletions

View File

@ -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;
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-RC1-38187';
$wp_version = '4.6-RC1-38188';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.