@@ 671-675 (lines=5) @@ | ||
668 | 'event_espresso'), $question_ID, $wpdb->last_error), __FILE__, __FUNCTION__, __LINE__); |
|
669 | $this->_redirect_after_action(false, '', '', array('action' => 'default'), false); |
|
670 | } |
|
671 | } else { |
|
672 | EE_Error::add_error(sprintf(esc_html__('Could not duplicate question with ID %d because it didn\'t exist!', |
|
673 | 'event_espresso'), $question_ID), __FILE__, __FUNCTION__, __LINE__); |
|
674 | $this->_redirect_after_action(false, '', '', array('action' => 'default'), false); |
|
675 | } |
|
676 | } |
|
677 | ||
678 |
@@ 2631-2643 (lines=13) @@ | ||
2628 | protected function _trash_or_restore_registrations($trash = true) |
|
2629 | { |
|
2630 | //if empty _REG_ID then get out because there's nothing to do |
|
2631 | if (empty($this->_req_data['_REG_ID'])) { |
|
2632 | EE_Error::add_error( |
|
2633 | sprintf( |
|
2634 | esc_html__( |
|
2635 | 'In order to %1$s registrations you must select which ones you wish to %1$s by clicking the checkboxes.', |
|
2636 | 'event_espresso' |
|
2637 | ), |
|
2638 | $trash ? 'trash' : 'restore' |
|
2639 | ), |
|
2640 | __FILE__, __LINE__, __FUNCTION__ |
|
2641 | ); |
|
2642 | $this->_redirect_after_action(false, '', '', array(), true); |
|
2643 | } |
|
2644 | $success = 0; |
|
2645 | $overwrite_msgs = false; |
|
2646 | //Checkboxes |