WordPress.org

Plugin Directory

Changeset 324031


Ignore:
Timestamp:
12/17/10 23:59:19 (3 years ago)
Author:
toscho
Message:

Fixed removing of canonical link.

Location:
remove-redundant-links/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • remove-redundant-links/trunk/class.Remove_Redundant_Links.php

    r323213 r324031  
    1717 * 
    1818 * @author  Thomas Scholz http://toscho.de 
    19  * @version 1.2 (21.11.2010) 
     19 * @version 1.3 (18.12.2010) 
    2020 * @license GPL 2 
    2121 */ 
     
    245245        } 
    246246 
     247        // Don’t touch <link rel=canonical 
     248        if ( 'link' == $type and isset ( $attr_arr['rel'] ) 
     249            and FALSE !== strpos( $attr_arr['rel'], 'canonical' ) ) 
     250        { 
     251            return $str; 
     252        } 
     253 
    247254        // There is an empty attribute left. Should not be possible on links. 
    248255        // Anyway … we put it before the remaining string_arr. 
  • remove-redundant-links/trunk/readme.txt

    r323487 r324031  
    44Tags:              links, navigation, usability, formatting, filter 
    55Requires at least: 3.0 
    6 Tested up to:      3.0.1 
     6Tested up to:      3.0.3 
    77Stable tag:        trunk 
    8 Version:           1.4 
     8Version:           1.5 
    99 
    1010Replaces links to the currently seen page. 
     
    8484* v1.3 Fixed broken URIs on the frontpage. 
    8585* v1.4 Added an option `strip_server_prefix_on_all_links`. Defaults to `TRUE`. Set this to `FALSE` to keep absolute URIs. See the FAQ. 
     86* v1.5 Fixed issue with `<link rel=canonical>`. Thanks to [eviluody](http://twitter.com/eviluody) for testing! 
  • remove-redundant-links/trunk/remove-redundant-links.php

    r323213 r324031  
    44Text Domain: plugin-rrl 
    55Description: Deactivates links to the current page. 
    6 Version:     1.4 
     6Version:     1.5 
    77Author:      Thomas Scholz 
    88Author URI:  http://toscho.de 
Note: See TracChangeset for help on using the changeset viewer.