WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
Diagnostic.php
38111
x
-
Headers.php
1037
x
D
Render/
Upload
Simpan
<?php // phpcs:ignore namespace SEOPress\Services\Sitemap; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Headers */ class Headers { /** * The name service. * * @var string */ const NAME_SERVICE = 'SitemapHeaders'; /** * The printHeaders function. * * @since 4.3.0 * * @return void */ public function printHeaders() { // phpcs:ignore -- TODO: check if method is outside this class before renaming. $headers = array( 'Content-type' => 'text/xml', 'x-robots-tag' => 'noindex, follow', 'Cache-Control' => 'public, max-age=3600', ); $headers = apply_filters( 'seopress_sitemaps_headers', $headers ); if ( empty( $headers ) ) { return; } // Nothing to send once the response has started. This is normal under // WP-CLI and PHPUnit, where the bootstrap has already produced output, // and header() would only raise a warning that buries the real ones. if ( headers_sent() ) { return; } foreach ( $headers as $key => $header ) { header( $key . ':' . $header ); } } }
Exec