Пример #1
0
} else {
    $posting['wp_remote_post']['note'] = esc_html__('wp_remote_post() failed. Many advanced features may not function. Contact your hosting provider.', 'redux-framework');
    if ($sysinfo['wp_remote_post_error']) {
        $posting['wp_remote_post']['note'] .= ' ' . sprintf(esc_html__('Error: %s', 'redux-framework'), rexux_clean($sysinfo['wp_remote_post_error']));
    }
    $posting['wp_remote_post']['success'] = false;
}
// WP Remote Get Check
$posting['wp_remote_get']['name'] = esc_html__('Remote Get', 'redux-framework');
$posting['wp_remote_get']['help'] = '<a href="#" class="redux-hint-qtip" qtip-content="' . esc_html__('Used to grab information from remote servers for updates updates.', 'redux-framework') . '">[?]</a>';
if ($sysinfo['wp_remote_get'] === 'true') {
    $posting['wp_remote_get']['success'] = true;
} else {
    $posting['wp_remote_get']['note'] = esc_html__('wp_remote_get() failed. This is needed to get information from remote servers. Contact your hosting provider.', 'redux-framework');
    if ($sysinfo['wp_remote_get_error']) {
        $posting['wp_remote_get']['note'] .= ' ' . sprintf(esc_html__('Error: %s', 'redux-framework'), redux_clean($sysinfo['wp_remote_get_error']));
    }
    $posting['wp_remote_get']['success'] = false;
}
$posting = apply_filters('redux_debug_posting', $posting);
foreach ($posting as $post) {
    $mark = !empty($post['success']) ? 'yes' : 'error';
    ?>
                <tr>
                    <td data-export-label="<?php 
    echo esc_html($post['name']);
    ?>
"><?php 
    echo esc_html($post['name']);
    ?>
                        :
Пример #2
0
} else {
    $posting['wp_remote_post']['note'] = esc_html__('wp_remote_post() failed. Many advanced features may not function. Contact your hosting provider.', 'waxom');
    if ($sysinfo['wp_remote_post_error']) {
        $posting['wp_remote_post']['note'] .= ' ' . sprintf(__('Error: %s', 'waxom'), redux_clean($sysinfo['wp_remote_post_error']));
    }
    $posting['wp_remote_post']['success'] = false;
}
// WP Remote Get Check
$posting['wp_remote_get']['name'] = esc_html__('Remote Get', 'waxom');
$posting['wp_remote_get']['help'] = '<a href="#" class="redux-hint-qtip" qtip-content="' . esc_attr__('Used to grab information from remote servers for updates updates.', 'waxom') . '">[?]</a>';
if ($sysinfo['wp_remote_get'] === 'true') {
    $posting['wp_remote_get']['success'] = true;
} else {
    $posting['wp_remote_get']['note'] = esc_html__('wp_remote_get() failed. This is needed to get information from remote servers. Contact your hosting provider.', 'waxom');
    if ($sysinfo['wp_remote_get_error']) {
        $posting['wp_remote_get']['note'] .= ' ' . sprintf(__('Error: %s', 'waxom'), redux_clean($sysinfo['wp_remote_get_error']));
    }
    $posting['wp_remote_get']['success'] = false;
}
$posting = apply_filters('redux_debug_posting', $posting);
foreach ($posting as $post) {
    $mark = !empty($post['success']) ? 'yes' : 'error';
    ?>
                <tr>
                    <td data-export-label="<?php 
    echo esc_html($post['name']);
    ?>
">
                        <?php 
    echo esc_html($post['name']);
    ?>