@@ -46,7 +46,7 @@ |
||
| 46 | 46 | * |
| 47 | 47 | * @static |
| 48 | 48 | * @access public |
| 49 | - * @param boolean|integer|string|null $value The checkbox value. |
|
| 49 | + * @param boolean|string $value The checkbox value. |
|
| 50 | 50 | * @return bool |
| 51 | 51 | */ |
| 52 | 52 | public static function sanitize( $value = null ) { |
@@ -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 . '")'; |