All notable changes to this project will be documented in this file, per the Keep a Changelog standard.
Unreleased - TBD
2.2.1 - 2024-11-13
Note that this version bumps the WordPress minimum from 6.4 to 6.5.
- Bump WordPress "tested up to" version 6.7 (props @sudip-md, @jeffpaul, @mehidi258 via #403).
- Bump WordPress minimum supported version to 6.5 (props @sudip-md, @jeffpaul, @mehidi258 via #403).
- Prevent undefined property warnings when searching redirects (props @chermant, @Sidsector9, @peterwilsoncc via #400).
- Ensure the add new button shows proper text (props @dkotter, @jeffpaul via #404).
2.2.0 - 2024-09-19
Note that this version bumps the WordPress minimum from 6.3 to 6.4.
- Option to Quick Edit and Bulk Edit redirect's https status and force https meta (props @dhanendran, @ravinderk, @faisal-alvi, @dkotter, @qasumitbagthariya, @mehul0810, @espellcaste via #350).
- Screenshots for WP.org plugin page (props @faisal-alvi, @jeffpaul, @iamdharmesh via #394).
- Bump WordPress "tested up to" version 6.6 (props @ankitguptaindia, @sudip-md via #386).
- Bump WordPress minimum supported version from 6.3 to 6.4 (props @ankitguptaindia, @sudip-md via #386).
- Update documentation (props @szepeviktor, @jeffpaul, @iamdharmesh, @dkotter via #384, #388, #391).
- Allows use of full URLs as redirect targets when using absolute URLs (props @benlk, @peterwilsoncc via #395).
- Bump
braces
from 3.0.2 to 3.0.3 (props @dependabot, @faisal-alvi via #383). - Bump
jsdoc
from 3.6.11 to 4.0.3 (props @dependabot, @faisal-alvi via #383).
2.1.2 - 2024-06-19
- Provide example for modifying the default redirect status code (props @peterwilsoncc, @jeffpaul, @JosVelasco, @dkotter via #365).
- "Testing" section in the "CONTRIBUTING.md" file (props @kmgalanakis, @jeffpaul via #379).
- Improved reference to the postmeta table for better WordPress compatibility (props @ogorzalka, @Sidsector9 via #361).
- Clean up NPM dependencies and update node to v20 (props @Sidsector9, @dkotter via #363).
- Warning message to error message after loops are detected (props @aaemnnosttv, @Sidsector9, @BhargavBhandari90 via #368).
- Disabled auto sync pull requests with target branch (props @iamdharmesh, @jeffpaul via #371).
- Replaced lee-dohm/no-response with actions/stale to help with closing no-response/stale issues (props @jeffpaul, @dkotter via #373).
- Upgrade the
download-artifact
from v3 to v4 (props @iamdharmesh, @jeffpaul via #372). - Bump WordPress "tested up to" version 6.5 (props @sudip-md, @jeffpaul, @dkotter via #376).
- Bump WordPress minimum from 5.7 to 6.3 (props @sudip-md, @jeffpaul, @dkotter via #376).
- URL validation check on "input" event for "Redirect From" field (props @peterwilsoncc, @BhargavBhandari90, @Sidsector9 via #369).
- PHP warning when running the "wp safe-redirect-manager list" CLI command (props @planetahuevo, @kmgalanakis, @dkotter via #378).
2.1.1 - 2024-01-08
- Support for the WordPress.org plugin preview (props @dkotter, @jeffpaul via #357).
phpcs:ignore
on the now safeini_set()
(props @philipjohn, @ravinderk via #355).
- Bump
Cypress
from 13.0.0 to 13.1.0,@10up/cypress-wp-utils
from 0.1.0 to 0.2.0,@wordpress/env
from 5.3.0 to 8.7.0,cypress-mochawesome-reporter
from 3.4.0 to 3.5.1 andnode-wp-i18n
from 1.2.5 to 1.2.7 (props @iamdharmesh, @ravinderk via #349). - Bump WordPress "tested up to" version 6.4 (props @qasumitbagthariya, @jeffpaul via #353, #354).
- Validate and sanitize a superglobal before using it (props @jspellman814, @ravinderk via #356).
- Ensure text can be translated (props @alexclassroom, @iamdharmesh via #351).
2.1.0 - 2023-09-07
- WP-CLI command
export
to export redirects into a CSV file (props @zamanq, @jeffpaul, @Sidsector9 via #299). - Admin settings to set custom redirect protocol per route (props @tlovett1, @danielbachhuber, @benoitchantre, @jayedul, @Sidsector9 via #301).
- Autocomplete to the "Redirect To" field (props @tlovett1, @bmarshall511, @ravinderk via #325).
- Allow existing import records to be updated instead of skipped (props @retlehs, @bmarshall511, @dkotter via #329).
- Check for minimum required PHP version before loading the plugin (props @kmgalanakis, @iamdharmesh, @Sidsector9, @vikrampm1, @dkotter via #340).
- Repo Automator GitHub Action (props @iamdharmesh, @jeffpaul via #348).
- Bump Support Level from
Active
toStable
(props @jeffpaul, @Sidsector9, @peterwilsoncc via #303). - Bump WordPress "tested up to" version 6.3 (props @github-actions, @kmgalanakis, @iamdharmesh via #339).
- Reduced the number of queries in half by removing
post_status
property from redirects data (props @tlovett1, @pdclark, @mehul0810, @Sidsector9, @dkotter, @nateconley, @sksaju, @ravinderk via #326). - Rule editor always shows raw redirect target (props @tbenyon, @jeffpaul, @trainoasis, @jayedul, @dkotter via #330, #333).
- Include links to redirects that cause redirect loops/chains in the warning (props @joshbetz, @tlovett1, @Sidsector9, @ravinderk via #341).
- Set the default value for the
srm_check_for_possible_redirect_loops
filter totrue
(props @joshbetz, @tlovett1, @Sidsector9, @ravinderk via #341). - Added a back link to the admin notices when a post is saved or updated (props @szepeviktor, @tlovett1, @bmarshall511, @iamdharmesh via #328).
- Missing Docblocks for filter hooks (props @peterwilsoncc, @jayedul, @dkotter, @faisal-alvi, @iamdharmesh via #313).
auto_detect_line_endings
deprecation warning in PHP 8.1 and above (props @dhewer, @jayedul, @Sidsector9, @ravinderk via #327).- Only show public post types in the autocomplete "Redirect To" field (props @ravinderk, @bmarshall511, @dkotter via #332).
- Slow performance during redirect chain/loop detection (props @tlovett1, @danielbachhuber, @Sidsector9, @ravinderk, @iamdharmesh via #336).
- Bump
semver
from 7.3.8 to 7.5.4 (props @dependabot, @dkotter, @Sidsector9 via #334, #342). - Bump
tough-cookie
from 2.5.0 to 4.1.3 (props @dependabot, @faisal-alvi via #337). - Bump
@cypress/request
from 2.88.10 to 3.0.0 (props @dependabot, @faisal-alvi, @ravinderk via #337, #343). - Bump
cypress
from 11.2.0 to 13.0.0 (props @dependabot, @ravinderk via #343).
2.0.1 - 2023-06-01
- Ensure our E2E tests run (props @Sidsector9, @iamdharmesh via #318).
- Ensure the
message
array key exists before we use it (props @dkotter, @ocean90, @vena, @peterwilsoncc via #319). - Resolve deprecation notices in PHP 8.1 and later (props @peterwilsoncc, @dkotter via #322).
2.0.0 - 2023-05-31
Note that this version bumps the PHP minimum from 5.6 to 7.4 and the WordPress minimum from 4.6 to 5.7.
- Handling of 403, 404, and 410 status codes (props @nateconley, @cadic, @dkotter, @Sidsector9, @helen, @dinhtungdu, @dustinrue, @ciprianimike, @jeffpaul, @aosmichenko, @okadots via #300).
- Support for adding notes when importing redirects (props @barryceelen, @cadic, @jayedul via #277).
- "Build release zip" GitHub Action (props @iamdharmesh, @cadic, @faisal-alvi via #293).
- GitHub Action summary added Cypress test report (props @jayedul, @peterwilsoncc, @iamdharmesh via #314).
- Dependency review GitHub action (props @jeffpaul, @Sidsector9 via #317).
- Bumped PHP minimum supported version from 5.6 to 7.4 (props @csloisel, @dkotter, @vikrampm1 via #289).
- Bumped WordPress minimum supported version from 4.6 to 5.7 (props @csloisel, @dkotter, @vikrampm1 via #289).
- Bumped PHPCS compat script to use 7.4 as test version (props @csloisel, @dkotter, @vikrampm1 via #289).
- Bumped WordPress "test up to" version 6.2 (props @csloisel, @jayedul via #290, #310).
- Cypress integration migrated from 9.5.2 to 11.2.0 (props @jayedul, @cadic, @Sidsector9, @iamdharmesh via #295).
- Run E2E tests on the ZIP generated by "Build release zip" GitHub Action (props @jayedul, @cadic, @iamdharmesh, @dkotter via #306, #311).
- Status code dropdown is now sorted numerically (props @norcross, @Sidsector9 via #307).
- PHP versions < 7.4 from phpunit tests (props @csloisel, @dkotter, @vikrampm1 via #289).
- Check non-active multisite directory against the main site redirects (props @phpbits, @dinhtungdu, @ciprianimike, @gsarig, @Sidsector9, @davidegreenwald, @turtlepod via #248).
- Regex redirects without leading
/
are buggy (props @dhanendran, @peterwilsoncc via #279). - Issue with
srm_additional_status_codes
filter hook (props @Sidsector9, @faisal-alvi via #312).
- Bump
got
from 10.7.0 to 11.8.5 (props @dependabot, @peterwilsoncc via #286). - Bump
@wordpress/env
from 4.9.0 to 5.3.0 (props @dependabot, @peterwilsoncc via #286). - Bump
simple-git
from 3.9.0 to 3.16.0 (props @dependabot, @Sidsector9, @peterwilsoncc via #294, #302). - Bump
http-cache-semantics
from 4.1.0 to 4.1.1 (props @dependabot, @peterwilsoncc via #305).
1.11.1 - 2022-09-28
- Indicate plugin as the source of redirects (props @peterwilsoncc, @Sidsector9 via #281).
1.11.0 - 2022-06-27
- Detect duplicate rules for the same 'redirect from' value (props @adamsilverstein, @dhanendran, @hrkhal, @jeffpaul, @lukaspawlik, @sanketio, @Sidsector9 via #171).
- PHP 8 compatibility (props @iamdharmesh, @dkotter via #264).
- E2E Tests with Cypress (props @iamdharmesh, @Sidsector9, @dkotter via #262, #273).
- Dependency security scanning (props @jeffpaul, @peterwilsoncc via #268).
- Default number of redirects in readme files (props @grappler via #259).
- Bump WordPress "tested up to" version 6.0 (props @jeffpaul, @sudip-10up, @peterwilsoncc via #260, #270).
- Unit tests by adding
PHPUnit-Polyfills
library (props @iamdharmesh, @Sidsector9 via #257).
- Bump
minimist
from 1.2.5 to 1.2.6 (props @dependabot via #265).
1.10.1 - 2021-12-16
- Formatting options to
wp safe-redirect-manager list
command (props @dinhtungdu, @TheLastCicada via #238).
- Increased redirect limits from 250 to 1,000 (props @sultann, @dinhtungdu, @jilltilt, @yeevy via #242).
- Bump WordPress version "tested up to" 5.8 (props @jeffpaul, @ankitguptaindia, @phpbits via #233, #235, #252).
- Required parameter following optional deprecated message in PHP 8 (props @vinkla, @dinhtungdu via #231).
- Edge case when redirecting a URL with parameters where
$parsed_requested_path['path']
does not always exist (props @dinhtungdu, @davidmondok via #246, #247). - Formatting fix to prevent npm install error (props @phpbits via #249).
- Bump
minimist
from 0.0.8 to 1.2.5 (props @dependabot via #250). - Bump
lodash
from 4.17.19 to 4.17.21 (props @dependabot via #251).
1.10.0 - 2020-12-03
410 Gone
status code to the list of HTTP status codes andsrm_additional_status_codes
to add additional status codes (@dinhtungdu, @helen, @PopVeKind via #215).- Option to ignore query parameters, previous behaviour still available via the new
srm_match_query_params
filter (props @braders, @dinhtungdu via #196). - Extracts redirect matching logic from
maybe_redirect
tomatch_redirect
method, plussrm_match_redirect
function to expose matching redirect logic to themes and plugins (props @nicholasio, @dinhtungdu via #198). - Redirect Post ID to response headers where a redirect rule is invoked (props @jamesmorrison, @dinhtungdu via #218).
- Banner and icon images (props @lea10up via #209).
- Documentation and unit test updates (props @noplanman, @dinhtungdu, @noesteijver, @jeffpaul, @davidegreenwald, @barryceelen via #195, #200, #207, #210, #211, #213, #219, #224).
- Use proper hook for setting up
SRM_Redirect
(props @dinhtungdu, @WPprodigy via #203). - Regression related to wildcard matching (props @amyevans, @dinhtungdu, @jeffreybetts via #217).
- Missing
order
column in CSV import WP-CLI command (props @barryceelen via #220).
- Bump
lodash
from 4.17.15 to 4.17.19 (props @dependabot via #214).
1.9.3 - 2019-11-20
- Allow for escaped values on
_redirect_rule_from
, useful when importing regex (props @raymondware via #163) - Check
current_user_can
cap later to prevent the notice being thrown during Jetpack sitemap cron event runs (props @rebeccahum via #178) - Updated tests and documentation (props @adamsilverstein, @jeffpaul, @helen via #173, #179, #180, #181, #184, #190, #192)
- Check correct meta field when updating notes (props @lucymtc, @adamsilverstein via #154, #185)
- Bump WordPress version "tested up to" 5.3 (props @jeffpaul via #193)
- Update the logic for wildcard matching to properly match URLs with query parameters (props @adamsilverstein, @mslinnea via #182)
- Bump lodash from 4.17.11 to 4.17.15 (props @dependabot via #183)
1.9.2 - 2018-11-27
- CLI list function name for PHP 5
1.9.1 - 2018-11-26
- SQL injection bug opened up by SQL search functionality
1.9 - 2018-04-03
- Redirect notes feature
- Filters for request path and redirect path
- Filter to only apply redirects on 404
- Instantiate classes in main file instead of individual files for improved testability
- PHP 7.2 errors
1.8 - 2017-12-08
- Custom redirect capability
- Improved escaping
- Code refactor
- Root redirect in sub directory bug
- Broken html
1.7.8 - 2015-12-16
- SQL injection bug and no search terms warning
1.7.7 - 2015-06-18
composer.json
file
- Make default redirect status filterable
- Delete capability on redirect post type
1.7.6 - 2015-02-13
- Redirection plugin importer. Props @eugene-manuilov
- Use
home_url()
instead ofsite_url()
. Props @swalkinshaw - Don't redirect if redirect to location is invalid. Props @vaurdan
1.7.5 - 2014-09-09
- Plugin icon/banner
- Don't always lowercase matched parts in redirect to replace. Props @francescolaffi
1.7.4 - 2014-09-05
- More unit tests
- Case sensitivity redirection bug.
1.7.3 - 2014-08-26
- Unit tests
- Check if the global
$wp_query
is null before usingget_query_var
. Props @cmmarslender
- Making
_x
translatable text work. Props @lucspe
1.7.2 - 2014-02-10
- French translation. Props @jcbrebion.
- Don't perform redirects in the admin. Props @joshbetz.
- Prevent duplicate GUIDs. Props @danblaker.
1.7.1 - 2013-12-12
- 307 redirect status code. Thanks @lgedeon
- Status code labels to creation dropdown. Thanks @chanceymathews
- Plugin textdomain should be loaded on init
1.7 - 2013-04-06
- Allow for regex replacement in from/to redirects
- Slovak translation. Thanks Branco Radenovich
- Return
redirect_from
onget_permalink
. Thanks @simonwheatley
- Notice in
filter_admin_title
1.6 - 2012-12-11
- Bulk delete redirects from the Manage Redirects screen
- wp-cli coverage including subcommands for creating, deleting, and listing redirects, and importing
.htaccess
files
1.5 - 2012-11-07
- Regular expressions allowed in redirects
- New filter
srm_registered_redirects
allows you to conditionally unset redirects based on context, user permissions, etc. Thanks @jtsternberg for the pull request.
1.4.2 - 2012-10-17
- Disable redirect loop checking by default. You can filter
srm_check_for_possible_redirect_loops
to enable it.
- Only return published redirects in
update_redirect_cache
.
1.4.1 - 2012-10-11
- Refresh cache after
create_redirect
call - Refresh cache after
save_post
is called - Chop off "pre-WP" path from requested path. This allows the plugin to work on WP installations in sub-directories.
1.4 - 2012-10-09
- Use the
*
wildcard at the end of your match value to configure a wildcard redirect. Use the same symbol at the end of your redirect to value in order to have the matched value be appended to the end of the redirect. Thanks @prettyboymp for the pull request - Include an informational
X-Safe-Redirect-Manager
header when a redirect occurs. Thanks @simonwheatley for the pull request
- Default request-matching behavior to be case-insensitive. This can be modified using the
srm_case_insensitive_redirects
filter.
1.3 - 2012-09-19
- Globalize SRM class for use in
themes/plugins/scripts
create_redirect
method to make importing easier
1.2 - 2012-09-01
manage_options
capability required to use redirect manager
- Hide view switcher
- Hide privacy stuff for bulk edit
- Checkbox column
- Search feature
1.1 - 2012-08-28
is_plugin_page
function
plugin_url()
used properly
1.0 - 2012-08-27
- Plugin released