Changeset 54543 for branches/6.0/src/wp-includes/blocks/search.php
- Timestamp:
- 10/17/2022 04:22:04 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/wp-includes/blocks/search.php
r53157 r54543 288 288 $has_text_color = ! empty( $attributes['style']['color']['text'] ); 289 289 if ( $has_text_color ) { 290 $button_styles[] = sprintf( 'color: %s;', esc_attr( $attributes['style']['color']['text'] ));290 $button_styles[] = sprintf( 'color: %s;', $attributes['style']['color']['text'] ); 291 291 } 292 292 293 293 $has_background_color = ! empty( $attributes['style']['color']['background'] ); 294 294 if ( $has_background_color ) { 295 $button_styles[] = sprintf( 'background-color: %s;', esc_attr( $attributes['style']['color']['background'] ));295 $button_styles[] = sprintf( 'background-color: %s;', $attributes['style']['color']['background'] ); 296 296 } 297 297 … … 302 302 303 303 return array( 304 'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $input_styles) ) ) : '',305 'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $button_styles) ) ) : '',306 'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $wrapper_styles) ) ) : '',304 'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $input_styles ) ) ) ) : '', 305 'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $button_styles ) ) ) ) : '', 306 'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $wrapper_styles ) ) ) ) : '', 307 307 ); 308 308 }
Note: See TracChangeset
for help on using the changeset viewer.