@@ -28,7 +28,7 @@ |
||
| 28 | 28 | return; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - if( preg_match('/^\d+$/', $this->value) ){ |
|
| 31 | + if( preg_match('/^\d+$/', $this->value) ) { |
|
| 32 | 32 | $this->value = 'url("' . wp_get_attachment_url( $this->value ) . '")'; |
| 33 | 33 | } else { |
| 34 | 34 | $this->value = 'url("' . $this->value . '")'; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | wp_enqueue_script( 'kirki-background', trailingslashit( Kirki::$url ) . 'controls/background/background.js', array( 'jquery', 'wp-color-picker-alpha' ) ); |
| 39 | 39 | wp_enqueue_style( 'kirki-background', trailingslashit( Kirki::$url ) . 'controls/background/background.css', null ); |
| 40 | - } |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Refresh the parameters passed to the JavaScript via JSON. |