[wp-trac] [WordPress Trac] #19643: Allow array for $extra_fields in request_filesystem_credentials

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 02:01:54 UTC 2012


#19643: Allow array for $extra_fields in request_filesystem_credentials
-------------------------------------------------+-------------------------
 Reporter:  griffinjt                            |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Filesystem                           |  Review
 Severity:  normal                               |     Version:  3.3
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by griffinjt):

 Ok, here's my feeble attempt at providing a solution that will catch any
 type of value submitted via $extra_fields and parse it correctly within
 the input field. Because my knowledge of recursion is shoddy at best, I
 came up with this function instead.

 All it does is sanitize and store all the data passed via $extra_fields
 into an array and then builds a query string based on that data. Then I
 just run through the query string and make input fields.

 It works in all my testing. I don't know if this is the -best- method, but
 it is a -working- method that can at least get the ball rolling so that no
 data is lost when attempting to pass it once the user hits "Proceed".

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19643#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list