trim() expects parameter 1 to be string
-
Error message found: <b>Warning</b>: trim() expects parameter 1 to be string, array given in
<b>/var/www/html/csscorp.com/csscorp/wp-content/plugins/contact-form-7/includes/functions.php</b> on line
<b>308</b>function wpcf7_format_atts( $atts ) { $html = ''; $prioritized_atts = array( 'type', 'name', 'value' ); foreach ( $prioritized_atts as $att ) { if ( isset( $atts[$att] ) ) { $value = trim( $atts[$att] );//warning in this line 308 $html .= sprintf( ' %s="%s"', $att, esc_attr( $value ) ); unset( $atts[$att] ); } } foreach ( $atts as $key => $value ) { $value = trim( $value ); if ( '' !== $value ) $html .= sprintf( ' %s="%s"', $key, esc_attr( $value ) ); } $html = trim( $html ); return $html; }
Please help me to solve this issue
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘trim() expects parameter 1 to be string’ is closed to new replies.