WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
[Small bugs+fix] undefined variables (2 posts)

  1. jrf
    Member
    Posted 1 year ago #

    Hiya,

    Love the plugin & use it on all my sites!

    I noticed a few error notices in my error logs and fixed them, one is a bit outdated but will still generate a notice. I hope you'll accept these fixes as a compliment to your plugin and will include them in the next release. Line numbers are based on the latest public version 2.2.13.

    Smile,
    Juliette

    ***********************

    File: models/monitor.php

    Find line 37:

    if ( in_array( $post->post_status, array( 'publish', 'static' ) ) && $before != $after && $before != '/' && $before != $site['path'].'/' ) {

    Replace with:

    if ( in_array( $post->post_status, array( 'publish', 'static' ) ) && $before != $after && $before != '/' && ( !isset( $site['path'] ) || ( isset( $site['path'] ) && $before != $site['path'].'/' ) ) ) {

    File: view/admin/options.php

    Find line 83:

    <?php echo $this->select( $groups, $options['monitor_category'] );?>

    Replace with:

    <?php echo $this->select( $groups, ( isset( $options['monitor_category'] ) ? $options['monitor_category'] : '' ) );?>

    http://wordpress.org/extend/plugins/redirection/

  2. sireneweb
    Member
    Posted 1 year ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic