@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
| 30 | 30 | |
| 31 | 31 | // It makes no sense to use this as the link. |
| 32 | - unset( $field_options['show_as_link'] ); |
|
| 32 | + unset( $field_options[ 'show_as_link' ] ); |
|
| 33 | 33 | |
| 34 | - if( 'edit' === $context ) { |
|
| 34 | + if ( 'edit' === $context ) { |
|
| 35 | 35 | return $field_options; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -39,12 +39,12 @@ discard block |
||
| 39 | 39 | * Set default to opening in new links for back-compatibility with Version 1.5.1 |
| 40 | 40 | * @link https://github.com/gravityview/GravityView/commit/e12e76e2d032754227728d41e65103042d4f75ec |
| 41 | 41 | */ |
| 42 | - $field_options['new_window']['value'] = true; |
|
| 42 | + $field_options[ 'new_window' ][ 'value' ] = true; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @since 1.8 |
| 46 | 46 | */ |
| 47 | - $field_options['anchor_text'] = array( |
|
| 47 | + $field_options[ 'anchor_text' ] = array( |
|
| 48 | 48 | 'type' => 'text', |
| 49 | 49 | 'label' => __( 'Link Text:', 'gravityview' ), |
| 50 | 50 | 'desc' => __( 'Define custom link text. Leave blank to display the URL', 'gravityview' ), |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | 'merge_tags' => 'force', |
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | - $field_options['truncatelink'] = array( |
|
| 55 | + $field_options[ 'truncatelink' ] = array( |
|
| 56 | 56 | 'type' => 'checkbox', |
| 57 | 57 | 'value' => true, |
| 58 | 58 | 'label' => __( 'Shorten Link Display', 'gravityview' ), |