}
}
- if ( $attribute === 'align' && !in_array( $element, $cells ) ) {
+ // Table align is special, it's about block alignment instead of
+ // content align (see also bug 40306)
+ if ( $attribute === 'align' && in_array( $element, $table ) ) {
if ( $value === 'center' ) {
$style .= ' margin-left: auto;';
$property = 'margin-right';
# Stupid hack
$encValue = preg_replace_callback(
- '/(' . wfUrlProtocols() . ')/',
+ '/((?i)' . wfUrlProtocols() . ')/',
array( 'Sanitizer', 'armorLinksCallback' ),
$encValue );
return $encValue;