- fixed asc attr for wp_editor field (issue #318);

This commit is contained in:
nikitozzzzzzz
2017-10-13 11:41:47 +03:00
parent 0a556b3895
commit e8c0aa7536
+1 -1
View File
@@ -81,7 +81,7 @@ if ( ! class_exists( 'Admin_Forms' ) ) {
$data['value'] = wp_unslash( $data['value'] );
/*for multi_text*/
if ( !is_array( $data['value'] ) ) {
if ( ! is_array( $data['value'] ) && $data['type'] != 'wp_editor' ) {
$data['value'] = esc_attr( $data['value'] );
}
}