: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if( !defined('ABSPATH') ){ exit();}
<form method="post" name="xyz_smap_logs_form">
style="width: 99%; border: 1px solid #F7F7F7; padding: 10px 0px;">
<div style="text-align: left;padding-left: 7px;"><h3> <?php _e('Auto Publish Logs','twitter-auto-publish'); ?></h3></div>
<span><?php _e('Last ten logs','twitter-auto-publish'); ?></span>
<table class="widefat" style="width: 99%; margin: 0 auto; border-bottom:none;">
<tr class="xyz_smap_log_tr">
<th scope="col" width="1%"> </th>
<th scope="col" width="12%"> <?php _e('Post Id','twitter-auto-publish'); ?></th>
<th scope="col" width="12%"> <?php _e('Post Title','twitter-auto-publish'); ?></th>
<th scope="col" width="18%"> <?php _e('Published On','twitter-auto-publish'); ?></th>
<th scope="col" width="15%"> <?php _e('Status','twitter-auto-publish'); ?></th>
$post_tw_logsmain = get_option('xyz_twap_post_logs' );
$post_tw_logsmain_array = array();
if($post_tw_logsmain=='')
<tr><td colspan="4" style="padding: 5px;"> <?php _e('No logs Found','twitter-auto-publish'); ?></td></tr>
foreach ($post_tw_logsmain as $logkey => $logval)
$post_tw_logsmain_array[]=$logval;
if(!empty($post_tw_logsmain_array))//count($post_tw_logsmain_array)>0
if($post_tw_logsmain_array[$i]!='')
$post_tw_logs=$post_tw_logsmain_array[$i];
$postid=$post_tw_logs['postid'];
$publishtime=$post_tw_logs['publishtime'];
$publishtime=xyz_twap_local_date_time('Y/m/d g:i:s A',$publishtime);
$status=$post_tw_logs['status'];
<td style="vertical-align: middle !important;">
<?php echo esc_html($postid); ?>
<td style="vertical-align: middle !important;">
<?php echo get_the_title($postid); ?>
<td style="vertical-align: middle !important;">
<?php echo esc_html($publishtime);?>
<td class='xyz_twap_td_custom' style="vertical-align: middle !important;">
echo "<span style=\"color:green\">Success</span>";
$arrval=unserialize($status);
//foreach ($arrval as $a=>$b)