@@ 1040-1042 (lines=3) @@ | ||
1037 | ) |
|
1038 | ); |
|
1039 | } |
|
1040 | } elseif ( empty( $subdir_name ) ) { |
|
1041 | return new WP_Error( |
|
1042 | 'packaged_wrong', |
|
1043 | 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' ), |
|
1044 | array( |
|
1045 | 'found' => $subdir_name, |
|
@@ 1030-1032 (lines=3) @@ | ||
1027 | ||
1028 | if ( true === $GLOBALS['wp_filesystem']->move( $from_path, $to_path ) ) { |
|
1029 | return trailingslashit( $to_path ); |
|
1030 | } else { |
|
1031 | return new WP_Error( |
|
1032 | 'rename_failed', |
|
1033 | 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' ), |
|
1034 | array( |
|
1035 | 'found' => $subdir_name, |