From a03d3f27b81536343bdffa1fed1c79bf15c47fa6 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Thu, 18 Jan 2018 15:46:12 +1100 Subject: [PATCH] Reorder action buttons --- php/class-export.php | 2 +- php/class-list-table.php | 2 +- php/views/edit.php | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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(