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:
parent
7eccc12e97
commit
b4cc5d511b
|
@ -249,7 +249,7 @@
|
||||||
wp.updates.queueChecker();
|
wp.updates.queueChecker();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'undefined' !== typeof response.debug ) {
|
if ( 'undefined' !== typeof response.debug && window.console && window.console.log ) {
|
||||||
_.map( response.debug, function( message ) {
|
_.map( response.debug, function( message ) {
|
||||||
window.console.log( $( '<p />' ).html( message ).text() );
|
window.console.log( $( '<p />' ).html( message ).text() );
|
||||||
} );
|
} );
|
||||||
|
@ -1349,7 +1349,6 @@
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.console.error( 'Failed to execute queued update job.', job );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1938,7 +1937,6 @@
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.console.error( 'The page "%s" is not white-listed for bulk action handling.', pagenow );
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1970,7 +1968,6 @@
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.console.error( 'Failed to identify bulk action: %s', bulkAction );
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue