jeremyHixon / RationalOptionPages

PHP Class for building Option Pages in WordPress
MIT License
207 stars 73 forks source link

Textarea missing cols and wrap #21

Closed jdato closed 3 years ago

jdato commented 4 years ago

That should be the fix for it.

Line 491


printf(
    '<textarea %s id="%s" name="%s" %s %s %s %s title="%s">%s</textarea>%s', <-----------
    !empty( $field['class'] ) ? "class='{$field['class']}'" : '', 
    $field['id'],
    "{$page_key}[{$field['id']}]",
    !empty( $field['placeholder'] ) ? "placeholder='{$field['placeholder']}'" : '',
    !empty( $field['rows'] ) ? "rows='{$field['rows']}'" : '',
    !empty( $field['cols'] ) ? "cols='{$field['cols']}'" : '', // cols       <-----------
    !empty( $field['wrap'] ) ? "wrap='{$field['wrap']}'" : '', // wrap     <-----------
    $field['title_attr'],
    $field['value'],    
    !empty( $field['text'] ) ? "<p class='help'>{$field['text']}</p>" : ''
);
break;```
jeremyHixon commented 3 years ago

Added in 89c78c5cd1e87c03167243cf92483849dcaf3075