承接 log1x/allow-unsafe-links 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

log1x/allow-unsafe-links

Composer 安装命令:

composer require log1x/allow-unsafe-links

包简介

Prevents WordPress from automatically adding noopener and noreferrer to outbound links.

README 文档

README

Latest Stable Version Total Downloads

Starting in WordPress 4.7.4 and 5.1, WordPress now automatically adds rel="noopener noreferrer to external links that open in a new window (e.g. _blank) when adding a link from TinyMCE (4.7.4) as well as on post save (5.1). With the introduction of it passing your content through a filter on post save, it is no longer possible to publish a post without the tags even when manually removing them.

While I 100% endorse this behavior deeming the potential security concerns when not including these tags (especially noopener), this can lead to unwanted behavior on URL's such as affiliate and referral links due to a variety of networks poor implementation of tracking.

If you are not using an advertiser network that has the potential issues stated above, you should not be using this. Otherwise, please use this with caution and for the safety of you and your users, please add rel="noopener noreferrer" on outbound links manually that are not affiliate-related.

Installation

Composer

$ composer require log1x/allow-unsafe-links

Manually

Download and install the plugin as you would any other WordPress plugin.

Usage

Once activated, you're good to go. For existing posts, you will need to go through and manually remove the rel="noopener noreferrer" on your URL's and re-save.

This can also be done via wp-cli using search-replace such as:

$ wp search-replace ' rel="noopener noreferrer" ' ''

License

Allow Unsafe Links is provided under the MIT License.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固