original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Build field attributes
  
  @since  0.1.0
  @param  array  $excludes Attributes to be excluded
  @return string
docstring_tokens: Build field attributes