| Server IP : 104.21.21.239 / Your IP : 216.73.217.134 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/etddev/wordpress/wp-content/plugins/wp-external-links/ |
Upload File : |
<?php
/**
* Plugin Name: WP External Links
* Version: 2.46
* Plugin URI: https://wordpress.org/plugins/wp-external-links/
* Description: Open external links in a new tab or window, control "nofollow" and "noopener", set font icon; SEO friendly.
* Author: WebFactory Ltd
* Author URI: https://www.webfactoryltd.com/
* License: Dual licensed under the MIT and GPLv2+ licenses
* Text Domain: wp-external-links
*/
if ( ! function_exists( 'wpel_init' ) ):
function wpel_init()
{
// only load in WP environment
if ( ! defined( 'ABSPATH' ) ) {
die();
}
$plugin_file = defined( 'TEST_WPEL_PLUGIN_FILE' ) ? TEST_WPEL_PLUGIN_FILE : __FILE__;
$plugin_dir = dirname( __FILE__ );
// check requirements
$wp_version = get_bloginfo( 'version' );
$php_version = phpversion();
if ( version_compare( $wp_version, '4.2', '<' ) || version_compare( $php_version, '5.3', '<' ) ) {
if ( ! function_exists( 'wpel_requirements_notice' ) ) {
function wpel_requirements_notice()
{
include dirname( __FILE__ ) .'/templates/requirements-notice.php';
}
add_action( 'admin_notices', 'wpel_requirements_notice' );
}
return;
}
/**
* Autoloader
*/
if ( ! class_exists( 'WPRun_Autoloader_1x0x0' ) ) {
require_once $plugin_dir . '/libs/wprun/class-wprun-autoloader.php';
}
$autoloader = new WPRun_Autoloader_1x0x0();
$autoloader->add_path( $plugin_dir . '/libs/', true );
$autoloader->add_path( $plugin_dir . '/includes/', true );
/**
* Load debugger
*/
if ( true === constant( 'WP_DEBUG' ) ) {
FWP_Debug_1x0x0::create( array(
'log_hooks' => false,
) );
}
/**
* Register Hooks
*/
global $wpdb;
WPEL_Activation::create( $plugin_file, $wpdb );
WPEL_Uninstall::create( $plugin_file, $wpdb );
/**
* Set plugin vars
*/
WPEL_Plugin::create( $plugin_file, $plugin_dir );
}
wpel_init();
endif;