: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if( !defined('ABSPATH') ){ exit();}
$xyz_twap_message = $_GET['msg'];
if($xyz_twap_message == 1){
<div class="system_notice_area_style1" id="system_notice_area">
<?php _e('Thank you for the suggestion.','twitter-auto-publish'); ?> <span
id="system_notice_area_dismiss"> <?php _e('Dismiss','twitter-auto-publish'); ?> </span>
else if($xyz_twap_message == 2){
<div class="system_notice_area_style0" id="system_notice_area">
<?php $twap_wp_mail="wp_mail"; $twap_wp_mail_msg=sprintf(__('%s not able to process the request.','twitter-auto-publish'),$twap_wp_mail); echo $twap_wp_mail_msg; ?> <span
id="system_notice_area_dismiss"><?php _e('Dismiss','twitter-auto-publish'); ?> </span>
else if($xyz_twap_message == 3){
<div class="system_notice_area_style0" id="system_notice_area">
<?php _e('Please suggest a feature','twitter-auto-publish'); ?> <span
id="system_notice_area_dismiss"> <?php _e('Dismiss','twitter-auto-publish'); ?></span>
if (isset($_POST) && isset($_POST['xyz_send_mail']))
if (! isset( $_REQUEST['_wpnonce'] )|| ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'xyz_twap_suggest_feature_form_nonce' ))
wp_nonce_ays( 'xyz_twap_suggest_feature_form_nonce' );
if (isset($_POST['xyz_twap_suggested_feature']) && $_POST['xyz_twap_suggested_feature']!='')
$xyz_twap_feature_content=$_POST['xyz_twap_suggested_feature'];
$xyz_twap_sender_email = get_option('admin_email');
$entries0 = $wpdb->get_results( $wpdb->prepare( 'SELECT display_name FROM '.$wpdb->base_prefix.'users WHERE user_email=%s',array($xyz_twap_sender_email)));
foreach( $entries0 as $entry ) {
$xyz_twap_admin_username=$entry->display_name;
$xyz_twap_recv_email='support@xyzscripts.com';
$xyz_twap_mail_subject="WP TWITTER AUTO PUBLISH - FEATURE SUGGESTION";
$xyz_twap_headers = array('From: '.$xyz_twap_admin_username.' <'. $xyz_twap_sender_email .'>' ,'Content-Type: text/html; charset=UTF-8');
$wp_mail_processed=wp_mail( $xyz_twap_recv_email, $xyz_twap_mail_subject, $xyz_twap_feature_content, $xyz_twap_headers );
if ($wp_mail_processed==true){
header("Location:".admin_url('admin.php?page=twitter-auto-publish-suggest-features&msg=1'));exit();}
header("Location:".admin_url('admin.php?page=twitter-auto-publish-suggest-features&msg=2'));exit();}
header("Location:".admin_url('admin.php?page=twitter-auto-publish-suggest-features&msg=3'));exit();}
<?php wp_nonce_field( 'xyz_twap_suggest_feature_form_nonce' );?>
<h3><?php _e('Contribute And Get Rewarded','twitter-auto-publish'); ?></h3>
<span style="color: #1A87B9;font-size:13px;padding-left: 10px;" >*<?php _e('Suggest a feature for this plugin and stand a chance to get a free copy of premium version of this plugin.','twitter-auto-publish'); ?> </span>
<table class="widefat xyz_twap_widefat_table" style="width:98%;padding-top: 10px;">
<textarea name="xyz_twap_suggested_feature" id="xyz_twap_suggested_feature" style="width:620px;height:250px !important;"></textarea>
<td><input name="xyz_send_mail" class="submit_twap_new" style="color:#FFFFFF;border-radius:4px; margin-bottom:10px;" type="submit" value="<?php _e('Send Mail To Us','twitter-auto-publish'); ?>" >