Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31616, comment 10


Ignore:
Timestamp:
03/13/2015 08:33:36 PM (10 years ago)
Author:
jipmoors
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31616, comment 10

    initial v1  
    55{{{
    66$type = get_filesystem_method();
    7 $credentials = get_filesystem_credentials( $some_url, $type );
     7$credentials = get_filesystem_credentials( $form_post, $type );
    88
    99// check if the credentials are sufficient for specified type:
    1010if ( ! usable_filesystem_credentials( $credentials, $type ) ) {
    1111  // more input is needed
    12   request_filesystem_credentials_form( $some_url, $credentials, $type, $error );
     12  request_filesystem_credentials_form( $form_post, $credentials, $type, $error );
    1313} else {
    1414  // use $credentials in any way you like; spit it out to javascript or modify files
     
    1616}}}
    1717
    18 |||| $some_url is 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 ||||
    1919
    2020* Type: 'direct'