Ticket #37514: 37514.diff
File 37514.diff, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-admin/js/updates.js
249 249 wp.updates.queueChecker(); 250 250 } 251 251 252 if ( 'undefined' !== typeof response.debug ) {252 if ( 'undefined' !== typeof response.debug && 'function' === typeof window.console.log ) { 253 253 _.map( response.debug, function( message ) { 254 254 window.console.log( $( '<p />' ).html( message ).text() ); 255 255 } ); … … 1341 1341 break; 1342 1342 1343 1343 default: 1344 window.console.error ( 'Failed to execute queued update job.', job );1344 window.console.error && window.console.error( 'Failed to execute queued update job.', job ); 1345 1345 break; 1346 1346 } 1347 1347 }; … … 1930 1930 break; 1931 1931 1932 1932 default: 1933 window.console.error ( 'The page "%s" is not white-listed for bulk action handling.', pagenow );1933 window.console.error && window.console.error( 'The page "%s" is not white-listed for bulk action handling.', pagenow ); 1934 1934 return; 1935 1935 } 1936 1936 … … 1961 1961 action = bulkAction.replace( 'selected', type ); 1962 1962 break; 1963 1963 1964 case 'activate-selected': 1965 case 'deactivate-selected': 1966 case 'enable-selected': 1967 case 'disable-selected': 1968 // Known unsupported bulk actions. 1969 return; 1970 1964 1971 default: 1965 window.console.error ( 'Failed to identify bulk action: %s', bulkAction );1972 window.console.error && window.console.error( 'Failed to identify bulk action: %s', bulkAction ); 1966 1973 return; 1967 1974 } 1968 1975