ucf / link-rel-patch
Removes the noreferrer rel value that is added to links set to open in a new tab on post update or publish.
Package info
Language:JavaScript
Type:wordpress-plugin
pkg:composer/ucf/link-rel-patch
Requires
- composer/installers: ~1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-20 18:14:41 UTC
README
Removes the noreferrer rel value that is added to links set to open in a new tab on post update or publish.
Description
Filters the rel values that are automatically added on links that are set to open in a new tab. The only rel value that is added to these links on post update or publish is noopener. The rel value noreferrer is removed.
Documentation
Head over to the Link Rel Patch wiki for detailed information about this plugin, installation instructions, and more.
Changelog
1.0.1
Enhancements:
- Added composer file.
1.0.0
- Initial release
Upgrade Notice
n/a
Development
Enabling debug mode in your wp-config.php file is recommended during development to help catch warnings and bugs.
Requirements
- node
- gulp-cli
Instructions
-
Clone the Link-Rel-Patch repo into your local development environment, within your WordPress installation's
plugins/directory:git clone https://github.com/UCF/Link-Rel-Patch.git -
cdinto the new Link-Rel-Patch directory, and runnpm installto install required packages for development intonode_modules/within the repo -
Optional: If you'd like to enable BrowserSync for local development, or make other changes to this project's default gulp configuration, copy
gulp-config.template.json, make any desired changes, and save asgulp-config.json.To enable BrowserSync, set
synctotrueand assignsyncTargetthe base URL of a site on your local WordPress instance that will use this plugin, such ashttp://localhost/wordpress/my-site/. YoursyncTargetvalue will vary depending on your local host setup.The full list of modifiable config values can be viewed in
gulpfile.js(seeconfigvariable). -
Run
gulp defaultto process front-end assets. -
If you haven't already done so, create a new WordPress site on your development environment to test this plugin against.
-
Activate this plugin on your development WordPress site.
Other Notes
- This plugin's README.md file is automatically generated. Please only make modifications to the README.txt file, and make sure the
gulp readmecommand has been run before committing README changes. See the contributing guidelines for more information.
Contributing
Want to submit a bug report or feature request? Check out our contributing guidelines for more information. We'd love to hear from you!