modules/sitemaps/sitemap-stylist.php 1 location
|
@@ 195-201 (lines=7) @@
|
| 192 |
|
) |
| 193 |
|
); |
| 194 |
|
|
| 195 |
|
if ( current_user_can( 'manage_options' ) ) { |
| 196 |
|
$next = human_time_diff( wp_next_scheduled( 'jp_sitemap_cron_hook' ) ); |
| 197 |
|
/* translators: %s is a human_time_diff until next sitemap generation. */ |
| 198 |
|
$no_nodes_warning = sprintf( __( 'No sitemap found. The system will try to build it again in %s.', 'jetpack' ), $next ); |
| 199 |
|
} else { |
| 200 |
|
$no_nodes_warning = ''; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
$more_info = self::sanitize_with_links( |
| 204 |
|
__( |
modules/sitemaps/sitemaps.php 1 location
|
@@ 158-162 (lines=5) @@
|
| 155 |
|
|
| 156 |
|
if ( '' === $the_content ) { |
| 157 |
|
$error = __( 'No sitemap found. Please try again later.', 'jetpack' ); |
| 158 |
|
if ( current_user_can( 'manage_options' ) ) { |
| 159 |
|
$next = human_time_diff( wp_next_scheduled( 'jp_sitemap_cron_hook' ) ); |
| 160 |
|
/* translators: %s is a human_time_diff until next sitemap generation. */ |
| 161 |
|
$error = sprintf( __( 'No sitemap found. The system will try to build it again in %s.', 'jetpack' ), $next ); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
wp_die( |
| 165 |
|
esc_html( $error ), |