Changes between Initial Version and Version 1 of Ticket #31616, comment 10
- Timestamp:
- 03/13/2015 08:33:36 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31616, comment 10
initial v1 5 5 {{{ 6 6 $type = get_filesystem_method(); 7 $credentials = get_filesystem_credentials( $ some_url, $type );7 $credentials = get_filesystem_credentials( $form_post, $type ); 8 8 9 9 // check if the credentials are sufficient for specified type: 10 10 if ( ! usable_filesystem_credentials( $credentials, $type ) ) { 11 11 // more input is needed 12 request_filesystem_credentials_form( $ some_url, $credentials, $type, $error );12 request_filesystem_credentials_form( $form_post, $credentials, $type, $error ); 13 13 } else { 14 14 // use $credentials in any way you like; spit it out to javascript or modify files … … 16 16 }}} 17 17 18 |||| $ some_urlis needed to keep legacy code running, the filter that allows for credential-injection by plugins might need this value for checking ||||18 |||| $form_post is needed to keep legacy code running, the filter that allows for credential-injection by plugins might need this value for checking |||| 19 19 20 20 * Type: 'direct'