Skip to content

Commit

Permalink
fixes #1701
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Dec 13, 2017
1 parent ea06565 commit 2ba9848
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controls/php/class-kirki-control-background.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function content_template() {
<h4><?php esc_attr_e( 'Background Repeat', 'kirki' ); ?></h4>
<select {{{ data.inputAttrs }}}>
<option value="no-repeat"<# if ( 'no-repeat' === data.value['background-repeat'] ) { #> selected <# } #>><?php esc_attr_e( 'No Repeat', 'kirki' ); ?></option>
<option value="repeat-all"<# if ( 'repeat-all' === data.value['background-repeat'] ) { #> selected <# } #>><?php esc_attr_e( 'Repeat All', 'kirki' ); ?></option>
<option value="repeat"<# if ( 'repeat' === data.value['background-repeat'] ) { #> selected <# } #>><?php esc_attr_e( 'Repeat All', 'kirki' ); ?></option>
<option value="repeat-x"<# if ( 'repeat-x' === data.value['background-repeat'] ) { #> selected <# } #>><?php esc_attr_e( 'Repeat Horizontally', 'kirki' ); ?></option>
<option value="repeat-y"<# if ( 'repeat-y' === data.value['background-repeat'] ) { #> selected <# } #>><?php esc_attr_e( 'Repeat Vertically', 'kirki' ); ?></option>
</select>
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/controls/background.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Kirki::add_field( 'theme_config_id', array(
'default' => array(
'background-color' => 'rgba(20,20,20,.8)',
'background-image' => '',
'background-repeat' => 'repeat-all',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
Expand Down
2 changes: 1 addition & 1 deletion example.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function my_config_kirki_add_field( $args ) {
'default' => array(
'background-color' => 'rgba(20,20,20,.8)',
'background-image' => '',
'background-repeat' => 'repeat-all',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ If you want to integrate Kirki in your theme or plugin, please read the instruct

== Changelog ==

= 3.0.20 =

* Fix: Use `repeat` instead of `repeat-all` in background controls.

= 3.0.19 =

December 8 2017, dev time: 20 minutes.
Expand Down

0 comments on commit 2ba9848

Please sign in to comment.