WordPress.org

Plugin Directory

Changeset 613913


Ignore:
Timestamp:
10/18/12 03:31:26 (18 months ago)
Author:
tlovett1
Message:

Version 1.4.2 - only cache published redirects (bug fix) - disable redirect loop check by default

Location:
safe-redirect-manager
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • safe-redirect-manager/trunk/readme.txt

    r611229 r613913  
    44Requires at least: 3.1 
    55Tested up to: 3.4.2 
    6 Stable tag: 1.4.1 
     6Stable tag: 1.4.2 
    77 
    88Safely and easily manage your website's HTTP redirects. 
     
    2424 
    2525== Changelog == 
     26 
     27= 1.4.2 (Oct. 17, 2012) = 
     28* Disable redirect loop checking by default. You can filter srm_check_for_possible_redirect_loops to enable it. 
     29* Only return published redirects in update_redirect_cache. - bug fix 
    2630 
    2731= 1.4.1 (Oct. 11, 2012) = 
  • safe-redirect-manager/trunk/safe-redirect-manager.php

    r611229 r613913  
    55Description: Easily and safely manage HTTP redirects. 
    66Author: Taylor Lovett (10up LLC), VentureBeat 
    7 Version: 1.4.1 
     7Version: 1.4.2 
    88Author URI: http://www.10up.com 
    99 
     
    251251     * 
    252252     * @since 1.0 
    253      * @uses current_user_can 
     253     * @uses apply_filters 
    254254     * @return void 
    255255     */ 
     
    257257        global $hook_suffix; 
    258258        if ( $this->is_plugin_page() ) { 
     259         
     260        /** 
     261         * check_for_possible_redirect_loops() runs in best case Theta(n^2) so if you have 100 redirects, this method 
     262         * will be running slow. Let's disable it by default. 
     263         */ 
     264        if ( apply_filters( 'srm_check_for_possible_redirect_loops', false ) ) { 
    259265            if ( $this->check_for_possible_redirect_loops() ) { 
    260             ?> 
    261                 <div class="updated"> 
    262                     <p><?php _e( 'Safe Redirect Manager Warning: Possible redirect loops and/or chains have been created.', 'safe-redirect-manager' ); ?></p> 
    263                 </div> 
    264             <?php 
    265             } if ( $this->max_redirects_reached() ) { 
     266                ?> 
     267                    <div class="updated"> 
     268                        <p><?php _e( 'Safe Redirect Manager Warning: Possible redirect loops and/or chains have been created.', 'safe-redirect-manager' ); ?></p> 
     269                    </div> 
     270                <?php 
     271                } 
     272        } if ( $this->max_redirects_reached() ) { 
    266273            ?> 
    267274                <?php if ( 'post-new.php' == $hook_suffix ) : ?><style type="text/css">#post { display: none; }</style><?php endif; ?> 
     
    643650            'no_found_rows' => true, 
    644651            'update_term_cache' => false, 
     652            'post_status' => 'publish' 
    645653        ); 
    646654        $redirect_query = new WP_Query( $args ); 
Note: See TracChangeset for help on using the changeset viewer.