Revision 18
Added by Manuela over 6 years ago
filterRelUrl.php | ||
---|---|---|
33 | 33 |
/* Original SP7 Manu Fix */ |
34 | 34 |
// restore canonical relation links |
35 | 35 |
$sContent = preg_replace_callback( |
36 |
'/<link\s[^>]*?\"canonical\"[^>]*?>/isU',
|
|
36 |
'/<link\s[^>]*?\"(canonical|alternate)\"[^>]*?>/isU',
|
|
37 | 37 |
function($aMatches) use ($sDocRoot) { |
38 | 38 |
return preg_replace( |
39 | 39 |
'/(href\s*=\s*\")([^\"]*?)/siU', |
Also available in: Unified diff
output_filter/filters/filterRelUrl now will take care for <link alternate href entries too