Skip to content

Commit 6454036

Browse files
committed
Rename Export_HTTP class to Export_Attachment
1 parent 5dea308 commit 6454036

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

php/admin-menus/class-edit-menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ private function process_actions() {
162162

163163
/* Export the snippet if the button was clicked */
164164
if ( isset( $_POST['export_snippet'] ) ) {
165-
$export = new Export_HTTP( $snippet_id );
165+
$export = new Export_Attachment( $snippet_id );
166166
$export->download_snippets_json();
167167
}
168168

169169
/* Download the snippet if the button was clicked */
170170
if ( isset( $_POST['download_snippet'] ) ) {
171-
$export = new Export_HTTP( $snippet_id );
171+
$export = new Export_Attachment( $snippet_id );
172172
$export->download_snippets_code();
173173
}
174174

php/class-list-table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,12 +725,12 @@ private function perform_action( $id, $action, $scope = '' ) {
725725
return 'deleted';
726726

727727
case 'export':
728-
$export = new Export_HTTP( $id );
728+
$export = new Export_Attachment( $id );
729729
$export->download_snippets_json();
730730
break;
731731

732732
case 'download':
733-
$export = new Export_HTTP( $id );
733+
$export = new Export_Attachment( $id );
734734
$export->download_snippets_code();
735735
break;
736736
}
@@ -826,12 +826,12 @@ public function process_requested_actions() {
826826
break;
827827

828828
case 'export-selected':
829-
$export = new Export_HTTP( $ids );
829+
$export = new Export_Attachment( $ids );
830830
$export->download_snippets_json();
831831
break;
832832

833833
case 'download-selected':
834-
$export = new Export_HTTP( $ids );
834+
$export = new Export_Attachment( $ids );
835835
$export->download_snippets_code();
836836
break;
837837

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @package Code_Snippets
99
*/
10-
class Export_HTTP extends Export {
10+
class Export_Attachment extends Export {
1111

1212
/**
1313
* Set up the current page to act like a downloadable file instead of being shown in the browser

0 commit comments

Comments
 (0)