PluginProbe ʕ •ᴥ•ʔ
External Links – nofollow, noopener & new window / 2.66
External Links – nofollow, noopener & new window v2.66
2.66 0.31 0.32 0.33 0.34 0.35 1.01 1.02 1.03 1.10 1.20 1.21 1.30 1.31 1.40 1.41 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.60 1.61 1.62 1.70 1.80 1.81 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 2.3 2.32 2.35 2.40 2.42 2.43 2.45 2.46 2.47 2.48 2.50 2.51 2.55 2.56 2.57 2.58 2.59 2.60 2.61 2.62 2.63 2.64 2.65 trunk 0.10 0.11 0.12 0.20 0.21 0.30
wp-external-links / wp-external-links.php
wp-external-links Last commit date
data 6 years ago includes 2 months ago libs 1 year ago public 2 days ago templates 2 days ago wf-flyout 3 years ago index.php 6 years ago license.txt 2 years ago readme.txt 2 days ago wp-external-links.php 2 days ago
wp-external-links.php
105 lines
1 <?php
2 /**
3 * Plugin Name: WP External Links
4 * Version: 2.66
5 * Plugin URI: https://getwplinks.com/
6 * Description: Open external links in a new tab or window, control "nofollow" and "noopener", set font icon; SEO friendly.
7 * Author: WebFactory Ltd
8 * Author URI: https://www.webfactoryltd.com/
9 * License: GPLv2 or later
10 * Text Domain: wp-external-links
11
12 * Copyright 2019 - 2026 WebFactory Ltd (email: support@webfactoryltd.com)
13 * Copyright 2011 - 2019 @freelancephp
14
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License, version 2, as
17 * published by the Free Software Foundation.
18
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 */
28
29 require_once 'wf-flyout/wf-flyout.php';
30 new wf_flyout(__FILE__);
31
32 if (!function_exists('wpel_init')) :
33
34 function wpel_init()
35 {
36 // only load in WP environment
37 if (!defined('ABSPATH')) {
38 die();
39 }
40
41 define('TEST_WPEL_PLUGIN_FILE', __FILE__);
42 define('WPEL_PLUGIN_DIR', plugin_dir_path(__FILE__));
43 define('WPEL_PLUGIN_URL', plugin_dir_url(__FILE__));
44
45 $plugin_file = defined('TEST_WPEL_PLUGIN_FILE') ? TEST_WPEL_PLUGIN_FILE : __FILE__;
46 $plugin_dir = dirname(__FILE__);
47
48 // check requirements
49 $wp_version = get_bloginfo('version');
50 $php_version = phpversion();
51
52 if (version_compare($wp_version, '4.2', '<') || version_compare($php_version, '5.3', '<')) {
53 if (!function_exists('wpel_requirements_notice')) {
54 function wpel_requirements_notice()
55 {
56 include dirname(__FILE__) . '/templates/requirements-notice.php';
57 }
58
59 add_action('admin_notices', 'wpel_requirements_notice');
60 }
61
62 return;
63 }
64
65 /**
66 * Autoloader
67 */
68 if (!class_exists('WPRun_Autoloader_1x0x0')) {
69 require_once $plugin_dir . '/libs/wprun/class-wprun-autoloader.php';
70 }
71
72 $autoloader = new WPRun_Autoloader_1x0x0();
73 $autoloader->add_path($plugin_dir . '/libs/', true);
74 $autoloader->add_path($plugin_dir . '/includes/', true);
75
76
77 /**
78 * Load debugger
79 */
80 if (true === constant('WP_DEBUG')) {
81 FWP_Debug_1x0x0::create(array(
82 'log_hooks' => false,
83 ));
84 }
85
86 /**
87 * Register Hooks
88 */
89 global $wpdb;
90 WPEL_Activation::create($plugin_file, $wpdb);
91 WPEL_Deactivate::create($plugin_file, $wpdb);
92 WPEL_Uninstall::create($plugin_file, $wpdb);
93
94 /**
95 * Set plugin vars
96 */
97 WPEL_Plugin::create($plugin_file, $plugin_dir);
98 }
99
100 add_action('init', function() {
101 wpel_init();
102 }, 1, 0);
103
104 endif;
105