core/helpers/EEH_Activation.helper.php 1 location
|
@@ 563-569 (lines=7) @@
|
| 560 |
|
return $critical_page; |
| 561 |
|
} |
| 562 |
|
// get newly created post's details |
| 563 |
|
if (! $critical_page['post'] = get_post($post_id)) { |
| 564 |
|
$msg = sprintf( |
| 565 |
|
__('The Event Espresso critical page entitled "%s" could not be retrieved.', 'event_espresso'), |
| 566 |
|
$critical_page['name'] |
| 567 |
|
); |
| 568 |
|
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
| 569 |
|
} |
| 570 |
|
|
| 571 |
|
return $critical_page; |
| 572 |
|
} |
core/libraries/messages/EE_Message_To_Generate.php 1 location
|
@@ 296-311 (lines=16) @@
|
| 293 |
|
public static function verify_and_retrieve_class_name_for_data_handler_reference($data_handler_reference) |
| 294 |
|
{ |
| 295 |
|
$class_name = 'EE_Messages_' . $data_handler_reference . '_incoming_data'; |
| 296 |
|
if (! class_exists($class_name)) { |
| 297 |
|
EE_Error::add_error( |
| 298 |
|
sprintf( |
| 299 |
|
__( |
| 300 |
|
'The included data handler reference (%s) does not match any valid, accessible, "EE_Messages_incoming_data" classes. Looking for %s.', |
| 301 |
|
'event_espresso' |
| 302 |
|
), |
| 303 |
|
$data_handler_reference, |
| 304 |
|
$class_name |
| 305 |
|
), |
| 306 |
|
__FILE__, |
| 307 |
|
__FUNCTION__, |
| 308 |
|
__LINE__ |
| 309 |
|
); |
| 310 |
|
$class_name = ''; // clear out class_name so caller knows this isn't valid. |
| 311 |
|
} |
| 312 |
|
return $class_name; |
| 313 |
|
} |
| 314 |
|
} |
core/EE_Config.core.php 1 location
|
@@ 1094-1098 (lines=5) @@
|
| 1091 |
|
// load the widget class file |
| 1092 |
|
require_once($widget_path . DS . $widget_class . $widget_ext); |
| 1093 |
|
// verify that class exists |
| 1094 |
|
if (! class_exists($widget_class)) { |
| 1095 |
|
$msg = sprintf(__('The requested %s widget class does not exist.', 'event_espresso'), $widget_class); |
| 1096 |
|
EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__); |
| 1097 |
|
return; |
| 1098 |
|
} |
| 1099 |
|
register_widget($widget_class); |
| 1100 |
|
// add to array of registered widgets |
| 1101 |
|
EE_Registry::instance()->widgets->{$widget_class} = $widget_path . DS . $widget_class . $widget_ext; |
modules/single_page_checkout/reg_steps/attendee_information/EE_SPCO_Reg_Step_Attendee_Information.class.php 1 location
|
@@ 1073-1094 (lines=22) @@
|
| 1070 |
|
$input_value = $primary_registrant[ $form_input ]; |
| 1071 |
|
} |
| 1072 |
|
// now attempt to save the input data |
| 1073 |
|
if (! $this->_save_registration_form_input( |
| 1074 |
|
$registration, |
| 1075 |
|
$form_input, |
| 1076 |
|
$input_value |
| 1077 |
|
) |
| 1078 |
|
) { |
| 1079 |
|
EE_Error::add_error( |
| 1080 |
|
sprintf( |
| 1081 |
|
esc_html_x( |
| 1082 |
|
'Unable to save registration form data for the form input: "%1$s" with the submitted value: "%2$s"', |
| 1083 |
|
'Unable to save registration form data for the form input: "form input name" with the submitted value: "form input value"', |
| 1084 |
|
'event_espresso' |
| 1085 |
|
), |
| 1086 |
|
$form_input, |
| 1087 |
|
$input_value |
| 1088 |
|
), |
| 1089 |
|
__FILE__, |
| 1090 |
|
__FUNCTION__, |
| 1091 |
|
__LINE__ |
| 1092 |
|
); |
| 1093 |
|
return false; |
| 1094 |
|
} |
| 1095 |
|
} |
| 1096 |
|
} |
| 1097 |
|
} // end of foreach ( $valid_data[ $reg_url_link ] as $form_section => $form_inputs ) |
admin_pages/messages/Messages_Admin_Page.core.php 1 location
|
@@ 2877-2890 (lines=14) @@
|
| 2874 |
|
// default setup for it. |
| 2875 |
|
// @link https://events.codebasehq.com/projects/event-espresso/tickets/9465 |
| 2876 |
|
$updated = $MTP->insert($message_template_fields); |
| 2877 |
|
if (! $updated || is_wp_error($updated)) { |
| 2878 |
|
EE_Error::add_error( |
| 2879 |
|
sprintf( |
| 2880 |
|
esc_html__('%s field could not be updated.', 'event_espresso'), |
| 2881 |
|
$template_field |
| 2882 |
|
), |
| 2883 |
|
__FILE__, |
| 2884 |
|
__FUNCTION__, |
| 2885 |
|
__LINE__ |
| 2886 |
|
); |
| 2887 |
|
$success = 0; |
| 2888 |
|
} else { |
| 2889 |
|
$success = 1; |
| 2890 |
|
} |
| 2891 |
|
} |
| 2892 |
|
} |
| 2893 |
|
$action_desc = 'updated'; |