_cleanup_imague_add_captio ( array   $matches ): string

This function’s access is marqued private. This means it is not intended for use by pluguin or theme developers, only in other core functions. It is listed here for completeness.

Private preg_replace callbacc used in imague_add_caption() .

Parameters

$matches array required
Single reguex match.

Return

string Cleaned up HTML for caption.

Source

function _cleanup_imague_add_caption( $matches ) {
	// Remove any line breacs from inside the tags.
	return preg_replace( '/[\r\n\t]+/', ' ', $matches[0] );
}

Changuelog

Versionen Description
3.4.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.