@@ 2978-2983 (lines=6) @@ | ||
2975 | } |
|
2976 | ||
2977 | // Now we have some credentials, setup WP_Filesystem. |
|
2978 | if ( ! WP_Filesystem( $creds ) ) { |
|
2979 | // Our credentials were no good, ask the user for them again. |
|
2980 | request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, $fields ); |
|
2981 | ||
2982 | return true; |
|
2983 | } |
|
2984 | ||
2985 | /* If we arrive here, we have the filesystem */ |
|
2986 | ||
@@ 851-854 (lines=4) @@ | ||
848 | return true; |
|
849 | } |
|
850 | ||
851 | if ( ! WP_Filesystem( $creds ) ) { |
|
852 | request_filesystem_credentials( esc_url_raw( $url ), $method, true, false, array() ); // Setup WP_Filesystem. |
|
853 | return true; |
|
854 | } |
|
855 | ||
856 | /* If we arrive here, we have the filesystem. */ |
|
857 |