Make WordPress Core

Ticket #14458: rel_canonical_filter.patch

File rel_canonical_filter.patch, 396 bytes (added by wjm, 14 years ago)
  • link-template.php

     
    21552155                return;
    21562156
    21572157        $link = get_permalink( $id );
    2158         echo "<link rel='canonical' href='$link' />\n";
     2158        echo "<link rel='canonical' href='" .apply_filters( 'rel_canonical', $link, $id ). "' />\n";
    21592159}
    21602160
    21612161/**