@@ 1035-1037 (lines=3) @@ | ||
1032 | ||
1033 | if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) { |
|
1034 | return trailingslashit( $to_path ); |
|
1035 | } else { |
|
1036 | return new WP_Error( |
|
1037 | 'rename_failed', |
|
1038 | esc_html__( 'The remote plugin package does not contain a folder with the desired slug and renaming did not work.', 'tgmpa' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'tgmpa' ), |
|
1039 | array( |
|
1040 | 'found' => $subdir_name, |
|
@@ 1045-1047 (lines=3) @@ | ||
1042 | ) |
|
1043 | ); |
|
1044 | } |
|
1045 | } elseif ( empty( $subdir_name ) ) { |
|
1046 | return new WP_Error( |
|
1047 | 'packaged_wrong', |
|
1048 | esc_html__( 'The remote plugin package consists of more than one file, but the files are not packaged in a folder.', 'tgmpa' ) . ' ' . esc_html__( 'Please contact the plugin provider and ask them to package their plugin according to the WordPress guidelines.', 'tgmpa' ), |
|
1049 | array( |
|
1050 | 'found' => $subdir_name, |