wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_cleanup_image_add_caption › WordPress Function

Da3.4.0
Deprecaton/a
_cleanup_image_add_caption ( $matches )
Accedi:
  • private
Parametri:
  • (array) $matches Single regex match.
    Richiesto:
Ritorna:
  • (string) Cleaned up HTML for caption.
Definito a:
Codex:

Private preg_replace callback used in image_add_caption().



Sorgenti

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