Skip to content

Commit

Permalink
Reorder action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed Jan 18, 2018
1 parent cccafa0 commit a03d3f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion php/class-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function do_export() {
}

elseif ( 'php' === $this->format ) {
echo '<?php';
echo "<?php\n";
}

/* Process the snippet items */
Expand Down
2 changes: 1 addition & 1 deletion php/class-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ public function get_bulk_actions() {
$actions = array(
'activate-selected' => $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 );
}
Expand Down
8 changes: 4 additions & 4 deletions php/views/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a03d3f2

Please sign in to comment.