@@ 697-703 (lines=7) @@ | ||
694 | EE_Error::add_success( __( 'The State was added successfully.', 'event_espresso' ) ); |
|
695 | } |
|
696 | ||
697 | if ( defined( 'DOING_AJAX' )) { |
|
698 | $notices = EE_Error::get_notices( FALSE, FALSE, FALSE ); |
|
699 | echo json_encode( array_merge( $notices, array( 'return_data' => $CNT_ISO ) ) ); |
|
700 | die(); |
|
701 | } else { |
|
702 | $this->_redirect_after_action( $success, 'State', 'added', array( 'action' => 'country_settings' ) ); |
|
703 | } |
|
704 | } |
|
705 | ||
706 | ||
@@ 727-734 (lines=8) @@ | ||
724 | do_action( 'AHEE__General_Settings_Admin_Page__delete_state__state_deleted', $CNT_ISO, $STA_ID, array( 'STA_abbrev' => $STA_abbrev )); |
|
725 | EE_Error::add_success( __( 'The State was deleted successfully.', 'event_espresso' )); |
|
726 | } |
|
727 | if ( defined( 'DOING_AJAX' )) { |
|
728 | $notices = EE_Error::get_notices( FALSE, FALSE ); |
|
729 | $notices['return_data'] = TRUE; |
|
730 | echo json_encode( $notices ); |
|
731 | die(); |
|
732 | } else { |
|
733 | $this->_redirect_after_action( $success, 'State', 'deleted', array( 'action' => 'country_settings' ) ); |
|
734 | } |
|
735 | } |
|
736 | ||
737 |