芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/portfolio.socialdigiinnovator.com/wp-content/plugins/newsletter/header.php
get_user_count(); $is_administrator = current_user_can('administrator'); do_action('newsletter_menu'); // New way to add menu entries function newsletter_print_entries($group) { $entries = apply_filters('newsletter_menu_' . $group, NewsletterAdmin::$menu[$group] ?? []); if (!$entries) { return; } foreach ($entries as &$entry) { echo '
', wp_strip_all_tags($entry['label']), '
'; } } $system_warnings = NewsletterSystemAdmin::instance()->get_warnings_count(); ?>
get_license_data(); $premium_url = 'https://www.thenewsletterplugin.com/premium?utm_source=header&utm_medium=link&utm_campaign=plugin&utm_content=' . urlencode($_GET['page']); if (NEWSLETTER_DEBUG) { //$license_data->expire = 0; //time() + MONTH_IN_SECONDS + DAY_IN_SECONDS; //$license_data->type = 'personal'; //$license_data = false; } ?>
expire == 0) { ?>
expire < time()) { ?> type === 'personal') { ?>
expire < time() + MONTH_IN_SECONDS) { ?> type === 'personal') { ?>
(expire)); ?>)
(expire)); ?>)
expire >= time()) { ?>
(expire)); ?>)
×
is_multilanguage()) { $languages = array_merge(['' => 'All languages'], Newsletter::instance()->get_languages()); $missing = []; $missing_publish = []; $missing_shortcode = []; foreach ($languages as $l => $label) { // Do NOT use $language! $tnp_page_id = NewsletterMainAdmin::instance()->get_option('page', '', $l); // Found an installation with page ID equals to zero and returning a valid status... if (empty($tnp_page_id)) { $missing[] = '
' . esc_html($label) . '
'; continue; } $tnp_page_status = get_post_status($tnp_page_id); if ($tnp_page_status === false) { $missing[] = '
' . esc_html($label) . '
'; continue; } if ($tnp_page_status !== 'publish') { $missing_publish[] = '
' . esc_html(get_post_field('post_title', $tnp_page_id)) . '
'; continue; } $content = get_post_field('post_content', $tnp_page_id); if (strpos($content, '[newsletter]') === false && strpos($content, '[newsletter ') === false && strpos($content, '[newsletter/]') === false) { $missing_shortcode[] = '
' . esc_html(get_post_field('post_title', $tnp_page_id)) . '
'; } } if ($missing) { update_option('newsletter_public_page_check', 0, false); ?>
The Newsletter public page is missing or not published for
Some Newsletter public page(s) are not published:
Some Newsletter's public page(s) do not contain the
[newsletter]
shortcode:
get_main_option('page'); $tnp_page_status = get_post_status($tnp_page_id); if ($tnp_page_status === false) { update_option('newsletter_public_page_check', 0, false); echo '
The Newsletter public page is missing.
Configure it
.
'; } elseif ($tnp_page_status !== 'publish') { update_option('newsletter_public_page_check', 0, false); echo '
The Newsletter public page is not published.
Edit the page
or
review the main settings
.
'; } else { $content = get_post_field('post_content', $tnp_page_id); $title = get_post_field('post_title', $tnp_page_id); // With and without attributes if (strpos($content, '[newsletter]') === false && strpos($content, '[newsletter ') === false) { update_option('newsletter_public_page_check', 0, false); ?>
The WordPress page "" set as Newsletter's public page on the
main settings
does not contain the
[newsletter]
shortcode.
Edit the page
and add the
[newsletter]
as the only page content.
300) { ?>
×
☆☆☆☆☆ Would you rate the Newsletter plugin to help us improve even more?
Really appreciated, The Newsletter Team
.
×
Subscribe to our news, promotions and getting started lessons! Proceeding you agree to the
privacy policy
.
get_job_status(); if (isset($_GET['debug']) || $x !== NewsletterSystemAdmin::JOB_OK) { echo '
The WordPress scheduler is not working properly: that affects the newsletter sending and other site tasks.
'; echo '
See possible solutions
'; } } ?> The delivery engine has been paused using WP Crontrol. Please
reactivate the
newsletter
hook
.
'; }