- Timestamp:
- 07/14/2015 05:46:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-links-list-table.php
r33204 r33270 311 311 */ 312 312 protected function handle_row_actions( $link, $column_name, $primary ) { 313 if ( $primary === $column_name ) { 314 $edit_link = get_edit_bookmark_link( $link ); 315 316 $actions = array(); 317 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 318 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm( '" . esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name)) . "' ) ) { return true;}return false;\">" . __('Delete') . "</a>"; 319 return $this->row_actions($actions); 313 if ( $primary !== $column_name ) { 314 return ''; 320 315 } 316 317 $edit_link = get_edit_bookmark_link( $link ); 318 319 $actions = array(); 320 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 321 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm( '" . esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name)) . "' ) ) { return true;}return false;\">" . __('Delete') . "</a>"; 322 return $this->row_actions( $actions ); 321 323 } 322 324 }
Note: See TracChangeset
for help on using the changeset viewer.