diff --git a/php/class-export.php b/php/class-export.php index fa6d3408..31644b0a 100644 --- a/php/class-export.php +++ b/php/class-export.php @@ -274,7 +274,7 @@ public function do_export() { } elseif ( 'php' === $this->format ) { - echo ' $this->is_network ? __( 'Network Activate', 'code-snippets' ) : __( 'Activate', 'code-snippets' ), 'deactivate-selected' => $this->is_network ? __( 'Network Deactivate', 'code-snippets' ) : __( 'Deactivate', 'code-snippets' ), + 'download-selected' => __( 'Download', 'code-snippets' ), 'export-selected' => __( 'Export', 'code-snippets' ), 'delete-selected' => __( 'Delete', 'code-snippets' ), - 'download-selected' => __( 'Download', 'code-snippets' ), ); return apply_filters( 'code_snippets/list_table/bulk_actions', $actions ); } diff --git a/php/views/edit.php b/php/views/edit.php index f3123cfb..80efb880 100644 --- a/php/views/edit.php +++ b/php/views/edit.php @@ -111,16 +111,16 @@ if ( 0 !== $snippet->id ) { - /* Export button */ - - submit_button( __( 'Export', 'code-snippets' ), 'secondary', 'export_snippet', false ); - /* Download button */ if ( apply_filters( 'code_snippets/enable_downloads', true ) ) { submit_button( __( 'Download', 'code-snippets' ), 'secondary', 'download_snippet', false ); } + /* Export button */ + + submit_button( __( 'Export', 'code-snippets' ), 'secondary', 'export_snippet', false ); + /* Delete button */ $confirm_delete_js = esc_js(