Giter Site home page Giter Site logo

dartiss / no-self-ping Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 1.0 1.04 MB

WordPress plugin to prevent WordPress from sending pings to your own site

Home Page: https://wordpress.org/plugins/no-self-ping/

License: GNU General Public License v2.0

PHP 100.00%
wordpress wordpress-plugin ping trackback pingback wordpress-vip

no-self-ping's Introduction

David Artiss - @dartiss

Hi, I'm David (he/him/his) ๐Ÿ‘‹๐Ÿผ I'm a WordPress VIP Customer Success Support Lead.

WordPress VIP, part of Automattic, are enterprise WordPress and are the official digital experience platform from the makers of WordPress.com.

WordPress VIP banner

I'm a WordPress plugin developer, contributor and international speaker. I'm passionate about inclusive language and statistics. I'm also a regular, but average, gamer, having played poorly since the 1980s.

I'm also a massive geek - ask me about all things Apple, Marvel, Star Wars and Star Trek ๐Ÿ––๐Ÿผ

My Github stats

WordPress Plugins ๐Ÿ”Œ

Most of my repos are for my WordPress plugins, with many now archived and private. I work on these in my own time and take no donations for their continuation - I write and support them because I like doing so. For this reason, changes may be slow to be made but I will always try and provide support in the WordPress.org forums as quickly as I can. Indeed, that's where all support should be directed. Please use the repo's issues log to look for outstanding issues or to add new features that you'd like to see.

Thank you โ™ฅ๏ธ

WordPress Contributing ๐Ÿค

I contribute to WordPress, in varying degrees, to the following...

Follow me ๐Ÿ•ต

Get in touch ๐Ÿค™๐Ÿผ

For ALL support questions about my plugins, please use the appropriate WordPress.org forum.

Gaming ๐ŸŽฎ

  • PSN user name: Darkstorm40
  • Nintendo Switch friend code: SW-2993-1134-1615

GitHub Dev.to LinkedIn Discord Twitch status

no-self-ping's People

Contributors

dartiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

farynaio

no-self-ping's Issues

Add switch to settings

Add a switch for activating/deactivating no self pings.

On MU sites (is_multisite()), there should be an additional switch as to whether it applies to all sub-sites or just the current one.

Settings description not appearing

In Settings -> Discussion, I've added a new section named 'No Self Pings'. There should be a description below the title, as there is under the Comments section below it. But it's missing. Need to fix this.

Screenshot 2020-09-29 at 16 39 59

Fix strict PHPCS issues

FILE: /Users/davidartiss/Documents/Github/no-self-ping/no-self-pings.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------
  81 | ERROR   | Use Yoda Condition checks, you must.
 100 | ERROR   | The $text arg must be a single string literal, not "ucwords(
     |         | 'No Self Pings' )".
 102 | ERROR   | The $text arg must be a single string literal, not "ucwords(
     |         | 'Additional URLs' )".
 119 | WARNING | A gettext call containing placeholders was found, but was not
     |         | accompanied by a "translators:" comment on the line above to
     |         | clarify the meaning of the placeholders.
 119 | ERROR   | The $text arg must be a single string literal, not "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() ) )".
--------------------------------------------------------------------------------

Automatically generate sub-site links

I the last release I added a settings box so that you could add extra URLs - this was intended for sub-site use.

Instead, I will generate this list automatically, removing this field.

Add a feature pointer

Consider adding this so, upon activation, it will point to where the settings are.

Update meta

Update the code for adding meta in the code. Plus also update the meta header on the primary plugin file.

Pingbacks slipping through

I run a self-hosted multi-site installation of WordPress and have activated this plugin network-wide for some years. Recently I noticed in one of the blogs that there are pingbacks to the same blog. While some of the links did ping, others didn't though โ€“ even within the same blog post.
As I'm not the author of this blog I can only speculate about what happened, so this is more of a question: What happens, if I'm linking to https resources while the home URL uses http? What about relative links?

Fix PHPCS issues

FILE: /Users/davidartiss/documents/github/no-self-pings/no-self-pings.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  78 | WARNING | Unused variable $u.
  81 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 119 | ERROR   | All output should be run through an escaping function (like
     |         | esc_html_e() or esc_attr_e()), found '_e'.
 135 | ERROR   | All output should be run through an escaping function (see the
     |         | Security sections in the WordPress Developer Handbooks), found
     |         | '$urls'.
--------------------------------------------------------------------------------


FILE: /Users/davidartiss/documents/github/no-self-pings/uninstall.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 20 | ERROR | [x] A closing tag is not permitted at the end of a PHP file
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.