| @@ -10,11 +10,11 @@ | ||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @since 2.04 |
| 13 | 13 | * |
| 14 | - * @var stdClass | |
| 14 | + * @var stdClass|null | |
| 15 | 15 | */ |
| 16 | - protected $field = null; | |
| 16 | + protected $field; | |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * @since 4.03 |
| 20 | 20 | * |
| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | $this->entry = $entry; |
| 58 | 58 | $this->entry_id = $entry->id; |
| 59 | - $field = apply_filters( 'frm_field_value_object', $field ); | |
| 59 | + $field = apply_filters( 'frm_field_value_object', $field ); | |
| 60 | 60 | $this->field = $field; |
| 61 | 61 | $this->init_saved_value( $entry ); |
| 62 | 62 | } |
| 63 | 63 | |
| @@ -102,9 +102,10 @@ | ||
| 102 | 102 | * @return void |
| 103 | 103 | */ |
| 104 | 104 | public function prepare_displayed_value( $atts = array() ) { |
| 105 | 105 | $this->displayed_value = $this->saved_value; |
| 106 | - unset( $atts['class'] ); // This class shouldn't affect values. | |
| 106 | + // This class shouldn't affect values. | |
| 107 | + unset( $atts['class'] ); | |
| 107 | 108 | $this->generate_displayed_value_for_field_type( $atts ); |
| 108 | 109 | $this->filter_displayed_value( $atts ); |
| 109 | 110 | } |
| 110 | 111 | |
| @@ -250,9 +251,9 @@ | ||
| 250 | 251 | 'field' => $this->field, |
| 251 | 252 | ) |
| 252 | 253 | ); |
| 253 | 254 | } |
| 254 | - } | |
| 255 | + }//end if | |
| 255 | 256 | |
| 256 | 257 | // frm_display_{fieldtype}_value_custom hook |
| 257 | 258 | $this->displayed_value = apply_filters( |
| 258 | 259 | 'frm_display_' . $this->field->type . '_value_custom', |