OtaXou replied
Well, problem solved ! Not exactly as we expected though, but solved anyway.
My version of plugins\\penci-soledad-amp\\includes\\sanitizers\\class-amp-link-sanitizer.php had a function different than yours, like this :
public static function __pre_url_off( $link ) {
if( false !== strpos( $link, PENCI_STARTPOINT ) ){
$start_point = PENCI_STARTPOINT;
$get_last = substr($link, -1);
if( '/' == $get_last ){
$start_point = PENCI_STARTPOINT . '/';
}
$link = str_replace( $start_point, '', $link );
}
return $link;
}
I just replaced the whole function with the code you gave me, without changing a thing, and it is now working properly.
Thank you for your help.