Undefined index: error_text
-
Hello
I’m getting the following error in edit media when I go to update an image.
Notice: Undefined index: error_text in ../wp-content/plugins/foogallery/includes/admin/class-attachment-fields.php on line 172
Looks like you could do with an isset() on the if statement
if ( strlen( trim( $attachment[$field] ) ) == 0 && isset( $values[‘error_text’] ) )
$post[‘errors’][$field][‘errors’][] = __( $values[‘error_text’] );
- The topic ‘Undefined index: error_text’ is closed to new replies.