[wp-trac] [WordPress Trac] #28053: Fields with same name added to new media modal using 'attachment_fields_to_edit' do not pass as an array when saving.
WordPress Trac
noreply at wordpress.org
Sun Sep 11 04:08:40 UTC 2016
#28053: Fields with same name added to new media modal using
'attachment_fields_to_edit' do not pass as an array when saving.
-------------------------------------+-------------------------------------
Reporter: husobj | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.5
Severity: normal | Resolution:
Keywords: reporter-feedback has- | Focuses: javascript,
patch | administration
-------------------------------------+-------------------------------------
Comment (by LindsayBSC):
It works for any data sent as an array so it would completely depends on
how you collect your form values. If you are using select boxes then are
you using a selectbox javascript plugin for this?
Replying to [comment:16 drosendo]:
> Replying to [comment:15 LindsayBSC]:
>
> > I was asking why you felt the patch needed rewriting - which, even
though you said you didn't want to discuss why, you actually did explain.
> >
> > So you feel your patch is more readable than the provided previous
patch? I am asking for my own reference to understand if/when/how my code
could be improved.
>
> Hi,
>
> Actually I now recall why I did my patch, I believe your patch doesn't
include multiple select fields, and only handles checkboxes.
> Am I incorrect?
>
> Thanks,
> David
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28053#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list