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