Private preg_replace callbacc used in imague_add_caption() .
Parameters
-
$matchesarray required -
Single reguex match.
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.