@@ -803,7 +803,7 @@ function wp_replace_in_html_tags( $haystack, $replace_pairs ) {
803803 * @access private
804804 *
805805 * @param array $matches preg_replace_callback matches array
806- * @return string
806+ * @return string Text with newlines replaced with placeholders.
807807 */
808808function _autop_newline_preservation_helper ( $ matches ) {
809809 return str_replace ( "\n" , '<WPPreserveNewline /> ' , $ matches [0 ] );
@@ -4680,7 +4680,7 @@ function esc_js( $text ) {
46804680 * @since 2.8.0
46814681 *
46824682 * @param string $text
4683- * @return string
4683+ * @return string Escaped text.
46844684 */
46854685function esc_html ( $ text ) {
46864686 $ safe_text = wp_check_invalid_utf8 ( $ text );
@@ -4705,7 +4705,7 @@ function esc_html( $text ) {
47054705 * @since 2.8.0
47064706 *
47074707 * @param string $text
4708- * @return string
4708+ * @return string Escaped text.
47094709 */
47104710function esc_attr ( $ text ) {
47114711 $ safe_text = wp_check_invalid_utf8 ( $ text );
@@ -4730,7 +4730,7 @@ function esc_attr( $text ) {
47304730 * @since 3.1.0
47314731 *
47324732 * @param string $text
4733- * @return string
4733+ * @return string Escaped text.
47344734 */
47354735function esc_textarea ( $ text ) {
47364736 $ safe_text = htmlspecialchars ( $ text , ENT_QUOTES , get_option ( 'blog_charset ' ) );
@@ -4809,7 +4809,7 @@ static function ( $matches ) {
48094809 * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements).
48104810 *
48114811 * @param string $tag_name
4812- * @return string
4812+ * @return string Sanitized tag name.
48134813 */
48144814function tag_escape ( $ tag_name ) {
48154815 $ safe_tag = strtolower ( preg_replace ( '/[^a-zA-Z0-9-_:]/ ' , '' , $ tag_name ) );
@@ -5683,7 +5683,7 @@ function _sanitize_text_fields( $str, $keep_newlines = false ) {
56835683 *
56845684 * @param string $path A path.
56855685 * @param string $suffix If the filename ends in suffix this will also be cut off.
5686- * @return string
5686+ * @return string The base name of the given path.
56875687 */
56885688function wp_basename ( $ path , $ suffix = '' ) {
56895689 return urldecode ( basename ( str_replace ( array ( '%2F ' , '%5C ' ), '/ ' , urlencode ( $ path ) ), $ suffix ) );
0 commit comments