Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/twitter-...
File: twitter-auto-publish.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
Plugin Name: WP Twitter Auto Publish
[2] Fix | Delete
Plugin URI: https://xyzscripts.com/wordpress-plugins/twitter-auto-publish/
[3] Fix | Delete
Description: Publish posts automatically from your blog to Twitter social media. You can publish your posts to Twitter as simple text message or as text message with image. The plugin supports filtering posts by post-types and categories.
[4] Fix | Delete
Version: 1.6.1
[5] Fix | Delete
Requires PHP: 7.4
[6] Fix | Delete
Author: xyzscripts.com
[7] Fix | Delete
Author URI: https://xyzscripts.com/
[8] Fix | Delete
License: GPLv2 or later
[9] Fix | Delete
Text Domain: twitter-auto-publish
[10] Fix | Delete
Domain Path: /languages/
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
/*
[14] Fix | Delete
This program is free software; you can redistribute it and/or
[15] Fix | Delete
modify it under the terms of the GNU General Public License
[16] Fix | Delete
as published by the Free Software Foundation; either version 2
[17] Fix | Delete
of the License, or (at your option) any later version.
[18] Fix | Delete
[19] Fix | Delete
This program is distributed in the hope that it will be useful,
[20] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[21] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[22] Fix | Delete
GNU General Public License for more details.
[23] Fix | Delete
[24] Fix | Delete
You should have received a copy of the GNU General Public License
[25] Fix | Delete
along with this program; if not, write to the Free Software
[26] Fix | Delete
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
[27] Fix | Delete
*/
[28] Fix | Delete
if( !defined('ABSPATH') ){ exit();}
[29] Fix | Delete
if ( !function_exists( 'add_action' ) ) {
[30] Fix | Delete
_e('Hi there! I'.'m just a plugin, not much I can do when called directly.','twitter-auto-publish');
[31] Fix | Delete
exit;
[32] Fix | Delete
}
[33] Fix | Delete
function plugin_load_twaptextdomain() {
[34] Fix | Delete
load_plugin_textdomain( 'twitter-auto-publish', false, basename( dirname( __FILE__ ) ) . '/languages/' );
[35] Fix | Delete
}
[36] Fix | Delete
add_action( 'init', 'plugin_load_twaptextdomain' );
[37] Fix | Delete
//ob_start();
[38] Fix | Delete
//error_reporting(E_ALL);
[39] Fix | Delete
define('XYZ_TWAP_PLUGIN_FILE',__FILE__);
[40] Fix | Delete
global $wpdb;
[41] Fix | Delete
//$wpdb->query('SET SQL_MODE=""');
[42] Fix | Delete
include_once(ABSPATH.'wp-includes/version.php');
[43] Fix | Delete
global $wp_version;
[44] Fix | Delete
define('XYZ_TWAP_WP_VERSION',$wp_version);
[45] Fix | Delete
if (!defined('XYZ_TWAP_SMAPSOLUTION_AUTH_URL'))
[46] Fix | Delete
define('XYZ_TWAP_SMAPSOLUTION_AUTH_URL','https://authorize.smapsolutions.com/');
[47] Fix | Delete
if (!defined('XYZ_TWAP_SMAPSOLUTION_PUBLISH_URL'))
[48] Fix | Delete
define('XYZ_TWAP_SMAPSOLUTION_PUBLISH_URL','https://tw-publish.smapsolutions.com/');
[49] Fix | Delete
[50] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/install.php' );
[51] Fix | Delete
require_once( dirname( __FILE__ ) . '/xyz-functions.php' );
[52] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/menu.php' );
[53] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/destruction.php' );
[54] Fix | Delete
[55] Fix | Delete
require_once( dirname( __FILE__ ) . '/vendor/autoload.php');
[56] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/ajax-backlink.php' );
[57] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/metabox.php' );
[58] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/publish.php' );
[59] Fix | Delete
require_once( dirname( __FILE__ ) . '/admin/admin-notices.php' );
[60] Fix | Delete
if((isset($_GET['page']) && ($_GET['page']=='twitter-auto-publish-suggest-features') ) || (isset($_GET['page']) && ($_GET['page']=='twitter-auto-publish-settings') ))
[61] Fix | Delete
{
[62] Fix | Delete
ob_start();
[63] Fix | Delete
}
[64] Fix | Delete
if(get_option('xyz_credit_link')=="twap"){
[65] Fix | Delete
[66] Fix | Delete
add_action('wp_footer', 'xyz_twap_credit');
[67] Fix | Delete
[68] Fix | Delete
}
[69] Fix | Delete
function xyz_twap_credit() {
[70] Fix | Delete
$content = '<div style="clear:both;width:100%;text-align:center; font-size:11px; "><a target="_blank" title="WP Twitter Auto Publish" href="https://xyzscripts.com/wordpress-plugins/twitter-auto-publish/compare" >WP Twitter Auto Publish</a> Powered By : <a target="_blank" title="PHP Scripts & Programs" href="http://www.xyzscripts.com" >XYZScripts.com</a></div>';
[71] Fix | Delete
echo $content;
[72] Fix | Delete
}
[73] Fix | Delete
if(!function_exists('get_post_thumbnail_id'))
[74] Fix | Delete
add_theme_support( 'post-thumbnails' );
[75] Fix | Delete
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'xyz_twap_add_action_links' );
[76] Fix | Delete
function xyz_twap_add_action_links( $links ) {
[77] Fix | Delete
$xyz_twap_links = array(
[78] Fix | Delete
'<a href="' . admin_url( 'admin.php?page=twitter-auto-publish-settings' ) . '">Settings</a>',
[79] Fix | Delete
);
[80] Fix | Delete
return array_merge( $links, $xyz_twap_links);
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function