wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_cleanup_image_add_caption › WordPress Function

Od3.4.0
Przestarzałyn/a
_cleanup_image_add_caption ( $matches )
Dostęp:
  • private
Parametry:
  • (array) $matches Single regex match.
    Wymagane: Tak
Powrót:
  • (string) Cleaned up HTML for caption.
Zdefiniowane na:
Codex:

Private preg_replace callback used in image_add_caption().



Źródło

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