Skip to content

Releases: Automattic/WPCOM-Legacy-Redirector

v1.3.0

02 Aug 01:05
Compare
Choose a tag to compare
  • Cleanup of PHP Notices
  • Addition of wpcom_legacy_redirector_preserve_query_params filter to allow for the whitelisting of params that should be passed through unmodified to the redirected url.

Usage:

add_filter( 'wpcom_legacy_redirector_preserve_query_params', function( $preserved_params ){
    array_push( $preserved_params,
        'utm_source',
        'utm_medium',
        'utm_campaign'
    );
    return $preserved_params;
} );

props jigneshnakrani088, mdbitz

v1.2.0

07 Jul 09:42
Compare
Choose a tag to compare
  • Composer support
  • Introduced wpcom_legacy_redirector_redirect_status filter for redirect status code (props spacedmonkey)
  • Reset cache when a redirect post does not exist
  • Introduce the wpcom_legacy_redirector_allow_insert filter to enable inserts outside of WP CLI
  • Fix for WP-CLI check

props spacedmonkey, bswatson