@@ 95-97 (lines=3) @@ | ||
92 | $type = $this->get_field_type( $field ); |
|
93 | ||
94 | // Look for a validate_FIELDID_field method for special handling |
|
95 | if ( method_exists( $this, 'validate_' . $key . '_field' ) ) { |
|
96 | return $this->{'validate_' . $key . '_field'}( $key ); |
|
97 | } |
|
98 | ||
99 | // Look for a validate_FIELDTYPE_field method |
|
100 | if ( method_exists( $this, 'validate_' . $type . '_field' ) ) { |
|
@@ 100-102 (lines=3) @@ | ||
97 | } |
|
98 | ||
99 | // Look for a validate_FIELDTYPE_field method |
|
100 | if ( method_exists( $this, 'validate_' . $type . '_field' ) ) { |
|
101 | return $this->{'validate_' . $type . '_field'}( $key ); |
|
102 | } |
|
103 | ||
104 | // Fallback to text |
|
105 | return $this->validate_text_field( $key ); |