Version Description
- Enhancement: Code quality enhancements to bring it in line with WordPress.com VIP coding standards
Download this release
Release Info
Developer | dartiss |
Plugin | No Self Pings |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.1.1
- no-self-pings.php +7 -7
- readme.txt +14 -9
- uninstall.php +0 -1
no-self-pings.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: No Self Pings
|
4 |
-
Plugin URI: https://github.com/dartiss/no-self-
|
5 |
Description: Keeps WordPress from sending pings to your own site.
|
6 |
-
Version: 1.1
|
7 |
Author: Michael D. Adams
|
8 |
Author URI: http://blogwaffe.com/
|
9 |
Text Domain: no-self-ping
|
@@ -34,7 +34,7 @@ function no_self_ping_plugin_meta( $links, $file ) {
|
|
34 |
|
35 |
if ( false !== strpos( $file, 'no-self-pings.php' ) ) {
|
36 |
|
37 |
-
$links = array_merge( $links, array( '<a href="https://github.com/dartiss/no-self-
|
38 |
|
39 |
$links = array_merge( $links, array( '<a href="https://wordpress.org/support/plugin/no-self-ping">' . __( 'Support', 'no-self-ping' ) . '</a>' ) );
|
40 |
}
|
@@ -75,10 +75,10 @@ function no_self_ping( &$links ) {
|
|
75 |
unset( $links[ $l ] );
|
76 |
}
|
77 |
|
78 |
-
foreach ( $url_array as $
|
79 |
|
80 |
$url = trim( $url );
|
81 |
-
if ( 0 === strpos( $link, $url ) && $url
|
82 |
unset( $links[ $l ] );
|
83 |
}
|
84 |
}
|
@@ -116,7 +116,7 @@ add_action( 'admin_init', 'no_self_pings_settings_init' );
|
|
116 |
|
117 |
function no_self_pings_section_callback() {
|
118 |
|
119 |
-
|
120 |
|
121 |
}
|
122 |
|
@@ -132,6 +132,6 @@ function no_self_pings_setting_callback() {
|
|
132 |
|
133 |
$urls = sanitize_option( 'ping_sites', get_option( 'no_self_pings_option', '' ) );
|
134 |
|
135 |
-
echo '<textarea name="no_self_pings_option" rows="3" class="large-text code">' . $urls . '</textarea>';
|
136 |
|
137 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: No Self Pings
|
4 |
+
Plugin URI: https://github.com/dartiss/no-self-ping
|
5 |
Description: Keeps WordPress from sending pings to your own site.
|
6 |
+
Version: 1.1.1
|
7 |
Author: Michael D. Adams
|
8 |
Author URI: http://blogwaffe.com/
|
9 |
Text Domain: no-self-ping
|
34 |
|
35 |
if ( false !== strpos( $file, 'no-self-pings.php' ) ) {
|
36 |
|
37 |
+
$links = array_merge( $links, array( '<a href="https://github.com/dartiss/no-self-ping">' . __( 'Github', 'no-self-ping' ) . '</a>' ) );
|
38 |
|
39 |
$links = array_merge( $links, array( '<a href="https://wordpress.org/support/plugin/no-self-ping">' . __( 'Support', 'no-self-ping' ) . '</a>' ) );
|
40 |
}
|
75 |
unset( $links[ $l ] );
|
76 |
}
|
77 |
|
78 |
+
foreach ( $url_array as $url ) {
|
79 |
|
80 |
$url = trim( $url );
|
81 |
+
if ( 0 === strpos( $link, $url ) && $url !== '' ) {
|
82 |
unset( $links[ $l ] );
|
83 |
}
|
84 |
}
|
116 |
|
117 |
function no_self_pings_section_callback() {
|
118 |
|
119 |
+
esc_attr_e( sprintf ( 'By default, No Self Pings will exclude pings for this site (%s) but you can supply additional URLs below. Separate multiple URLs with line breaks.', esc_url ( home_url() ) ), 'no-self-ping' );
|
120 |
|
121 |
}
|
122 |
|
132 |
|
133 |
$urls = sanitize_option( 'ping_sites', get_option( 'no_self_pings_option', '' ) );
|
134 |
|
135 |
+
echo '<textarea name="no_self_pings_option" rows="3" class="large-text code">' . esc_attr( $urls ) . '</textarea>';
|
136 |
|
137 |
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: mdawaffe, dartiss
|
3 |
Tags: pingback, ping, trackback
|
4 |
Requires at least: 4.6
|
5 |
-
Tested up to: 4.9.
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -21,13 +21,14 @@ This plugin disables intra-blog pinging.
|
|
21 |
The technical stuff...
|
22 |
|
23 |
* Designed for both single and multi-site installations
|
24 |
-
* PHP7 compatible
|
|
|
25 |
* Fully internationalized, ready for translations. **If you would like to add a translation to this plugin then please head to the [Translating WordPress](https://translate.wordpress.org/projects/wp-plugins/no-self-ping "Translating WordPress") page**
|
26 |
-
*
|
27 |
|
28 |
Once activated, there's nothing for you to do. However, head to Settings -> Discussion and you'll find a field in which you can, if you wish, specify more domains that won't be pinged. Why? Well, maybe you often refer to other sites that you maintain or, particularly, you run a multi-site and don't want each blog pinging the other - specify a list here and you're sorted.
|
29 |
|
30 |
-
Please visit the [Github page](https://github.com/dartiss/no-self-
|
31 |
|
32 |
== Installation ==
|
33 |
|
@@ -44,10 +45,14 @@ It's now ready to go.
|
|
44 |
|
45 |
== Changelog ==
|
46 |
|
47 |
-
[Learn more about my version numbering methodology](https://artiss.blog/2016/09/wordpress-plugin-versioning/ "WordPress Plugin Versioning")
|
|
|
|
|
|
|
48 |
|
49 |
= 1.1 =
|
50 |
-
* Enhancement: A second update in the same month? It's like all our Christmas' come at once. Well, I've now added an (optional) field to the Discussion settings so that you can specify even more domains that should't be pinged. You're welcome.
|
|
|
51 |
|
52 |
= 1.0 =
|
53 |
* Enhancement: Now using `home_url()` instead of `get_option( 'home' )`, as it's more SSL friendly
|
@@ -61,5 +66,5 @@ It's now ready to go.
|
|
61 |
|
62 |
== Upgrade Notice ==
|
63 |
|
64 |
-
= 1.1 =
|
65 |
-
*
|
2 |
Contributors: mdawaffe, dartiss
|
3 |
Tags: pingback, ping, trackback
|
4 |
Requires at least: 4.6
|
5 |
+
Tested up to: 4.9.4
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
21 |
The technical stuff...
|
22 |
|
23 |
* Designed for both single and multi-site installations
|
24 |
+
* PHP7 compatible
|
25 |
+
* Passes [WordPress.com VIP](https://vip.wordpress.com) coding standards and fully compatible with their platform
|
26 |
* Fully internationalized, ready for translations. **If you would like to add a translation to this plugin then please head to the [Translating WordPress](https://translate.wordpress.org/projects/wp-plugins/no-self-ping "Translating WordPress") page**
|
27 |
+
* Gutenberg ready
|
28 |
|
29 |
Once activated, there's nothing for you to do. However, head to Settings -> Discussion and you'll find a field in which you can, if you wish, specify more domains that won't be pinged. Why? Well, maybe you often refer to other sites that you maintain or, particularly, you run a multi-site and don't want each blog pinging the other - specify a list here and you're sorted.
|
30 |
|
31 |
+
Please visit the [Github page](https://github.com/dartiss/no-self-ping "Github") for the latest code development, planned enhancements and known issues.
|
32 |
|
33 |
== Installation ==
|
34 |
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
[Learn more about my version numbering methodology](https://artiss.blog/2016/09/wordpress-plugin-versioning/ "WordPress Plugin Versioning")
|
49 |
+
|
50 |
+
= 1.1.1 =
|
51 |
+
* Enhancement: Code quality enhancements to bring it in line with WordPress.com VIP coding standards
|
52 |
|
53 |
= 1.1 =
|
54 |
+
* Enhancement: A second update in the same month? It's like all our Christmas' come at once. Well, I've now added an (optional) field to the Discussion settings so that you can specify even more domains that should't be pinged. You're welcome.
|
55 |
+
* Enhancement: Added additional security - escape all the things!
|
56 |
|
57 |
= 1.0 =
|
58 |
* Enhancement: Now using `home_url()` instead of `get_option( 'home' )`, as it's more SSL friendly
|
66 |
|
67 |
== Upgrade Notice ==
|
68 |
|
69 |
+
= 1.1.1 =
|
70 |
+
* Now fully compatible with the WordPress.com VIP platform
|
uninstall.php
CHANGED
@@ -17,4 +17,3 @@ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
|
17 |
// Remove options
|
18 |
|
19 |
delete_option( 'no_self_pings_option');
|
20 |
-
?>
|
17 |
// Remove options
|
18 |
|
19 |
delete_option( 'no_self_pings_option');
|
|