Add tiff to allowed BBCode images

This commit is contained in:
Tetrakern 2023-01-27 22:51:14 +01:00
parent c5587bf62f
commit bc740ffe50

View File

@ -1355,7 +1355,7 @@ if ( ! function_exists( 'fictioneer_bbcodes' ) ) {
function fictioneer_bbcodes( $content ) {
// Setup
$img_search = 'https:[^\"\'|;<>\[\]]+?\.(?:png|jpg|jpeg|gif|webp|svg|avif)';
$img_search = 'https:[^\"\'|;<>\[\]]+?\.(?:png|jpg|jpeg|gif|webp|svg|avif|tiff)';
$url_search = '(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:\/~+#-]*[\w@?^=%&amp;\/~+#-])?';
// Deal with some multi-line spoiler issues