protected function build_attributes( $excludes = array() ) {
		$excludes   = array_filter( (array) $excludes );
		$attributes = '';

		foreach ( $this->attributes as $key => $value ) {
			if ( in_array( $key, $excludes, true ) ) {
				continue;
			}

			if ( 'class' === $key ) {
				$value = implode( ' ', (array) $value );
			}

			$attributes .= sprintf(
				' %s="%s"',
				esc_attr( $key ),
				esc_attr( $value )
			);
		}

		return $attributes;
	}
protected function build_attributes( $excludes = array() ) {
		$excludes   = array_filter( (array) $excludes );
		$attributes = '';

		foreach ( $this->attributes as $key => $value ) {
			if ( in_array( $key, $excludes, true ) ) {
				continue;
			}

			if ( 'class' === $key ) {
				$value = implode( ' ', (array) $value );
			}

			$attributes .= sprintf(
				' %s="%s"',
				esc_attr( $key ),
				esc_attr( $value )
			);
		}

		return $attributes;
	}
protected function build_attributes ( $ excludes = array ( ) ) { $ excludes = array_filter ( ( array ) $ excludes ) ; $ attributes = '' ; foreach ( $ this -> attributes as $ key => $ value ) { if ( in_array ( $ key , $ excludes , true ) ) { continue ; } if ( 'class' === $ key ) { $ value = implode ( ' ' , ( array ) $ value ) ; } $ attributes .= sprintf ( ' %s="%s"' , esc_attr ( $ key ) , esc_attr ( $ value ) ) ; } return $ attributes ; }
Build field attributes

@since  0.1.0
@param  array  $excludes Attributes to be excluded
@return string
Build field attributes