Skip to content

Commit 633a99a

Browse files
committed
Revert "Fix broken call to export_snippet() function"
This reverts commit 671cc16.
1 parent b3ad3fa commit 633a99a

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

includes/edit/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function code_snippets_load_single_menu() {
157157

158158
/* Export the snippet if the button was clicked */
159159
elseif ( isset( $_POST['snippet_id'], $_POST['export_snippet'] ) ) {
160-
export_snippets( $_POST['snippet_id'] );
160+
export_snippet( $_POST['snippet_id'] );
161161
}
162162
}
163163

includes/manage/class-list-table.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,6 @@ function column_default( $snippet, $column_name ) {
9898
}
9999
}
100100

101-
/**
102-
* Build the priority selector
103-
* @param object $snippet The snippet object being used for the current row
104-
* @return string The content of the column to output
105-
*/
106-
function column_priority( $snippet ) {
107-
return sprintf( '<input type="number" value="%1$d" min="-50" max="99">', 10 );
108-
}
109-
110101
/**
111102
* Builds content of the snippet name column
112103
* @param object $snippet The snippet object being used for the current row
@@ -229,12 +220,11 @@ function column_tags( $snippet ) {
229220
*/
230221
function get_columns() {
231222
$columns = array(
232-
'cb' => '<input type="checkbox" />',
233-
'name' => __( 'Name', 'code-snippets' ),
234-
'id' => __( 'ID', 'code-snippets' ),
223+
'cb' => '<input type="checkbox" />',
224+
'name' => __( 'Name', 'code-snippets' ),
225+
'id' => __( 'ID', 'code-snippets' ),
235226
'description' => __( 'Description', 'code-snippets' ),
236-
'tags' => __( 'Tags', 'code-snippets' ),
237-
'priority' => __( 'Priority', 'code-snippets' ),
227+
'tags' => __( 'Tags', 'code-snippets' ),
238228
);
239229
return apply_filters( 'code_snippets/list_table/columns', $columns );
240230
}
@@ -247,7 +237,6 @@ function get_sortable_columns() {
247237
$sortable_columns = array(
248238
'id' => array( 'id', true ),
249239
'name' => array( 'name', false ),
250-
'priority' => array( 'priority', true ),
251240
);
252241
return apply_filters( 'code_snippets/list_table/sortable_columns', $sortable_columns );
253242
}
@@ -467,7 +456,7 @@ function current_action() {
467456
* @uses activate_snippet() To activate snippets
468457
* @uses deactivate_snippet() To deactivate snippets
469458
* @uses delete_snippet() To delete snippets
470-
* @uses export_snippets() To export selected snippets
459+
* @uses export_snippet() To export selected snippets
471460
* @uses wp_redirect() To pass the results to the current page
472461
* @uses add_query_arg() To append the results to the current URI
473462
*/

0 commit comments

Comments
 (0)