/* Same-origin PDF proxy for reliable mobile rendering. */ add_action('init', function () { if (empty($_GET['pcs_pdf_proxy'])) return; $pc_proxy_id = absint($_GET['pcs_pdf_proxy']); $pc_proxy_url = trim((string) get_post_meta($pc_proxy_id, 'polash_file_url', true)); if (!$pc_proxy_url) { status_header(404); exit; } $pc_proxy_response = wp_remote_get($pc_proxy_url, array('timeout' => 30)); if (is_wp_error($pc_proxy_response) || wp_remote_retrieve_response_code($pc_proxy_response) !== 200) { status_header(404); exit; } nocache_headers(); header('Content-Type: application/pdf'); header('Content-Disposition: inline'); header('Access-Control-Allow-Origin: *'); echo wp_remote_retrieve_body($pc_proxy_response); exit; }, 1); https://polashcadetedu.com/wp-sitemap-posts-page-1.xmlhttps://polashcadetedu.com/wp-sitemap-posts-school_notice-1.xmlhttps://polashcadetedu.com/wp-sitemap-posts-school_result-1.xmlhttps://polashcadetedu.com/wp-sitemap-posts-school_staff-1.xmlhttps://polashcadetedu.com/wp-sitemap-posts-school_branch-1.xmlhttps://polashcadetedu.com/wp-sitemap-posts-school_class-1.xmlhttps://polashcadetedu.com/wp-sitemap-users-1.xml