: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
@var w where s should indent
jQuery.wc_strPad = function(i,l,s,w) {
jQuery('#copy-system-status' ).click( function(){
var paragraphContainer = jQuery( this ).parent();
jQuery('.nf-status-table thead, .nf-status-table tbody').each(function(){
if ( jQuery( this ).is('thead') ) {
report = report + "\n### " + jQuery( this ).text().trim() + " ###\n\n";
jQuery('tr', jQuery( this )).each(function(){
var the_name = jQuery.wc_strPad( jQuery( this ).find('td:eq(0)').text().trim(), 25, ' ' );
var the_value = jQuery( this ).find('td:eq(1)').text().trim();
var value_array = the_value.split( ', ' );
if ( value_array.length > 1 ){
// if value have a list of plugins ','
jQuery.each( value_array, function(key, line){
var tab = ( key == 0 )?0:25;
temp_line = temp_line + jQuery.wc_strPad( '', tab, ' ', 'f' ) + line +'\n';
report = report +''+ the_name + the_value + "\n";
var tmp = jQuery("<textarea>");
jQuery("body").append(tmp);
tmp.val( report ).select();
document.execCommand("copy");
var myModal = new jBox( 'Modal', {
content: '<i class="fa fa-clipboard" aria-hidden="true"></i> Copied!',
setTimeout(function(){ myModal.close() }, 700);