(string) $it['q'], 'a' => (string) $it['a']); } } if ($tldr === '' && empty($faq)) { return null; } return array('tldr' => $tldr, 'faq' => $faq, 'dropped' => isset($d['dropped']) ? (int) $d['dropped'] : 0, 'ts' => isset($d['ts']) ? (int) $d['ts'] : 0); } function citami_aeo_draft_discard($post_id) { delete_post_meta((int) $post_id, CITAMI_META_AEO_DRAFT); } /** Title + plain text the platform will work on (the saved content, never the editor state). */ function citami_aeo_draft_page_text($post_id) { $post = get_post((int) $post_id); if (!$post) { return array('title' => '', 'text' => ''); } $html = (string) $post->post_content; if (function_exists('do_blocks') && strpos($html, '