Server IP : 52.91.253.208 / Your IP : 18.226.177.125 [ Web Server : Apache System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64 User : daemon ( 1) PHP Version : 7.3.18 Disable Function : NONE Domains : 3 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apps/wordpress/htdocs/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;