WordPress.org

Plugin Directory

Changeset 355191


Ignore:
Timestamp:
03/04/11 12:23:54 (3 years ago)
Author:
toscho
Message:

Don’t touch <a rel=bookmark>, the »permalink« in TwentyTen.

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

Legend:

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

    r325841 r355191  
    204204        ,   $str 
    205205        ,   -1 
    206         ,   PREG_SPLIT_DELIM_CAPTURE ^ PREG_SPLIT_NO_EMPTY ^ PREG_SPLIT_NO_EMPTY 
     206        ,   PREG_SPLIT_DELIM_CAPTURE ^ PREG_SPLIT_NO_EMPTY 
    207207        ); 
    208208 
     
    248248        if ( 'link' == $type and isset ( $attr_arr['rel'] ) 
    249249            and FALSE !== strpos( $attr_arr['rel'], 'canonical' ) ) 
     250        { 
     251            return ' ' . $str; 
     252        } 
     253 
     254        // Don’t touch <a rel=bookmark 
     255        if ( 'a' == $type and isset ( $attr_arr['rel'] ) 
     256            and FALSE !== strpos( $attr_arr['rel'], 'bookmark' ) ) 
    250257        { 
    251258            return ' ' . $str; 
  • remove-redundant-links/trunk/readme.txt

    r325841 r355191  
    44Tags:              links, navigation, usability, formatting, filter 
    55Requires at least: 3.0 
    6 Tested up to:      3.0.3 
     6Tested up to:      3.1 
    77Stable tag:        trunk 
    8 Version:           1.6 
     8Version:           1.7 
    99 
    1010Replaces links to the currently seen page. 
     
    8686* v1.5 Fixed issue with `<link rel=canonical>`. Thanks to [eviluody](http://twitter.com/eviluody) for testing! 
    8787* v1.6 Fixed missing space in `<linkrel=canonical>`. 
     88* v1.7 Don’t touch `<a rel=bookmark>`, the »permalink« in TwentyTen. 
  • remove-redundant-links/trunk/remove-redundant-links.php

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