本文整理汇总了PHP中EE_Error::get_notices方法的典型用法代码示例。如果您正苦于以下问题:PHP EE_Error::get_notices方法的具体用法?PHP EE_Error::get_notices怎么用?PHP EE_Error::get_notices使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EE_Error
的用法示例。
在下文中一共展示了EE_Error::get_notices方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _migration_step
function _migration_step($num_items = 50)
{
//get teh calendar's config
if (isset(EE_Config::instance()->addons->EE_Calendar) && EE_Config::instance()->addons->EE_Calendar instanceof EE_Calendar_Config) {
$c = EE_Config::instance()->addons->EE_Calendar;
} else {
$c = new EE_Calendar_Config();
EE_Config::instance()->addons->EE_Calendar = $c;
}
$items_actually_migrated = 0;
$old_org_options = get_option('espresso_calendar_options');
//the option's name differened depending on the version of the calendar
if (!$old_org_options) {
$old_org_options = get_option('espresso_calendar_settings');
}
foreach ($this->_org_options_we_know_how_to_migrate as $option_name) {
//only bother migrating if there's a setting to migrate. Otherwise we'll just use the default
if (isset($old_org_options[$option_name])) {
$this->_handle_org_option($option_name, $old_org_options[$option_name], $c);
}
$items_actually_migrated++;
}
// d($c);
$success = EE_Config::instance()->update_config('addons', 'EE_Calendar', $c);
if (!$success) {
$this->add_error(EE_Error::get_notices());
}
// d($success);
// d($c);
// die;
if ($this->count_records_migrated() + $items_actually_migrated >= $this->count_records_to_migrate()) {
$this->set_completed();
}
return $items_actually_migrated;
}
示例2: _migration_step
/**
* _migration_step
*
* @access protected
* @param int $num_items
* @throws EE_Error
* @return int number of items ACTUALLY migrated
*/
protected function _migration_step($num_items = 1)
{
// if this isn't set then something is really wrong
if (!EE_Config::instance()->core instanceof EE_Core_Config) {
throw new EE_Error(__('It appears the Event Espresso Core Configuration is not setup correctly.', 'event_espresso'));
}
// name of the WP Posts Page
$posts_page = $this->_get_page_for_posts();
// make sure critical pages get removed
$this->_update_post_shortcodes($posts_page);
// save updated config, but don't add errors
if (!EE_Config::instance()->update_espresso_config(FALSE, FALSE)) {
EE_Error::add_error(__('The Event Espresso Configuration Settings were not updated when attempting to save the "critical page post shortcodes".', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
// check for errors
$notices = EE_Error::get_notices(FALSE);
// any errors to report?
if (isset($notices['errors'])) {
foreach ($notices as $value) {
$this->add_error($value);
}
}
//regardless of whether it worked or not, we ought to continue the migration
$this->set_completed();
return 1;
}
开发者ID:DavidSteinbauer,项目名称:event-espresso-core,代码行数:34,代码来源:EE_DMS_4_3_0_critical_page_shortcode_tracking.dmsstage.php
示例3: _load_registry
/**
* _load_registry
*
* @access private
* @return void
*/
private function _load_registry()
{
if (is_readable(EE_CORE . 'EE_Registry.core.php')) {
require_once EE_CORE . 'EE_Registry.core.php';
} else {
$msg = __('The EE_Registry core class could not be loaded.', 'event_espresso');
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
wp_die(EE_Error::get_notices());
}
}
示例4: update_debug_logging_options
/**
* update_debug_logging_options
*
* @param array $admin_options
* @return array
*/
public function update_debug_logging_options($admin_options = array())
{
$use_full_logging = isset($this->_req_data['use_full_logging']) ? (bool) absint($this->_req_data['use_full_logging']) : $admin_options->use_full_logging;
$admin_options->use_full_logging = $use_full_logging;
if ($use_full_logging === FALSE) {
EE_Error::get_notices(FALSE);
EE_Error::reset_notices();
}
$admin_options->use_remote_logging = isset($this->_req_data['use_remote_logging']) ? absint($this->_req_data['use_remote_logging']) : $admin_options->use_remote_logging;
$admin_options->remote_logging_url = isset($this->_req_data['remote_logging_url']) ? esc_url_raw($this->_req_data['remote_logging_url']) : $admin_options->remote_logging_url;
return $admin_options;
}
开发者ID:DavidSteinbauer,项目名称:event-espresso-core,代码行数:18,代码来源:Extend_General_Settings_Admin_Page.core.php
示例5: update_event_single_order
/**
* update_event_single_order
*
* @access public
* @return void
*/
public static function update_event_single_order()
{
$config_saved = false;
$template_parts = sanitize_text_field($_POST['elements']);
if (!empty($template_parts)) {
$template_parts = explode(',', trim($template_parts, ','));
foreach ($template_parts as $key => $template_part) {
$template_part = "display_order_{$template_part}";
$priority = $key * 10 + 100;
EE_Registry::instance()->CFG->template_settings->EED_Event_Single->{$template_part} = $priority;
do_action("AHEE__EED_Event_Single__update_event_single_order__{$template_part}", $priority);
}
$config_saved = EE_Registry::instance()->CFG->update_espresso_config(false, false);
}
if ($config_saved) {
EE_Error::add_success(__('Display Order has been successfully updated.', 'event_espresso'));
} else {
EE_Error::add_error(__('Display Order was not updated.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
echo wp_json_encode(EE_Error::get_notices(false));
exit;
}
示例6: delete_payment
/**
* delete_payment
* delete a payment or refund made towards a transaction
*
* @access public
* @return void
*/
public function delete_payment()
{
$json_response_data = array('return_data' => FALSE);
$PAY_ID = isset($this->_req_data['delete_txn_admin_payment'], $this->_req_data['delete_txn_admin_payment']['PAY_ID']) ? absint($this->_req_data['delete_txn_admin_payment']['PAY_ID']) : 0;
if ($PAY_ID) {
$delete_txn_reg_status_change = isset($this->_req_data['delete_txn_reg_status_change']) ? $this->_req_data['delete_txn_reg_status_change'] : false;
$payment = EEM_Payment::instance()->get_one_by_ID($PAY_ID);
if ($payment instanceof EE_Payment) {
/** @type EE_Transaction_Payments $transaction_payments */
$transaction_payments = EE_Registry::instance()->load_class('Transaction_Payments');
if ($transaction_payments->delete_payment_and_update_transaction($payment)) {
EE_Error::add_success(__('The Payment was successfully deleted.', 'event_espresso'));
$json_response_data['return_data'] = array('PAY_ID' => $PAY_ID, 'amount' => $payment->amount(), 'total_paid' => $payment->transaction()->paid(), 'txn_status' => $payment->transaction()->status_ID(), 'pay_status' => $payment->STS_ID(), 'delete_txn_reg_status_change' => $delete_txn_reg_status_change);
if ($delete_txn_reg_status_change) {
$this->_req_data['txn_reg_status_change'] = $delete_txn_reg_status_change;
//MAKE sure we also add the delete_txn_req_status_change to the
//$_REQUEST global because that's how messages will be looking
//for it.
$_REQUEST['txn_reg_status_change'] = $delete_txn_reg_status_change;
$this->_process_registration_status_change($payment->transaction());
}
}
} else {
EE_Error::add_error(__('Valid Payment data could not be retrieved from the database.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
} else {
$msg = __('A valid Payment ID was not received, therefore payment form data could not be loaded.', 'event_espresso');
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
}
$notices = EE_Error::get_notices(FALSE, FALSE, FALSE);
echo json_encode(array_merge($json_response_data, $notices));
die;
}
示例7: _migration_step
function _migration_step($num_items = 50)
{
$items_actually_migrated = 0;
$old_org_options = get_option('events_organization_settings');
foreach ($this->_org_options_we_know_how_to_migrate as $option_name) {
//only bother migrating if there's a setting to migrate. Otherwise we'll just use the default
if (isset($old_org_options[$option_name])) {
$this->_handle_org_option($option_name, $old_org_options[$option_name]);
}
if ($option_name == 'surcharge') {
$this->_insert_new_global_surcharge_price($old_org_options);
}
$items_actually_migrated++;
}
$success = EE_Config::instance()->update_espresso_config(FALSE, TRUE);
if (!$success) {
$this->add_error(sprintf(__('Could not save EE Config during org options stage. Reason: %s', 'event_espresso'), EE_Error::get_notices(FALSE)));
EE_Error::overwrite_errors();
}
EE_Network_Config::instance()->update_config(FALSE, FALSE);
if ($this->count_records_migrated() + $items_actually_migrated >= $this->count_records_to_migrate()) {
//we may have added new pages and this might be necessary
flush_rewrite_rules();
$this->set_completed();
}
return $items_actually_migrated;
}
示例8: __toString
/**
* __toString
*
* allows you to simply echo or print an EE_SPCO_JSON_Response object to produce a JSON encoded string
* ie: $json_response = new EE_SPCO_JSON_Response();
* echo $json_response;
*
* @access public
* @return string
*/
public function __toString()
{
$JSON_response = array();
// grab notices
$notices = EE_Error::get_notices(FALSE);
$this->set_attention(isset($notices['attention']) ? $notices['attention'] : '');
$this->set_errors(isset($notices['errors']) ? $notices['errors'] : '');
$this->set_success(isset($notices['success']) ? $notices['success'] : '');
// add notices to JSON response, but only if they exist
if ($this->attention()) {
$JSON_response['attention'] = $this->attention();
}
if ($this->errors()) {
$JSON_response['errors'] = $this->errors();
}
if ($this->unexpected_errors()) {
$JSON_response['unexpected_errors'] = $this->unexpected_errors();
}
if ($this->success()) {
$JSON_response['success'] = $this->success();
}
// but if NO notices are set... at least set the "success" as a key so that the JS knows everything worked
if (!isset($JSON_response['attention']) && !isset($JSON_response['errors']) && !isset($JSON_response['success'])) {
$JSON_response['success'] = null;
}
// set redirect_url, IF it exists
if ($this->redirect_url()) {
$JSON_response['redirect_url'] = $this->redirect_url();
}
// set registration_time_limit, IF it exists
if ($this->registration_time_limit()) {
$JSON_response['registration_time_limit'] = $this->registration_time_limit();
}
// set payment_amount, IF it exists
if ($this->payment_amount() !== null) {
$JSON_response['payment_amount'] = $this->payment_amount();
}
// grab generic return data
$return_data = $this->return_data();
// add billing form validation rules
if ($this->validation_rules()) {
$return_data['validation_rules'] = $this->validation_rules();
}
// set reg_step_html, IF it exists
if ($this->reg_step_html()) {
$return_data['reg_step_html'] = $this->reg_step_html();
}
// set method of payment, IF it exists
if ($this->method_of_payment()) {
$return_data['method_of_payment'] = $this->method_of_payment();
}
// set "plz_select_method_of_payment" message, IF it exists
if ($this->plz_select_method_of_payment()) {
$return_data['plz_select_method_of_payment'] = $this->plz_select_method_of_payment();
}
// set redirect_form, IF it exists
if ($this->redirect_form()) {
$return_data['redirect_form'] = $this->redirect_form();
}
// and finally, add return_data array to main JSON response array, IF it contains anything
// why did we add some of the above properties to the return data array?
// because it is easier and cleaner in the Javascript to deal with this way
if (!empty($return_data)) {
$JSON_response['return_data'] = $return_data;
}
// filter final array
$JSON_response = apply_filters('FHEE__EE_SPCO_JSON_Response___toString__JSON_response', $JSON_response);
// return encoded array
return json_encode($JSON_response);
}
示例9: resend_reg_confirmation_email
/**
* resend_reg_confirmation_email
*/
public static function resend_reg_confirmation_email()
{
EE_Registry::instance()->load_core('Request_Handler');
$reg_url_link = EE_Registry::instance()->REQ->get('token');
// was a REG_ID passed ?
if ($reg_url_link) {
$registration = EE_Registry::instance()->load_model('Registration')->get_one(array(array('REG_url_link' => $reg_url_link)));
if ($registration instanceof EE_Registration) {
// resend email
EED_Messages::process_resend(array('_REG_ID' => $registration->ID()));
} else {
EE_Error::add_error(__('The Registration Confirmation email could not be sent because a valid Registration could not be retrieved from the database.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
} else {
EE_Error::add_error(__('The Registration Confirmation email could not be sent because a registration token is missing or invalid.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
// request sent via AJAX ?
if (EE_FRONT_AJAX) {
echo json_encode(EE_Error::get_notices(FALSE));
die;
// or was JS disabled ?
} else {
// save errors so that they get picked up on the next request
EE_Error::get_notices(TRUE, TRUE);
wp_safe_redirect(add_query_arg(array('e_reg_url_link' => $reg_url_link), EE_Registry::instance()->CFG->core->thank_you_page_url()));
}
}
示例10: display_admin_notices
/**
* display_admin_notices
*
* @access public
* @return string
*/
public function display_admin_notices()
{
echo EE_Error::get_notices();
}
示例11: process_ticket_selections
//.........这里部分代码省略.........
// When MER happens this will probably need to be tweaked, possibly wrapped in a conditional checking for some constant defined in MER etc.
EE_Registry::instance()->load_core('Session');
// unless otherwise requested, clear the session
if (apply_filters('FHEE__EE_Ticket_Selector__process_ticket_selections__clear_session', TRUE)) {
EE_Registry::instance()->SSN->clear_session(__CLASS__, __FUNCTION__);
}
//d( EE_Registry::instance()->SSN );
do_action('AHEE_log', __FILE__, __FUNCTION__, '');
// do we have an event id?
if (EE_Registry::instance()->REQ->is_set('tkt-slctr-event-id')) {
// validate/sanitize data
$valid = self::_validate_post_data();
//EEH_Debug_Tools::printr( $_REQUEST, '$_REQUEST', __FILE__, __LINE__ );
//EEH_Debug_Tools::printr( $valid, '$valid', __FILE__, __LINE__ );
//EEH_Debug_Tools::printr( $valid[ 'total_tickets' ], 'total_tickets', __FILE__, __LINE__ );
//EEH_Debug_Tools::printr( $valid[ 'max_atndz' ], 'max_atndz', __FILE__, __LINE__ );
//check total tickets ordered vs max number of attendees that can register
if ($valid['total_tickets'] > $valid['max_atndz']) {
// ordering too many tickets !!!
$total_tickets_string = _n('You have attempted to purchase %s ticket.', 'You have attempted to purchase %s tickets.', $valid['total_tickets'], 'event_espresso');
$limit_error_1 = sprintf($total_tickets_string, $valid['total_tickets']);
// dev only message
$max_atndz_string = _n('The registration limit for this event is %s ticket per registration, therefore the total number of tickets you may purchase at a time can not exceed %s.', 'The registration limit for this event is %s tickets per registration, therefore the total number of tickets you may purchase at a time can not exceed %s.', $valid['max_atndz'], 'event_espresso');
$limit_error_2 = sprintf($max_atndz_string, $valid['max_atndz'], $valid['max_atndz']);
EE_Error::add_error($limit_error_1 . '<br/>' . $limit_error_2, __FILE__, __FUNCTION__, __LINE__);
} else {
// all data appears to be valid
$tckts_slctd = FALSE;
$success = TRUE;
// load cart
EE_Registry::instance()->load_core('Cart');
// cycle thru the number of data rows sent from the event listing
for ($x = 0; $x < $valid['rows']; $x++) {
// does this row actually contain a ticket quantity?
if (isset($valid['qty'][$x]) && $valid['qty'][$x] > 0) {
// YES we have a ticket quantity
$tckts_slctd = TRUE;
// d( $valid['ticket_obj'][$x] );
if ($valid['ticket_obj'][$x] instanceof EE_Ticket) {
// then add ticket to cart
$ticket_added = self::_add_ticket_to_cart($valid['ticket_obj'][$x], $valid['qty'][$x]);
$success = !$ticket_added ? FALSE : $success;
if (EE_Error::has_error()) {
break;
}
} else {
// nothing added to cart retrieved
EE_Error::add_error(sprintf(__('A valid ticket could not be retrieved for the event.%sPlease click the back button on your browser and try again.', 'event_espresso'), '<br/>'), __FILE__, __FUNCTION__, __LINE__);
}
}
}
//d( EE_Registry::instance()->CART );
//die(); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< KILL REDIRECT HERE BEFORE CART UPDATE
if ($tckts_slctd) {
if ($success) {
do_action('FHEE__EE_Ticket_Selector__process_ticket_selections__before_redirecting_to_checkout', EE_Registry::instance()->CART, $this);
EE_Registry::instance()->CART->recalculate_all_cart_totals();
EE_Registry::instance()->CART->save_cart(FALSE);
EE_Registry::instance()->SSN->update();
//d( EE_Registry::instance()->CART );
//die(); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< OR HERE TO KILL REDIRECT AFTER CART UPDATE
// just return TRUE for registrations being made from admin
if (is_admin()) {
return TRUE;
}
wp_safe_redirect(apply_filters('FHEE__EE_Ticket_Selector__process_ticket_selections__success_redirect_url', EE_Registry::instance()->CFG->core->reg_page_url()));
exit;
} else {
if (!EE_Error::has_error()) {
// nothing added to cart
EE_Error::add_attention(__('No tickets were added for the event', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
}
} else {
// no ticket quantities were selected
EE_Error::add_error(__('You need to select a ticket quantity before you can proceed.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
}
}
//die(); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< KILL BEFORE REDIRECT
// at this point, just return if registration is being made from admin
if (is_admin()) {
return FALSE;
}
if ($valid['return_url']) {
EE_Error::get_notices(FALSE, TRUE);
wp_safe_redirect($valid['return_url']);
exit;
} elseif (isset($event_to_add['id'])) {
EE_Error::get_notices(FALSE, TRUE);
wp_safe_redirect(get_permalink($event_to_add['id']));
exit;
} else {
echo EE_Error::get_notices();
}
} else {
// $_POST['tkt-slctr-event-id'] was not set ?!?!?!?
EE_Error::add_error(sprintf(__('An event id was not provided or was not received.%sPlease click the back button on your browser and try again.', 'event_espresso'), '<br/>'), __FILE__, __FUNCTION__, __LINE__);
}
return FALSE;
}
示例12: delete_payment
/**
* delete a payment or refund made towards a transaction
* @access public
* @return void
*/
public function delete_payment()
{
$return_data = array();
if (isset($this->_req_data['delete_txn_admin_payment'])) {
$pymt = $this->_req_data['delete_txn_admin_payment'];
if ($payment = EEM_Payment::instance()->get_one_by_ID($pymt['PAY_ID'])) {
if ($transaction = EEM_Payment::instance()->delete_by_ID($payment->ID())) {
$return_data = array('amount' => $payment->amount(), 'total_paid' => $transaction->paid(), 'txn_status' => $transaction->status_ID(), 'pay_status' => $payment->STS_ID(), 'PAY_ID' => $pymt['PAY_ID'], 'delete_txn_reg_status_change' => $this->_req_data['delete_txn_reg_status_change']);
}
}
if (isset($this->_req_data['delete_txn_reg_status_change'])) {
$this->_req_data['txn_reg_status_change'] = $this->_req_data['delete_txn_reg_status_change'];
$_REQUEST['txn_reg_status_change'] = $this->_req_data['delete_txn_reg_status_change'];
$this->_process_registration_status_change($transaction);
}
} else {
$msg = __('An error occurred. The payment form data could not be loaded.', 'event_espresso');
EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
$return_data = FALSE;
}
$notices = EE_Error::get_notices(FALSE, FALSE, FALSE);
echo json_encode(array('return_data' => $return_data, 'success' => $notices['success'], 'errors' => $notices['errors']));
die;
}
示例13: doing_it_wrong
/**
* This basically mimics the WordPress _doing_it_wrong() function except adds our own messaging etc. Very useful for providing helpful messages to developers when the method of doing something has been deprecated, or we want to make sure they use something the right way.
*
* @access public
* @param string $function The function that was called
* @param string $message A message explaining what has been done incorrectly
* @param string $version The version of Event Espresso where the error was added
* @param int $error_type
* @uses trigger_error()
*/
public function doing_it_wrong($function, $message, $version, $error_type = E_USER_NOTICE)
{
do_action('AHEE__EEH_Debug_Tools__doing_it_wrong_run', $function, $message, $version);
$version = is_null($version) ? '' : sprintf(__('(This message was added in version %s of Event Espresso.', 'event_espresso'), $version);
$error_message = sprintf(esc_html__('%1$s was called %2$sincorrectly%3$s. %4$s %5$s', 'event_espresso'), $function, '<strong>', '</strong>', $message, $version);
//don't trigger error if doing ajax, instead we'll add a transient EE_Error notice that in theory should show on the next request.
if (defined('DOING_AJAX') && DOING_AJAX) {
$error_message .= esc_html__('This is a doing_it_wrong message that was triggered during an ajax request. The request params on this request were: ', 'event_espresso');
$error_message .= '<ul><li>';
$error_message .= implode('</li><li>', EE_Registry::instance()->REQ->params());
$error_message .= '</ul>';
EE_Error::add_error($error_message, 'debug::doing_it_wrong', $function, '42');
//now we set this on the transient so it shows up on the next request.
EE_Error::get_notices(is_admin(), true);
} else {
trigger_error($error_message, $error_type);
}
}
示例14: send_ajax_response
/**
* handle ajax message responses
*
* @access protected
* @param bool $empty_cart
* @param string $redirect_url
* @return void
*/
protected function send_ajax_response($empty_cart = false, $redirect_url = '')
{
$grand_total = EE_Registry::instance()->CART->get_grand_total();
$grand_total->recalculate_total_including_taxes();
$empty_cart = $empty_cart || EE_Registry::instance()->CART->all_ticket_quantity_count() < 1 ? true : false;
// if this is an ajax request AND a callback function exists
if ($this->_ajax === true) {
// grab updated html for the event cart
$new_html = array('tbody' => '<tbody>' . $this->_get_event_cart() . '</tbody>');
if ($empty_cart) {
$new_html['.event-cart-grand-total'] = '';
$new_html['.event-cart-register-button'] = '';
}
// just send the ajax
echo json_encode(array_merge(EE_Error::get_notices(false), array('new_html' => $new_html, 'mini_cart' => EED_Multi_Event_Registration::get_mini_cart())));
// to be... or...
die;
}
EE_Error::get_notices(false, true);
$redirect_url = !empty($redirect_url) ? $redirect_url : add_query_arg(array('event_cart' => 'view'), EE_EVENT_QUEUE_BASE_URL);
wp_safe_redirect($redirect_url);
exit;
}
示例15: update_debug_logging_options
/**
* update_debug_logging_options
*
* @param array $admin_options
* @return array
*/
public function update_debug_logging_options($admin_options = array())
{
$use_full_logging = isset($this->_req_data['use_full_logging']) ? (bool) absint($this->_req_data['use_full_logging']) : $admin_options->use_full_logging;
// trying to enable full logging for the first time?
if ($use_full_logging && $use_full_logging !== $admin_options->use_full_logging) {
$admin_options->use_full_logging = $this->_request_filesystem_credentials() ? TRUE : NULL;
if ($admin_options->use_full_logging === NULL) {
add_filter('FHEE__General_Settings_Admin_Page___update_admin_option_settings__success', '__return_false');
}
} else {
$admin_options->use_full_logging = $use_full_logging;
}
if ($use_full_logging === FALSE) {
EE_Error::get_notices(FALSE);
EE_Error::reset_notices();
}
$admin_options->use_remote_logging = isset($this->_req_data['use_remote_logging']) ? absint($this->_req_data['use_remote_logging']) : $admin_options->use_remote_logging;
$admin_options->remote_logging_url = isset($this->_req_data['remote_logging_url']) ? esc_url_raw($this->_req_data['remote_logging_url']) : $admin_options->remote_logging_url;
return $admin_options;
}
开发者ID:robert-osborne,项目名称:event-espresso-core-1,代码行数:26,代码来源:Extend_General_Settings_Admin_Page.core.php