Changeset 3808429
- Timestamp:
- 11/18/2026 02:01:14 AM (29 hours ago)
- Location:
- flexa-seo-aeo
- Files:
-
- 2 added
- 2 deleted
- 24 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from flexa-seo-aeo/trunk )
-
tags/1.1.0/apps/admin/src/features/settings/SettingsPage.tsx (modified) (3 diffs)
-
tags/1.1.0/apps/admin/src/features/settings/sections.ts (modified) (1 diff)
-
tags/1.1.0/apps/admin/src/features/settings/useSettings.ts (modified) (1 diff)
-
tags/1.1.0/assets/dist/.vite/manifest.json (modified) (1 diff)
-
tags/1.1.0/assets/dist/assets/main-CsZuqLt0.js (deleted)
-
tags/1.1.0/assets/dist/assets/main-_UC8bhmt.js (added)
-
tags/1.1.0/flexa-seo-aeo.php (modified) (2 diffs)
-
tags/1.1.0/i18n/languages/flexa-seo-aeo.pot (modified) (65 diffs)
-
tags/1.1.0/package.json (modified) (1 diff)
-
tags/1.1.0/readme.txt (modified) (4 diffs)
-
tags/1.1.0/src/Actions/Front/Metas.php (modified) (1 diff)
-
tags/1.1.0/src/Admin/ConflictNotice.php (modified) (8 diffs)
-
tags/1.1.0/src/Support/SeoConflicts.php (modified) (2 diffs)
-
tags/1.1.0/src/Support/Settings.php (modified) (5 diffs)
-
trunk/apps/admin/src/features/settings/SettingsPage.tsx (modified) (3 diffs)
-
trunk/apps/admin/src/features/settings/sections.ts (modified) (1 diff)
-
trunk/apps/admin/src/features/settings/useSettings.ts (modified) (1 diff)
-
trunk/assets/dist/.vite/manifest.json (modified) (1 diff)
-
trunk/assets/dist/assets/main-CsZuqLt0.js (deleted)
-
trunk/assets/dist/assets/main-_UC8bhmt.js (added)
-
trunk/flexa-seo-aeo.php (modified) (2 diffs)
-
trunk/i18n/languages/flexa-seo-aeo.pot (modified) (65 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/src/Actions/Front/Metas.php (modified) (1 diff)
-
trunk/src/Admin/ConflictNotice.php (modified) (8 diffs)
-
trunk/src/Support/SeoConflicts.php (modified) (2 diffs)
-
trunk/src/Support/Settings.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flexa-seo-aeo/tags/1.1.0/apps/admin/src/features/settings/SettingsPage.tsx
r3749993 r3808429 21 21 Search, 22 22 Share2, 23 ShieldCheck, 23 24 ShoppingBag, 24 25 Tag, … … 72 73 "robots_txt", 73 74 "whitelabel_name", 75 "verify_google", 76 "verify_bing", 77 "verify_yandex", 78 "verify_pinterest", 74 79 ] as const; 75 80 76 81 const ARRAY_KEYS = ["sitemap_post_types", "sitemap_taxonomies"] as const; 82 83 const VERIFICATION_FIELDS: { 84 key: "verify_google" | "verify_bing" | "verify_yandex" | "verify_pinterest"; 85 title: string; 86 }[] = [ 87 { key: "verify_google", title: __("Google Search Console") }, 88 { key: "verify_bing", title: __("Bing Webmaster Tools") }, 89 { key: "verify_yandex", title: __("Yandex Webmaster") }, 90 { key: "verify_pinterest", title: __("Pinterest") }, 91 ]; 77 92 78 93 const SEPARATORS = ["-", "–", "—", "·", "•", "|", "/", "»", ">"]; … … 684 699 </StackedField> 685 700 </div> 701 <div className={cn(ROW_DIVIDER, "fsa:space-y-5 fsa:p-5")}> 702 <p className="fsa:text-xs fsa:text-slate-500"> 703 {__( 704 "Site verification codes. Paste the code or the whole meta tag from each console; only the code is kept. The tags are printed on the front page. Leave a field empty to skip it.", 705 )} 706 </p> 707 {VERIFICATION_FIELDS.map(({ key, title }) => ( 708 <StackedField 709 key={key} 710 id={`flexa-seo-aeo-${key}`} 711 icon={ShieldCheck} 712 title={title} 713 > 714 <Input 715 id={`flexa-seo-aeo-${key}`} 716 value={form[key]} 717 onChange={(e) => setString(key, e.target.value)} 718 spellCheck={false} 719 autoComplete="off" 720 className="fsa:font-mono" 721 /> 722 </StackedField> 723 ))} 724 </div> 686 725 </div> 687 726 )} -
flexa-seo-aeo/tags/1.1.0/apps/admin/src/features/settings/sections.ts
r3756036 r3808429 73 73 id: "indexing", 74 74 title: __("Indexing"), 75 subtitle: __("IndexNow & robots.txt"),75 subtitle: __("IndexNow, robots.txt, verification"), 76 76 icon: Rss, 77 77 paneTitle: __("Indexing"), 78 paneSubtitle: __("Push instant index signals and tune the virtual robots.txt."), 78 paneSubtitle: __( 79 "Push instant index signals, tune the virtual robots.txt, and verify the site with search consoles.", 80 ), 79 81 }, 80 82 { -
flexa-seo-aeo/tags/1.1.0/apps/admin/src/features/settings/useSettings.ts
r3749993 r3808429 53 53 sitemap_post_types: string[]; 54 54 sitemap_taxonomies: string[]; 55 /** Webmaster ownership codes, printed on the front page only. */ 56 verify_google: string; 57 verify_bing: string; 58 verify_yandex: string; 59 verify_pinterest: string; 55 60 aeo: AeoSettings; 56 61 } -
flexa-seo-aeo/tags/1.1.0/assets/dist/.vite/manifest.json
r3756036 r3808429 1 1 { 2 2 "src/main.tsx": { 3 "file": "assets/main- CsZuqLt0.js",3 "file": "assets/main-_UC8bhmt.js", 4 4 "name": "main", 5 5 "src": "src/main.tsx", -
flexa-seo-aeo/tags/1.1.0/flexa-seo-aeo.php
r3756036 r3808429 3 3 * Plugin Name: Flexa SEO - AEO | AI SEO & Answer Engine Optimization 4 4 * Description: Complete WordPress SEO (schema, sitemaps, meta, Open Graph), plus a per-post Answer-Engine Readiness score and a site health dashboard for AI search. 5 * Version: 1. 0.05 * Version: 1.1.0 6 6 * Requires at least: 6.5 7 7 * Requires PHP: 8.2 … … 31 31 } 32 32 33 define( 'FLEXA_SEO_AEO_VERSION', '1. 0.0' );33 define( 'FLEXA_SEO_AEO_VERSION', '1.1.0' ); 34 34 define( 'FLEXA_SEO_AEO_FILE', __FILE__ ); 35 35 define( 'FLEXA_SEO_AEO_PATH', plugin_dir_path( __FILE__ ) ); -
flexa-seo-aeo/tags/1.1.0/i18n/languages/flexa-seo-aeo.pot
r3756036 r3808429 4 4 msgstr "" 5 5 "Project-Id-Version: Flexa SEO - AEO | AI SEO & Answer Engine Optimization " 6 "1. 0.0\n"6 "1.1.0\n" 7 7 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexa-seo-aeo\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 11 11 "Content-Type: text/plain; charset=UTF-8\n" 12 12 "Content-Transfer-Encoding: 8bit\n" 13 "POT-Creation-Date: 2026-1 0-20T07:11:20+00:00\n"13 "POT-Creation-Date: 2026-11-18T01:59:48+00:00\n" 14 14 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 15 15 "X-Generator: WP-CLI 2.10.0\n" … … 156 156 msgstr "" 157 157 158 #: src/Admin/ConflictNotice.php: 53158 #: src/Admin/ConflictNotice.php:63 159 159 msgid "This plugin" 160 160 msgstr "" 161 161 162 #: src/Admin/ConflictNotice.php: 63162 #: src/Admin/ConflictNotice.php:73 163 163 msgid "See which tags each pairing actually duplicates" 164 164 msgstr "" 165 165 166 166 #. translators: %s: comma-separated list of SEO plugin names. 167 #: src/Admin/ConflictNotice.php: 73167 #: src/Admin/ConflictNotice.php:85 168 168 msgid "is running alongside %s." 169 169 msgstr "" 170 170 171 #: src/Admin/ConflictNotice.php: 77171 #: src/Admin/ConflictNotice.php:89 172 172 msgid "" 173 173 "Two SEO plugins on one site means two canonical tags, two sets of Open Graph " … … 176 176 msgstr "" 177 177 178 #: src/Admin/ConflictNotice.php: 82178 #: src/Admin/ConflictNotice.php:96 179 179 msgid "I know, hide this" 180 180 msgstr "" 181 181 182 #: src/Admin/ConflictNotice.php:88 182 #: src/Admin/ConflictNotice.php:109 183 msgid "this plugin" 184 msgstr "" 185 186 #. translators: 1: an SEO plugin's name, 2: this plugin's name. 187 #: src/Admin/ConflictNotice.php:118 188 msgid "" 189 "While %1$s is active, noindex and nofollow set in %2$s are not applied: it " 190 "removes WordPress's robots output and prints its own robots tag. A post you " 191 "set to noindex here can still be indexed. Set them in %1$s until you switch " 192 "that plugin off." 193 msgstr "" 194 195 #. translators: %s: comma-separated list of SEO plugin names. 196 #: src/Admin/ConflictNotice.php:130 197 msgid "" 198 "%s prints a second robots tag, so a post set to noindex here carries one tag " 199 "saying noindex and another saying index." 200 msgstr "" 201 202 #: src/Admin/ConflictNotice.php:141 183 203 msgid "You are not allowed to do that." 184 204 msgstr "" … … 915 935 msgstr "" 916 936 917 #: apps/admin/src/features/settings/SettingsPage.tsx:7 52937 #: apps/admin/src/features/settings/SettingsPage.tsx:791 918 938 msgid "" 919 939 "A short description answer engines can quote. Shown at the top of llms.txt." … … 926 946 msgstr "" 927 947 928 #: apps/admin/src/features/settings/sections.ts:9 0929 #: apps/admin/src/features/settings/sections.ts:9 3948 #: apps/admin/src/features/settings/sections.ts:92 949 #: apps/admin/src/features/settings/sections.ts:95 930 950 msgid "AEO Core" 931 951 msgstr "" … … 943 963 msgstr "" 944 964 945 #: apps/admin/src/features/settings/SettingsPage.tsx:3 60965 #: apps/admin/src/features/settings/SettingsPage.tsx:375 946 966 msgid "AEO schema" 947 967 msgstr "" … … 967 987 msgstr "" 968 988 969 #: apps/admin/src/features/settings/SettingsPage.tsx:2 58989 #: apps/admin/src/features/settings/SettingsPage.tsx:273 970 990 msgid "Add <image:image> entries to the XML sitemap." 971 991 msgstr "" 972 992 973 #: apps/admin/src/features/settings/SettingsPage.tsx:3 08993 #: apps/admin/src/features/settings/SettingsPage.tsx:323 974 994 msgid "" 975 995 "Add rel=\"nofollow\" to external links in your content. Applied when the " … … 977 997 msgstr "" 978 998 979 #: apps/admin/src/features/settings/SettingsPage.tsx:3 17999 #: apps/admin/src/features/settings/SettingsPage.tsx:332 980 1000 msgid "" 981 1001 "Add rel=\"nofollow\" to links pointing to external image files. Applied when " … … 983 1003 msgstr "" 984 1004 985 #: apps/admin/src/features/settings/SettingsPage.tsx:3 261005 #: apps/admin/src/features/settings/SettingsPage.tsx:341 986 1006 msgid "" 987 1007 "Add target=\"_blank\" to external links so they open in a new tab. Applied " … … 989 1009 msgstr "" 990 1010 991 #: apps/admin/src/features/settings/SettingsPage.tsx:3 451011 #: apps/admin/src/features/settings/SettingsPage.tsx:360 992 1012 msgid "Advertise a Markdown variant of each page to AI crawlers." 993 1013 msgstr "" 994 1014 995 #: apps/admin/src/features/settings/SettingsPage.tsx:3 441015 #: apps/admin/src/features/settings/SettingsPage.tsx:359 996 1016 msgid "Agent Readiness" 997 1017 msgstr "" … … 1009 1029 msgstr "" 1010 1030 1011 #: apps/admin/src/features/settings/sections.ts:9 11031 #: apps/admin/src/features/settings/sections.ts:93 1012 1032 msgid "Answer-engine optimization" 1013 1033 msgstr "" 1014 1034 1015 #: apps/admin/src/features/settings/SettingsPage.tsx:6 701035 #: apps/admin/src/features/settings/SettingsPage.tsx:685 1016 1036 msgid "" 1017 1037 "Appended to the virtual robots.txt. The sitemap line is added automatically." … … 1034 1054 msgstr "" 1035 1055 1036 #: apps/admin/src/features/settings/SettingsPage.tsx:2 241056 #: apps/admin/src/features/settings/SettingsPage.tsx:239 1037 1057 msgid "Auto-fill missing image alt attributes." 1038 1058 msgstr "" … … 1042 1062 msgstr "" 1043 1063 1044 #: apps/admin/src/features/settings/sections.ts:1 181064 #: apps/admin/src/features/settings/sections.ts:120 1045 1065 msgid "Back up your configuration or move it between sites." 1046 1066 msgstr "" … … 1053 1073 msgstr "" 1054 1074 1075 #: apps/admin/src/features/settings/SettingsPage.tsx:88 1076 msgid "Bing Webmaster Tools" 1077 msgstr "" 1078 1055 1079 #: apps/admin/src/features/onboarding/WelcomeStep.tsx:28 1056 1080 msgid "Blog" 1057 1081 msgstr "" 1058 1082 1059 #: apps/admin/src/features/settings/SettingsPage.tsx: 7921083 #: apps/admin/src/features/settings/SettingsPage.tsx:831 1060 1084 msgid "Brand name" 1061 1085 msgstr "" 1062 1086 1063 #: apps/admin/src/features/settings/sections.ts:10 11064 #: apps/admin/src/features/settings/sections.ts: 981087 #: apps/admin/src/features/settings/sections.ts:100 1088 #: apps/admin/src/features/settings/sections.ts:103 1065 1089 msgid "Branding" 1066 1090 msgstr "" … … 1070 1094 msgstr "" 1071 1095 1072 #: apps/admin/src/features/settings/sections.ts:11 01096 #: apps/admin/src/features/settings/sections.ts:112 1073 1097 msgid "" 1074 1098 "Bring your existing SEO meta over from Yoast SEO, Rank Math or SEOPress." … … 1081 1105 msgstr "" 1082 1106 1083 #: apps/admin/src/features/settings/sections.ts:8 61107 #: apps/admin/src/features/settings/sections.ts:88 1084 1108 msgid "Clean up URLs and control how links behave on the front end." 1085 1109 msgstr "" … … 1097 1121 msgstr "" 1098 1122 1099 #: apps/admin/src/features/settings/SettingsPage.tsx: 3961123 #: apps/admin/src/features/settings/SettingsPage.tsx:411 1100 1124 msgid "" 1101 1125 "Configure how Flexa SEO optimizes your site for search and answer engines." … … 1133 1157 msgstr "" 1134 1158 1135 #: apps/admin/src/features/settings/SettingsPage.tsx:6 691159 #: apps/admin/src/features/settings/SettingsPage.tsx:684 1136 1160 msgid "Custom robots.txt rules" 1137 1161 msgstr "" 1138 1162 1139 #: apps/admin/src/features/settings/sections.ts:12 21140 #: apps/admin/src/features/settings/sections.ts:12 51163 #: apps/admin/src/features/settings/sections.ts:124 1164 #: apps/admin/src/features/settings/sections.ts:127 1141 1165 msgid "Danger Zone" 1142 1166 msgstr "" … … 1156 1180 msgstr "" 1157 1181 1158 #: apps/admin/src/features/settings/SettingsPage.tsx:5 431182 #: apps/admin/src/features/settings/SettingsPage.tsx:558 1159 1183 msgid "Default share image" 1160 1184 msgstr "" 1161 1185 1162 #: apps/admin/src/features/settings/sections.ts:12 31186 #: apps/admin/src/features/settings/sections.ts:125 1163 1187 msgid "Destructive actions" 1164 1188 msgstr "" … … 1201 1225 msgstr "" 1202 1226 1203 #: apps/admin/src/features/settings/SettingsPage.tsx:3 611227 #: apps/admin/src/features/settings/SettingsPage.tsx:376 1204 1228 msgid "Emit Article / FAQPage / WebSite JSON-LD tuned for answer engines." 1205 1229 msgstr "" 1206 1230 1207 #: apps/admin/src/features/settings/SettingsPage.tsx:3 741231 #: apps/admin/src/features/settings/SettingsPage.tsx:389 1208 1232 msgid "" 1209 1233 "Emit Product / Offer JSON-LD (price, availability, rating) + OG product tags " … … 1215 1239 msgstr "" 1216 1240 1217 #: apps/admin/src/features/settings/SettingsPage.tsx:2 171241 #: apps/admin/src/features/settings/SettingsPage.tsx:232 1218 1242 msgid "Enable breadcrumb trail + BreadcrumbList schema." 1219 1243 msgstr "" 1220 1244 1221 #: apps/admin/src/features/settings/SettingsPage.tsx:2 651245 #: apps/admin/src/features/settings/SettingsPage.tsx:280 1222 1246 msgid "Enable the [flexa_seo_aeo_sitemap] shortcode." 1223 1247 msgstr "" … … 1255 1279 msgstr "" 1256 1280 1257 #: apps/admin/src/features/settings/SettingsPage.tsx:2 341281 #: apps/admin/src/features/settings/SettingsPage.tsx:249 1258 1282 msgid "Facebook / LinkedIn / chat-app preview tags." 1259 1283 msgstr "" 1260 1284 1261 #: apps/admin/src/features/settings/SettingsPage.tsx:1 561285 #: apps/admin/src/features/settings/SettingsPage.tsx:171 1262 1286 msgid "Failed to load settings:" 1263 1287 msgstr "" … … 1299 1323 msgstr "" 1300 1324 1301 #: apps/admin/src/features/settings/SettingsPage.tsx:264 1325 #: apps/admin/src/features/settings/SettingsPage.tsx:87 1326 msgid "Google Search Console" 1327 msgstr "" 1328 1329 #: apps/admin/src/features/settings/SettingsPage.tsx:279 1302 1330 msgid "HTML sitemap" 1303 1331 msgstr "" 1304 1332 1305 #: apps/admin/src/features/settings/SettingsPage.tsx: 4951333 #: apps/admin/src/features/settings/SettingsPage.tsx:510 1306 1334 msgid "Homepage description" 1307 1335 msgstr "" 1308 1336 1309 #: apps/admin/src/features/settings/SettingsPage.tsx:4 781337 #: apps/admin/src/features/settings/SettingsPage.tsx:493 1310 1338 msgid "Homepage title" 1311 1339 msgstr "" … … 1327 1355 msgstr "" 1328 1356 1357 #: apps/admin/src/features/settings/sections.ts:119 1358 msgid "Import & Export" 1359 msgstr "" 1360 1329 1361 #: apps/admin/src/features/settings/sections.ts:117 1330 msgid "Import & Export"1331 msgstr ""1332 1333 #: apps/admin/src/features/settings/sections.ts:1151334 1362 msgid "Import & export settings" 1335 1363 msgstr "" 1336 1364 1337 #: apps/admin/src/features/settings/sections.ts:10 71365 #: apps/admin/src/features/settings/sections.ts:109 1338 1366 msgid "Import from Yoast, Rank Math & SEOPress" 1339 1367 msgstr "" … … 1347 1375 msgstr "" 1348 1376 1349 #: apps/admin/src/features/settings/SettingsPage.tsx:2 571377 #: apps/admin/src/features/settings/SettingsPage.tsx:272 1350 1378 msgid "Include images" 1351 1379 msgstr "" 1352 1380 1353 #: apps/admin/src/features/settings/SettingsPage.tsx:6 281381 #: apps/admin/src/features/settings/SettingsPage.tsx:643 1354 1382 msgid "Included post types" 1355 1383 msgstr "" 1356 1384 1357 #: apps/admin/src/features/settings/SettingsPage.tsx:6 441385 #: apps/admin/src/features/settings/SettingsPage.tsx:659 1358 1386 msgid "Included taxonomies" 1359 1387 msgstr "" 1360 1388 1361 1389 #: apps/admin/src/features/settings/sections.ts:75 1362 msgid "IndexNow & robots.txt"1390 msgid "IndexNow, robots.txt, verification" 1363 1391 msgstr "" 1364 1392 … … 1400 1428 msgstr "" 1401 1429 1402 #: apps/admin/src/features/settings/SettingsPage.tsx:4 791430 #: apps/admin/src/features/settings/SettingsPage.tsx:494 1403 1431 msgid "Leave blank to use %%sitename%% %%sep%% %%tagline%%." 1404 1432 msgstr "" … … 1408 1436 msgstr "" 1409 1437 1410 #: apps/admin/src/features/settings/sections.ts:8 21411 #: apps/admin/src/features/settings/sections.ts:8 51438 #: apps/admin/src/features/settings/sections.ts:84 1439 #: apps/admin/src/features/settings/sections.ts:87 1412 1440 msgid "Links" 1413 1441 msgstr "" … … 1417 1445 msgstr "" 1418 1446 1419 #: apps/admin/src/features/settings/SettingsPage.tsx:1 491447 #: apps/admin/src/features/settings/SettingsPage.tsx:164 1420 1448 msgid "Loading settings…" 1421 1449 msgstr "" … … 1425 1453 msgstr "" 1426 1454 1427 #: apps/admin/src/features/settings/SettingsPage.tsx:6 031455 #: apps/admin/src/features/settings/SettingsPage.tsx:618 1428 1456 msgid "Logo" 1429 1457 msgstr "" 1430 1458 1431 #: apps/admin/src/features/settings/sections.ts:9 41459 #: apps/admin/src/features/settings/sections.ts:96 1432 1460 msgid "Make your content first-class for AI answer engines." 1433 1461 msgstr "" … … 1440 1468 #: apps/admin/src/features/onboarding/useOnboarding.ts:159 1441 1469 #: apps/admin/src/features/settings/MigrationPane.tsx:142 1442 #: apps/admin/src/features/settings/sections.ts:10 61470 #: apps/admin/src/features/settings/sections.ts:108 1443 1471 msgid "Migrate" 1444 1472 msgstr "" 1445 1473 1446 #: apps/admin/src/features/settings/sections.ts:1 091474 #: apps/admin/src/features/settings/sections.ts:111 1447 1475 msgid "Migrate from another plugin" 1448 1476 msgstr "" … … 1453 1481 msgstr "" 1454 1482 1455 #: apps/admin/src/features/settings/SettingsPage.tsx: 5871483 #: apps/admin/src/features/settings/SettingsPage.tsx:602 1456 1484 msgid "Name" 1457 1485 msgstr "" … … 1473 1501 msgstr "" 1474 1502 1475 #: apps/admin/src/features/settings/SettingsPage.tsx:3 071503 #: apps/admin/src/features/settings/SettingsPage.tsx:322 1476 1504 msgid "Nofollow External Links" 1477 1505 msgstr "" 1478 1506 1479 #: apps/admin/src/features/settings/SettingsPage.tsx:3 161507 #: apps/admin/src/features/settings/SettingsPage.tsx:331 1480 1508 msgid "Nofollow Image File Links" 1481 1509 msgstr "" 1482 1510 1483 #: apps/admin/src/features/settings/SettingsPage.tsx:10 451511 #: apps/admin/src/features/settings/SettingsPage.tsx:1084 1484 1512 msgid "Nothing available." 1485 1513 msgstr "" … … 1493 1521 msgstr "" 1494 1522 1495 #: apps/admin/src/features/settings/SettingsPage.tsx:3 251523 #: apps/admin/src/features/settings/SettingsPage.tsx:340 1496 1524 msgid "Open External Links in New Tab/Window" 1497 1525 msgstr "" … … 1506 1534 msgstr "" 1507 1535 1508 #: apps/admin/src/features/settings/SettingsPage.tsx:4 171536 #: apps/admin/src/features/settings/SettingsPage.tsx:432 1509 1537 msgid "Open command palette" 1510 1538 msgstr "" … … 1522 1550 msgstr "" 1523 1551 1524 #: apps/admin/src/features/settings/SettingsPage.tsx: 881552 #: apps/admin/src/features/settings/SettingsPage.tsx:103 1525 1553 #: apps/admin/src/features/settings/sections.ts:58 1526 1554 #: apps/admin/src/features/settings/sections.ts:61 … … 1528 1556 msgstr "" 1529 1557 1530 #: apps/admin/src/features/settings/SettingsPage.tsx: 5881558 #: apps/admin/src/features/settings/SettingsPage.tsx:603 1531 1559 msgid "" 1532 1560 "Organization or person name for the publisher schema. Defaults to the site " … … 1534 1562 msgstr "" 1535 1563 1536 #: apps/admin/src/features/settings/SettingsPage.tsx:2 101564 #: apps/admin/src/features/settings/SettingsPage.tsx:225 1537 1565 msgid "Output the <title> and meta description tags." 1538 1566 msgstr "" … … 1542 1570 msgstr "" 1543 1571 1544 #: apps/admin/src/features/settings/SettingsPage.tsx:7 331572 #: apps/admin/src/features/settings/SettingsPage.tsx:772 1545 1573 msgid "Overrides the site title in llms.txt. Defaults to the site title." 1546 1574 msgstr "" … … 1570 1598 msgstr "" 1571 1599 1572 #: apps/admin/src/features/settings/SettingsPage.tsx: 891600 #: apps/admin/src/features/settings/SettingsPage.tsx:104 1573 1601 msgid "Person" 1574 1602 msgstr "" … … 1578 1606 msgstr "" 1579 1607 1580 #: apps/admin/src/features/settings/SettingsPage.tsx:2 751608 #: apps/admin/src/features/settings/SettingsPage.tsx:290 1581 1609 msgid "" 1582 1610 "Ping IndexNow when content is published or updated for near-instant indexing." 1583 1611 msgstr "" 1584 1612 1585 #: apps/admin/src/features/settings/SettingsPage.tsx:353 1613 #: apps/admin/src/features/settings/SettingsPage.tsx:90 1614 msgid "Pinterest" 1615 msgstr "" 1616 1617 #: apps/admin/src/features/settings/SettingsPage.tsx:368 1586 1618 msgid "Plain-text export" 1587 1619 msgstr "" … … 1597 1629 1598 1630 #: apps/admin/src/features/settings/sections.ts:78 1599 msgid "Push instant index signals and tune the virtual robots.txt." 1631 msgid "" 1632 "Push instant index signals, tune the virtual robots.txt, and verify the site " 1633 "with search consoles." 1600 1634 msgstr "" 1601 1635 … … 1618 1652 msgstr "" 1619 1653 1620 #: apps/admin/src/features/settings/SettingsPage.tsx: 2951654 #: apps/admin/src/features/settings/SettingsPage.tsx:310 1621 1655 msgid "Redirect Attachments" 1622 1656 msgstr "" 1623 1657 1624 #: apps/admin/src/features/settings/SettingsPage.tsx: 6961658 #: apps/admin/src/features/settings/SettingsPage.tsx:735 1625 1659 msgid "Redirect Orphan Attachments" 1626 1660 msgstr "" 1627 1661 1628 #: apps/admin/src/features/settings/SettingsPage.tsx: 2961662 #: apps/admin/src/features/settings/SettingsPage.tsx:311 1629 1663 msgid "Redirect attachment page URLs to the post they appear in." 1630 1664 msgstr "" 1631 1665 1632 #: apps/admin/src/features/settings/SettingsPage.tsx: 6971666 #: apps/admin/src/features/settings/SettingsPage.tsx:736 1633 1667 msgid "" 1634 1668 "Redirect attachments without a parent post to this URL. Leave empty for no " … … 1636 1670 msgstr "" 1637 1671 1638 #: apps/admin/src/features/settings/SettingsPage.tsx: 2871672 #: apps/admin/src/features/settings/SettingsPage.tsx:302 1639 1673 msgid "" 1640 1674 "Remove /category/ from category archive URLs. e.g. example.com/category/" … … 1642 1676 msgstr "" 1643 1677 1644 #: apps/admin/src/features/settings/sections.ts:10 21678 #: apps/admin/src/features/settings/sections.ts:104 1645 1679 msgid "Rename the plugin in wp-admin for a white-label setup." 1646 1680 msgstr "" … … 1650 1684 msgstr "" 1651 1685 1652 #: apps/admin/src/features/settings/SettingsPage.tsx: 7801686 #: apps/admin/src/features/settings/SettingsPage.tsx:819 1653 1687 msgid "Replace the “Flexa SEO” name in the admin menu and this screen." 1654 1688 msgstr "" … … 1678 1712 msgstr "" 1679 1713 1680 #: apps/admin/src/features/settings/sections.ts:12 61714 #: apps/admin/src/features/settings/sections.ts:128 1681 1715 msgid "Reset everything back to a clean slate." 1682 1716 msgstr "" … … 1712 1746 msgstr "" 1713 1747 1714 #: apps/admin/src/features/settings/SettingsPage.tsx:2 411748 #: apps/admin/src/features/settings/SettingsPage.tsx:256 1715 1749 msgid "Rich preview cards on X." 1716 1750 msgstr "" … … 1745 1779 msgstr "" 1746 1780 1747 #: apps/admin/src/features/settings/SettingsPage.tsx:4 331781 #: apps/admin/src/features/settings/SettingsPage.tsx:448 1748 1782 msgid "Save Settings" 1749 1783 msgstr "" 1750 1784 1751 #: apps/admin/src/features/settings/SettingsPage.tsx:1 721785 #: apps/admin/src/features/settings/SettingsPage.tsx:187 1752 1786 msgid "Save failed." 1753 1787 msgstr "" 1754 1788 1755 #: apps/admin/src/features/settings/SettingsPage.tsx:4 091789 #: apps/admin/src/features/settings/SettingsPage.tsx:424 1756 1790 msgid "Save failed:" 1757 1791 msgstr "" 1758 1792 1759 #: apps/admin/src/features/settings/SettingsPage.tsx:4 331793 #: apps/admin/src/features/settings/SettingsPage.tsx:448 1760 1794 msgid "Saving…" 1761 1795 msgstr "" … … 1786 1820 msgstr "" 1787 1821 1788 #: apps/admin/src/features/settings/SettingsPage.tsx:4 211822 #: apps/admin/src/features/settings/SettingsPage.tsx:436 1789 1823 msgid "Search" 1790 1824 msgstr "" … … 1799 1833 msgstr "" 1800 1834 1801 #: apps/admin/src/features/settings/SettingsPage.tsx:3 381835 #: apps/admin/src/features/settings/SettingsPage.tsx:353 1802 1836 msgid "Serve /llms.txt, a curated map of your content for AI." 1803 1837 msgstr "" 1804 1838 1805 #: apps/admin/src/features/settings/SettingsPage.tsx:2 511839 #: apps/admin/src/features/settings/SettingsPage.tsx:266 1806 1840 msgid "Serve /sitemap.xml and per-type sub-sitemaps." 1807 1841 msgstr "" 1808 1842 1809 #: apps/admin/src/features/settings/SettingsPage.tsx:3 541843 #: apps/admin/src/features/settings/SettingsPage.tsx:369 1810 1844 msgid "Serve ?flexa-aeo=md, clean Markdown of any post." 1811 1845 msgstr "" … … 1827 1861 msgstr "" 1828 1862 1829 #: apps/admin/src/features/settings/SettingsPage.tsx:1 711830 #: apps/admin/src/features/settings/SettingsPage.tsx:4 041863 #: apps/admin/src/features/settings/SettingsPage.tsx:186 1864 #: apps/admin/src/features/settings/SettingsPage.tsx:419 1831 1865 msgid "Settings saved." 1832 1866 msgstr "" … … 1846 1880 msgstr "" 1847 1881 1848 #: apps/admin/src/features/settings/SettingsPage.tsx: 7931882 #: apps/admin/src/features/settings/SettingsPage.tsx:832 1849 1883 msgid "Shown when white-label is on. Takes effect after the next page load." 1850 1884 msgstr "" 1851 1885 1852 #: apps/admin/src/features/settings/SettingsPage.tsx:7 321886 #: apps/admin/src/features/settings/SettingsPage.tsx:771 1853 1887 msgid "Site name for AI" 1854 1888 msgstr "" 1855 1889 1856 #: apps/admin/src/features/settings/SettingsPage.tsx:7 511890 #: apps/admin/src/features/settings/SettingsPage.tsx:790 1857 1891 msgid "Site summary for AI" 1892 msgstr "" 1893 1894 #: apps/admin/src/features/settings/SettingsPage.tsx:703 1895 msgid "" 1896 "Site verification codes. Paste the code or the whole meta tag from each " 1897 "console; only the code is kept. The tags are printed on the front page. " 1898 "Leave a field empty to skip it." 1858 1899 msgstr "" 1859 1900 … … 1884 1925 msgstr "" 1885 1926 1886 #: apps/admin/src/features/settings/SettingsPage.tsx:6 041927 #: apps/admin/src/features/settings/SettingsPage.tsx:619 1887 1928 msgid "" 1888 1929 "Square brand logo for the publisher schema (full URL). Falls back to the " … … 1902 1943 msgstr "" 1903 1944 1904 #: apps/admin/src/features/settings/SettingsPage.tsx: 2861945 #: apps/admin/src/features/settings/SettingsPage.tsx:301 1905 1946 msgid "Strip Category Base" 1906 1947 msgstr "" 1907 1948 1908 #: apps/admin/src/features/settings/SettingsPage.tsx: 841949 #: apps/admin/src/features/settings/SettingsPage.tsx:99 1909 1950 msgid "Summary" 1910 1951 msgstr "" 1911 1952 1912 #: apps/admin/src/features/settings/SettingsPage.tsx: 831953 #: apps/admin/src/features/settings/SettingsPage.tsx:98 1913 1954 msgid "Summary with large image" 1914 1955 msgstr "" … … 1930 1971 msgstr "" 1931 1972 1932 #: apps/admin/src/features/settings/SettingsPage.tsx: 4961973 #: apps/admin/src/features/settings/SettingsPage.tsx:511 1933 1974 msgid "The meta description for your front page." 1934 1975 msgstr "" … … 1938 1979 msgstr "" 1939 1980 1940 #: apps/admin/src/features/settings/SettingsPage.tsx:5 731981 #: apps/admin/src/features/settings/SettingsPage.tsx:588 1941 1982 msgid "This site represents" 1942 1983 msgstr "" … … 1948 1989 msgstr "" 1949 1990 1950 #: apps/admin/src/features/settings/SettingsPage.tsx:4 641991 #: apps/admin/src/features/settings/SettingsPage.tsx:479 1951 1992 msgid "Title separator" 1952 1993 msgstr "" … … 1967 2008 msgstr "" 1968 2009 1969 #: apps/admin/src/features/settings/sections.ts:11 42010 #: apps/admin/src/features/settings/sections.ts:116 1970 2011 msgid "Tools" 1971 2012 msgstr "" … … 1979 2020 msgstr "" 1980 2021 1981 #: apps/admin/src/features/settings/sections.ts:8 32022 #: apps/admin/src/features/settings/sections.ts:85 1982 2023 msgid "URLs & link attributes" 1983 2024 msgstr "" … … 1988 2029 msgstr "" 1989 2030 1990 #: apps/admin/src/features/settings/SettingsPage.tsx:5 442031 #: apps/admin/src/features/settings/SettingsPage.tsx:559 1991 2032 msgid "Used when a page has no featured image (full URL)." 1992 2033 msgstr "" … … 2037 2078 msgstr "" 2038 2079 2039 #: apps/admin/src/features/settings/SettingsPage.tsx:6 292080 #: apps/admin/src/features/settings/SettingsPage.tsx:644 2040 2081 msgid "Which content types appear in the sitemap and llms.txt." 2041 2082 msgstr "" 2042 2083 2043 #: apps/admin/src/features/settings/SettingsPage.tsx:6 452084 #: apps/admin/src/features/settings/SettingsPage.tsx:660 2044 2085 msgid "Which term archives appear in the sitemap." 2045 2086 msgstr "" 2046 2087 2047 #: apps/admin/src/features/settings/SettingsPage.tsx: 7792088 #: apps/admin/src/features/settings/SettingsPage.tsx:818 2048 2089 msgid "White-label" 2049 2090 msgstr "" 2050 2091 2051 #: apps/admin/src/features/settings/sections.ts: 992092 #: apps/admin/src/features/settings/sections.ts:101 2052 2093 msgid "White-label the plugin" 2053 2094 msgstr "" … … 2065 2106 msgstr "" 2066 2107 2067 #: apps/admin/src/features/settings/SettingsPage.tsx:5 262108 #: apps/admin/src/features/settings/SettingsPage.tsx:541 2068 2109 msgid "X Card type" 2069 2110 msgstr "" … … 2073 2114 msgstr "" 2074 2115 2116 #: apps/admin/src/features/settings/SettingsPage.tsx:89 2117 msgid "Yandex Webmaster" 2118 msgstr "" 2119 2075 2120 #: apps/admin/src/features/onboarding/MigrationStep.tsx:204 2076 2121 msgid "" … … 2092 2137 msgstr "" 2093 2138 2094 #: apps/admin/src/features/settings/SettingsPage.tsx:8 062139 #: apps/admin/src/features/settings/SettingsPage.tsx:845 2095 2140 msgid "e.g. Acme SEO" 2096 2141 msgstr "" -
flexa-seo-aeo/tags/1.1.0/package.json
r3749993 r3808429 2 2 "name": "flexa-seo-aeo", 3 3 "private": true, 4 "version": "1. 0.0",4 "version": "1.1.0", 5 5 "type": "module", 6 6 "packageManager": "pnpm@9.12.0", -
flexa-seo-aeo/tags/1.1.0/readme.txt
r3756036 r3808429 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.2 7 Stable tag: 1. 0.07 Stable tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 39 39 * Per-post editing in a classic metabox **and** a Gutenberg editor sidebar, with one-click **migration from Yoast, Rank Math and SEOPress**, and a read-fallback for all three so nothing breaks mid-move. 40 40 * `robots.txt` management and optional **IndexNow** ping on publish/update (see *External services* below). 41 * Site verification tags for Google Search Console, Bing, Yandex and Pinterest. Paste the code; nothing is sent anywhere. 41 42 * **Links** controls: strip the category base from archive URLs, redirect attachment pages to their parent (with an orphan fallback), and add `nofollow` / `target="_blank"` to external links at display time. 42 43 … … 153 154 154 155 == Changelog == 156 157 = 1.1.0 = 158 * New: site verification for Google Search Console, Bing Webmaster Tools, Yandex Webmaster and Pinterest, under Settings > Indexing. Paste either the code or the whole `<meta>` tag a console gives you; only the code is stored. The tags are printed on the front page, which is where each console looks for them, and an empty field prints nothing. 159 * New: the warning about another active SEO plugin now says when that plugin will override a noindex. Rank Math and All in One SEO remove the `wp_robots` filter and print their own robots tag, so a post marked noindex here can still be indexed while they are active; SEOPress prints a second robots tag that disagrees with this one. If you dismissed the warning before, it comes back once so you can read the new part. 155 160 156 161 = 1.0.0 = … … 246 251 == Upgrade Notice == 247 252 253 = 1.1.0 = 254 Adds site verification codes for Google, Bing, Yandex and Pinterest, and warns when another SEO plugin would override a noindex set here. 255 248 256 = 1.0.0 = 249 257 Adds one-click migration from SEOPress, lists images from post content in the image sitemap, and restores structured data on the posts page. Leaving SEOPress? Run the migration before you deactivate it. -
flexa-seo-aeo/tags/1.1.0/src/Actions/Front/Metas.php
r3749993 r3808429 137 137 } 138 138 139 // Ownership codes are read from the home page only, and they have no 140 // module toggle: an empty field is the off switch. 141 if ( is_front_page() ) { 142 foreach ( Settings::VERIFICATION_TAGS as $key => $name ) { 143 $code = (string) Settings::get( $key ); 144 if ( '' !== $code ) { 145 $this->meta_tag( 'name', $name, $code ); 146 } 147 } 148 } 149 139 150 echo "<!-- /Flexa SEO -->\n"; 140 151 } -
flexa-seo-aeo/tags/1.1.0/src/Admin/ConflictNotice.php
r3751315 r3808429 21 21 * 22 22 * The dismissal records which plugins were active at the time, so hiding the 23 * notice for Yoast does not also hide it when Rank Math turns up later. 23 * notice for Yoast does not also hide it when Rank Math turns up later. It also 24 * records which revision of the notice was hidden, so a warning added later is 25 * seen by people who dismissed the earlier text. 24 26 */ 25 27 final class ConflictNotice { … … 30 32 31 33 private const ACTION = 'flexa_seo_aeo_dismiss_conflict'; 34 35 /** 36 * Bump when the notice gains something a past dismissal should not hide. 37 * Not the plugin version: that would bring the notice back on every update. 38 * 39 * 2: the noindex warning for Rank Math, All in One SEO and SEOPress. 40 */ 41 private const REVISION = 2; 32 42 33 43 public function register(): void { … … 46 56 } 47 57 48 if ( SeoConflicts::signature() === (string) get_option( self::OPTION_KEY, '' ) ) {58 if ( $this->dismissal_key() === (string) get_option( self::OPTION_KEY, '' ) ) { 49 59 return; 50 60 } … … 65 75 : ''; 66 76 77 $robots = $this->robots_warning(); 78 67 79 printf( 68 '<div class="notice notice-warning"><p><strong>%s</strong> %s</p><p>%s</p>%s <p><a href="%s" class="button button-secondary">%s</a></p></div>',80 '<div class="notice notice-warning"><p><strong>%s</strong> %s</p><p>%s</p>%s%s<p><a href="%s" class="button button-secondary">%s</a></p></div>', 69 81 esc_html( $brand ), 70 82 esc_html( … … 76 88 ), 77 89 esc_html__( 'Two SEO plugins on one site means two canonical tags, two sets of Open Graph tags and often two JSON-LD graphs, and search engines pick between them. Run one and deactivate the other.', 'flexa-seo-aeo' ), 90 // Built from esc_html() in robots_warning(). 91 $robots, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 78 92 // Assembled just above from esc_url() and esc_html__(); escaping the 79 93 // whole string again would print the markup instead of rendering it. … … 82 96 esc_html__( 'I know, hide this', 'flexa-seo-aeo' ) 83 97 ); 98 } 99 100 /** 101 * The one consequence of a pairing that is worse than a duplicate tag: a 102 * post set to noindex here can still be indexed. Said per plugin, because 103 * the advice differs: where the other plugin owns the tag, the setting has 104 * to be made there until it is switched off. 105 */ 106 private function robots_warning(): string { 107 // Mid-sentence, so lower case under white-label. 108 $brand = (bool) Settings::get( 'whitelabel' ) 109 ? __( 'this plugin', 'flexa-seo-aeo' ) 110 : 'Flexa SEO'; 111 112 $html = ''; 113 114 foreach ( SeoConflicts::robots_replaced() as $name ) { 115 $html .= '<p>' . esc_html( 116 sprintf( 117 /* translators: 1: an SEO plugin's name, 2: this plugin's name. */ 118 __( 'While %1$s is active, noindex and nofollow set in %2$s are not applied: it removes WordPress\'s robots output and prints its own robots tag. A post you set to noindex here can still be indexed. Set them in %1$s until you switch that plugin off.', 'flexa-seo-aeo' ), 119 $name, 120 $brand 121 ) 122 ) . '</p>'; 123 } 124 125 $duplicated = SeoConflicts::robots_duplicated(); 126 if ( [] !== $duplicated ) { 127 $html .= '<p>' . esc_html( 128 sprintf( 129 /* translators: %s: comma-separated list of SEO plugin names. */ 130 __( '%s prints a second robots tag, so a post set to noindex here carries one tag saying noindex and another saying index.', 'flexa-seo-aeo' ), 131 implode( ', ', $duplicated ) 132 ) 133 ) . '</p>'; 134 } 135 136 return $html; 84 137 } 85 138 … … 91 144 check_admin_referer( self::ACTION ); 92 145 93 update_option( self::OPTION_KEY, SeoConflicts::signature(), false );146 update_option( self::OPTION_KEY, $this->dismissal_key(), false ); 94 147 95 148 $referer = wp_get_referer(); … … 98 151 } 99 152 153 /** 154 * What a dismissal is stored as: the active plugins plus the notice 155 * revision, e.g. `rankmath,yoast@2`. Values saved before revisions existed 156 * carry no suffix, so they no longer match and the notice shows once more. 157 */ 158 private function dismissal_key(): string { 159 return SeoConflicts::signature() . '@' . self::REVISION; 160 } 161 100 162 private function dismiss_url(): string { 101 163 return wp_nonce_url( admin_url( 'admin-post.php?action=' . self::ACTION ), self::ACTION ); -
flexa-seo-aeo/tags/1.1.0/src/Support/SeoConflicts.php
r3756036 r3808429 46 46 47 47 /** 48 * Plugins that take the robots tag away from this one. Rank Math and All in 49 * One SEO both call `remove_all_filters( 'wp_robots' )` and print a tag of 50 * their own, so a noindex or nofollow set here never reaches the page. 51 * Measured on a post set to noindex: Rank Math 1.0.270 printed `index`, All 52 * in One SEO 5.0.3 printed neither. 53 * 54 * @var list<string> 55 */ 56 private const ROBOTS_REPLACED = [ 'rankmath', 'aioseo' ]; 57 58 /** 59 * Plugins that print a robots tag of their own next to core's. The page 60 * carries both, and on a post set to noindex here they disagree. 61 * 62 * @var list<string> 63 */ 64 private const ROBOTS_DUPLICATED = [ 'seopress' ]; 65 66 /** 48 67 * Every known SEO plugin currently active, as id => label. 49 68 * … … 74 93 75 94 /** 95 * Active plugins that stop this plugin's noindex and nofollow reaching the 96 * page, as id => label. 97 * 98 * @return array<string, string> 99 */ 100 public static function robots_replaced(): array { 101 return array_intersect_key( self::active(), array_flip( self::ROBOTS_REPLACED ) ); 102 } 103 104 /** 105 * Active plugins that print a second robots tag, as id => label. 106 * 107 * @return array<string, string> 108 */ 109 public static function robots_duplicated(): array { 110 return array_intersect_key( self::active(), array_flip( self::ROBOTS_DUPLICATED ) ); 111 } 112 113 /** 76 114 * A stable fingerprint of what is active right now, so a dismissal applies 77 115 * to the situation the user saw and a newly activated plugin raises the -
flexa-seo-aeo/tags/1.1.0/src/Support/Settings.php
r3749993 r3808429 71 71 72 72 /** 73 * Webmaster verification settings => the `<meta name>` each one prints. 74 * Every one is a site-ownership code pasted from the engine's console. 75 * 76 * @var array<string, string> 77 */ 78 public const VERIFICATION_TAGS = [ 79 'verify_google' => 'google-site-verification', 80 'verify_bing' => 'msvalidate.01', 81 'verify_yandex' => 'yandex-verification', 82 'verify_pinterest' => 'p:domain_verify', 83 ]; 84 85 /** 73 86 * Defaults for the nested `aeo` group — the plugin's core differentiator. 74 87 * All inert by default; the AEO endpoints self-gate on `enabled`. … … 115 128 $defaults['aeo'] = self::aeo_defaults(); 116 129 130 foreach ( array_keys( self::VERIFICATION_TAGS ) as $key ) { 131 $defaults[ $key ] = ''; // Site-ownership code, printed on the front page only. 132 } 133 117 134 return $defaults; 118 135 } … … 304 321 } 305 322 323 foreach ( array_keys( self::VERIFICATION_TAGS ) as $key ) { 324 if ( array_key_exists( $key, $incoming ) ) { 325 $clean[ $key ] = self::sanitize_verification( $incoming[ $key ] ); 326 } 327 } 328 306 329 if ( array_key_exists( 'aeo', $incoming ) && is_array( $incoming['aeo'] ) ) { 307 330 $clean['aeo'] = self::sanitize_aeo( $incoming['aeo'] ); … … 394 417 if ( isset( $stored['whitelabel_name'] ) && is_string( $stored['whitelabel_name'] ) ) { 395 418 $out['whitelabel_name'] = $stored['whitelabel_name']; 419 } 420 foreach ( array_keys( self::VERIFICATION_TAGS ) as $key ) { 421 if ( isset( $stored[ $key ] ) ) { 422 $out[ $key ] = self::sanitize_verification( $stored[ $key ] ); 423 } 396 424 } 397 425 … … 521 549 522 550 /** 551 * A webmaster verification code. Search consoles hand out the whole 552 * `<meta name="…" content="…">` tag, and that is what most people paste, 553 * so the content attribute is lifted out of it first. What is kept is the 554 * character set every engine's codes use (letters, digits, `-`, `_`, `=`, 555 * `.`, `+`, `/`), which also rules out a quote breaking the attribute. 556 */ 557 private static function sanitize_verification( mixed $value ): string { 558 $value = is_scalar( $value ) ? trim( (string) $value ) : ''; 559 560 if ( preg_match( '/content\s*=\s*(["\'])(.*?)\1/i', $value, $m ) ) { 561 $value = $m[2]; 562 } 563 564 return substr( (string) preg_replace( '/[^A-Za-z0-9_=.+\/-]/', '', $value ), 0, 128 ); 565 } 566 567 /** 523 568 * Deterministic boolean coercion mirroring rest_sanitize_boolean() 524 569 * semantics. Kept local so the schema never depends on a templated WP stub -
flexa-seo-aeo/trunk/apps/admin/src/features/settings/SettingsPage.tsx
r3749993 r3808429 21 21 Search, 22 22 Share2, 23 ShieldCheck, 23 24 ShoppingBag, 24 25 Tag, … … 72 73 "robots_txt", 73 74 "whitelabel_name", 75 "verify_google", 76 "verify_bing", 77 "verify_yandex", 78 "verify_pinterest", 74 79 ] as const; 75 80 76 81 const ARRAY_KEYS = ["sitemap_post_types", "sitemap_taxonomies"] as const; 82 83 const VERIFICATION_FIELDS: { 84 key: "verify_google" | "verify_bing" | "verify_yandex" | "verify_pinterest"; 85 title: string; 86 }[] = [ 87 { key: "verify_google", title: __("Google Search Console") }, 88 { key: "verify_bing", title: __("Bing Webmaster Tools") }, 89 { key: "verify_yandex", title: __("Yandex Webmaster") }, 90 { key: "verify_pinterest", title: __("Pinterest") }, 91 ]; 77 92 78 93 const SEPARATORS = ["-", "–", "—", "·", "•", "|", "/", "»", ">"]; … … 684 699 </StackedField> 685 700 </div> 701 <div className={cn(ROW_DIVIDER, "fsa:space-y-5 fsa:p-5")}> 702 <p className="fsa:text-xs fsa:text-slate-500"> 703 {__( 704 "Site verification codes. Paste the code or the whole meta tag from each console; only the code is kept. The tags are printed on the front page. Leave a field empty to skip it.", 705 )} 706 </p> 707 {VERIFICATION_FIELDS.map(({ key, title }) => ( 708 <StackedField 709 key={key} 710 id={`flexa-seo-aeo-${key}`} 711 icon={ShieldCheck} 712 title={title} 713 > 714 <Input 715 id={`flexa-seo-aeo-${key}`} 716 value={form[key]} 717 onChange={(e) => setString(key, e.target.value)} 718 spellCheck={false} 719 autoComplete="off" 720 className="fsa:font-mono" 721 /> 722 </StackedField> 723 ))} 724 </div> 686 725 </div> 687 726 )} -
flexa-seo-aeo/trunk/apps/admin/src/features/settings/sections.ts
r3756036 r3808429 73 73 id: "indexing", 74 74 title: __("Indexing"), 75 subtitle: __("IndexNow & robots.txt"),75 subtitle: __("IndexNow, robots.txt, verification"), 76 76 icon: Rss, 77 77 paneTitle: __("Indexing"), 78 paneSubtitle: __("Push instant index signals and tune the virtual robots.txt."), 78 paneSubtitle: __( 79 "Push instant index signals, tune the virtual robots.txt, and verify the site with search consoles.", 80 ), 79 81 }, 80 82 { -
flexa-seo-aeo/trunk/apps/admin/src/features/settings/useSettings.ts
r3749993 r3808429 53 53 sitemap_post_types: string[]; 54 54 sitemap_taxonomies: string[]; 55 /** Webmaster ownership codes, printed on the front page only. */ 56 verify_google: string; 57 verify_bing: string; 58 verify_yandex: string; 59 verify_pinterest: string; 55 60 aeo: AeoSettings; 56 61 } -
flexa-seo-aeo/trunk/assets/dist/.vite/manifest.json
r3756036 r3808429 1 1 { 2 2 "src/main.tsx": { 3 "file": "assets/main- CsZuqLt0.js",3 "file": "assets/main-_UC8bhmt.js", 4 4 "name": "main", 5 5 "src": "src/main.tsx", -
flexa-seo-aeo/trunk/flexa-seo-aeo.php
r3756036 r3808429 3 3 * Plugin Name: Flexa SEO - AEO | AI SEO & Answer Engine Optimization 4 4 * Description: Complete WordPress SEO (schema, sitemaps, meta, Open Graph), plus a per-post Answer-Engine Readiness score and a site health dashboard for AI search. 5 * Version: 1. 0.05 * Version: 1.1.0 6 6 * Requires at least: 6.5 7 7 * Requires PHP: 8.2 … … 31 31 } 32 32 33 define( 'FLEXA_SEO_AEO_VERSION', '1. 0.0' );33 define( 'FLEXA_SEO_AEO_VERSION', '1.1.0' ); 34 34 define( 'FLEXA_SEO_AEO_FILE', __FILE__ ); 35 35 define( 'FLEXA_SEO_AEO_PATH', plugin_dir_path( __FILE__ ) ); -
flexa-seo-aeo/trunk/i18n/languages/flexa-seo-aeo.pot
r3756036 r3808429 4 4 msgstr "" 5 5 "Project-Id-Version: Flexa SEO - AEO | AI SEO & Answer Engine Optimization " 6 "1. 0.0\n"6 "1.1.0\n" 7 7 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexa-seo-aeo\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 11 11 "Content-Type: text/plain; charset=UTF-8\n" 12 12 "Content-Transfer-Encoding: 8bit\n" 13 "POT-Creation-Date: 2026-1 0-20T07:11:20+00:00\n"13 "POT-Creation-Date: 2026-11-18T01:59:48+00:00\n" 14 14 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 15 15 "X-Generator: WP-CLI 2.10.0\n" … … 156 156 msgstr "" 157 157 158 #: src/Admin/ConflictNotice.php: 53158 #: src/Admin/ConflictNotice.php:63 159 159 msgid "This plugin" 160 160 msgstr "" 161 161 162 #: src/Admin/ConflictNotice.php: 63162 #: src/Admin/ConflictNotice.php:73 163 163 msgid "See which tags each pairing actually duplicates" 164 164 msgstr "" 165 165 166 166 #. translators: %s: comma-separated list of SEO plugin names. 167 #: src/Admin/ConflictNotice.php: 73167 #: src/Admin/ConflictNotice.php:85 168 168 msgid "is running alongside %s." 169 169 msgstr "" 170 170 171 #: src/Admin/ConflictNotice.php: 77171 #: src/Admin/ConflictNotice.php:89 172 172 msgid "" 173 173 "Two SEO plugins on one site means two canonical tags, two sets of Open Graph " … … 176 176 msgstr "" 177 177 178 #: src/Admin/ConflictNotice.php: 82178 #: src/Admin/ConflictNotice.php:96 179 179 msgid "I know, hide this" 180 180 msgstr "" 181 181 182 #: src/Admin/ConflictNotice.php:88 182 #: src/Admin/ConflictNotice.php:109 183 msgid "this plugin" 184 msgstr "" 185 186 #. translators: 1: an SEO plugin's name, 2: this plugin's name. 187 #: src/Admin/ConflictNotice.php:118 188 msgid "" 189 "While %1$s is active, noindex and nofollow set in %2$s are not applied: it " 190 "removes WordPress's robots output and prints its own robots tag. A post you " 191 "set to noindex here can still be indexed. Set them in %1$s until you switch " 192 "that plugin off." 193 msgstr "" 194 195 #. translators: %s: comma-separated list of SEO plugin names. 196 #: src/Admin/ConflictNotice.php:130 197 msgid "" 198 "%s prints a second robots tag, so a post set to noindex here carries one tag " 199 "saying noindex and another saying index." 200 msgstr "" 201 202 #: src/Admin/ConflictNotice.php:141 183 203 msgid "You are not allowed to do that." 184 204 msgstr "" … … 915 935 msgstr "" 916 936 917 #: apps/admin/src/features/settings/SettingsPage.tsx:7 52937 #: apps/admin/src/features/settings/SettingsPage.tsx:791 918 938 msgid "" 919 939 "A short description answer engines can quote. Shown at the top of llms.txt." … … 926 946 msgstr "" 927 947 928 #: apps/admin/src/features/settings/sections.ts:9 0929 #: apps/admin/src/features/settings/sections.ts:9 3948 #: apps/admin/src/features/settings/sections.ts:92 949 #: apps/admin/src/features/settings/sections.ts:95 930 950 msgid "AEO Core" 931 951 msgstr "" … … 943 963 msgstr "" 944 964 945 #: apps/admin/src/features/settings/SettingsPage.tsx:3 60965 #: apps/admin/src/features/settings/SettingsPage.tsx:375 946 966 msgid "AEO schema" 947 967 msgstr "" … … 967 987 msgstr "" 968 988 969 #: apps/admin/src/features/settings/SettingsPage.tsx:2 58989 #: apps/admin/src/features/settings/SettingsPage.tsx:273 970 990 msgid "Add <image:image> entries to the XML sitemap." 971 991 msgstr "" 972 992 973 #: apps/admin/src/features/settings/SettingsPage.tsx:3 08993 #: apps/admin/src/features/settings/SettingsPage.tsx:323 974 994 msgid "" 975 995 "Add rel=\"nofollow\" to external links in your content. Applied when the " … … 977 997 msgstr "" 978 998 979 #: apps/admin/src/features/settings/SettingsPage.tsx:3 17999 #: apps/admin/src/features/settings/SettingsPage.tsx:332 980 1000 msgid "" 981 1001 "Add rel=\"nofollow\" to links pointing to external image files. Applied when " … … 983 1003 msgstr "" 984 1004 985 #: apps/admin/src/features/settings/SettingsPage.tsx:3 261005 #: apps/admin/src/features/settings/SettingsPage.tsx:341 986 1006 msgid "" 987 1007 "Add target=\"_blank\" to external links so they open in a new tab. Applied " … … 989 1009 msgstr "" 990 1010 991 #: apps/admin/src/features/settings/SettingsPage.tsx:3 451011 #: apps/admin/src/features/settings/SettingsPage.tsx:360 992 1012 msgid "Advertise a Markdown variant of each page to AI crawlers." 993 1013 msgstr "" 994 1014 995 #: apps/admin/src/features/settings/SettingsPage.tsx:3 441015 #: apps/admin/src/features/settings/SettingsPage.tsx:359 996 1016 msgid "Agent Readiness" 997 1017 msgstr "" … … 1009 1029 msgstr "" 1010 1030 1011 #: apps/admin/src/features/settings/sections.ts:9 11031 #: apps/admin/src/features/settings/sections.ts:93 1012 1032 msgid "Answer-engine optimization" 1013 1033 msgstr "" 1014 1034 1015 #: apps/admin/src/features/settings/SettingsPage.tsx:6 701035 #: apps/admin/src/features/settings/SettingsPage.tsx:685 1016 1036 msgid "" 1017 1037 "Appended to the virtual robots.txt. The sitemap line is added automatically." … … 1034 1054 msgstr "" 1035 1055 1036 #: apps/admin/src/features/settings/SettingsPage.tsx:2 241056 #: apps/admin/src/features/settings/SettingsPage.tsx:239 1037 1057 msgid "Auto-fill missing image alt attributes." 1038 1058 msgstr "" … … 1042 1062 msgstr "" 1043 1063 1044 #: apps/admin/src/features/settings/sections.ts:1 181064 #: apps/admin/src/features/settings/sections.ts:120 1045 1065 msgid "Back up your configuration or move it between sites." 1046 1066 msgstr "" … … 1053 1073 msgstr "" 1054 1074 1075 #: apps/admin/src/features/settings/SettingsPage.tsx:88 1076 msgid "Bing Webmaster Tools" 1077 msgstr "" 1078 1055 1079 #: apps/admin/src/features/onboarding/WelcomeStep.tsx:28 1056 1080 msgid "Blog" 1057 1081 msgstr "" 1058 1082 1059 #: apps/admin/src/features/settings/SettingsPage.tsx: 7921083 #: apps/admin/src/features/settings/SettingsPage.tsx:831 1060 1084 msgid "Brand name" 1061 1085 msgstr "" 1062 1086 1063 #: apps/admin/src/features/settings/sections.ts:10 11064 #: apps/admin/src/features/settings/sections.ts: 981087 #: apps/admin/src/features/settings/sections.ts:100 1088 #: apps/admin/src/features/settings/sections.ts:103 1065 1089 msgid "Branding" 1066 1090 msgstr "" … … 1070 1094 msgstr "" 1071 1095 1072 #: apps/admin/src/features/settings/sections.ts:11 01096 #: apps/admin/src/features/settings/sections.ts:112 1073 1097 msgid "" 1074 1098 "Bring your existing SEO meta over from Yoast SEO, Rank Math or SEOPress." … … 1081 1105 msgstr "" 1082 1106 1083 #: apps/admin/src/features/settings/sections.ts:8 61107 #: apps/admin/src/features/settings/sections.ts:88 1084 1108 msgid "Clean up URLs and control how links behave on the front end." 1085 1109 msgstr "" … … 1097 1121 msgstr "" 1098 1122 1099 #: apps/admin/src/features/settings/SettingsPage.tsx: 3961123 #: apps/admin/src/features/settings/SettingsPage.tsx:411 1100 1124 msgid "" 1101 1125 "Configure how Flexa SEO optimizes your site for search and answer engines." … … 1133 1157 msgstr "" 1134 1158 1135 #: apps/admin/src/features/settings/SettingsPage.tsx:6 691159 #: apps/admin/src/features/settings/SettingsPage.tsx:684 1136 1160 msgid "Custom robots.txt rules" 1137 1161 msgstr "" 1138 1162 1139 #: apps/admin/src/features/settings/sections.ts:12 21140 #: apps/admin/src/features/settings/sections.ts:12 51163 #: apps/admin/src/features/settings/sections.ts:124 1164 #: apps/admin/src/features/settings/sections.ts:127 1141 1165 msgid "Danger Zone" 1142 1166 msgstr "" … … 1156 1180 msgstr "" 1157 1181 1158 #: apps/admin/src/features/settings/SettingsPage.tsx:5 431182 #: apps/admin/src/features/settings/SettingsPage.tsx:558 1159 1183 msgid "Default share image" 1160 1184 msgstr "" 1161 1185 1162 #: apps/admin/src/features/settings/sections.ts:12 31186 #: apps/admin/src/features/settings/sections.ts:125 1163 1187 msgid "Destructive actions" 1164 1188 msgstr "" … … 1201 1225 msgstr "" 1202 1226 1203 #: apps/admin/src/features/settings/SettingsPage.tsx:3 611227 #: apps/admin/src/features/settings/SettingsPage.tsx:376 1204 1228 msgid "Emit Article / FAQPage / WebSite JSON-LD tuned for answer engines." 1205 1229 msgstr "" 1206 1230 1207 #: apps/admin/src/features/settings/SettingsPage.tsx:3 741231 #: apps/admin/src/features/settings/SettingsPage.tsx:389 1208 1232 msgid "" 1209 1233 "Emit Product / Offer JSON-LD (price, availability, rating) + OG product tags " … … 1215 1239 msgstr "" 1216 1240 1217 #: apps/admin/src/features/settings/SettingsPage.tsx:2 171241 #: apps/admin/src/features/settings/SettingsPage.tsx:232 1218 1242 msgid "Enable breadcrumb trail + BreadcrumbList schema." 1219 1243 msgstr "" 1220 1244 1221 #: apps/admin/src/features/settings/SettingsPage.tsx:2 651245 #: apps/admin/src/features/settings/SettingsPage.tsx:280 1222 1246 msgid "Enable the [flexa_seo_aeo_sitemap] shortcode." 1223 1247 msgstr "" … … 1255 1279 msgstr "" 1256 1280 1257 #: apps/admin/src/features/settings/SettingsPage.tsx:2 341281 #: apps/admin/src/features/settings/SettingsPage.tsx:249 1258 1282 msgid "Facebook / LinkedIn / chat-app preview tags." 1259 1283 msgstr "" 1260 1284 1261 #: apps/admin/src/features/settings/SettingsPage.tsx:1 561285 #: apps/admin/src/features/settings/SettingsPage.tsx:171 1262 1286 msgid "Failed to load settings:" 1263 1287 msgstr "" … … 1299 1323 msgstr "" 1300 1324 1301 #: apps/admin/src/features/settings/SettingsPage.tsx:264 1325 #: apps/admin/src/features/settings/SettingsPage.tsx:87 1326 msgid "Google Search Console" 1327 msgstr "" 1328 1329 #: apps/admin/src/features/settings/SettingsPage.tsx:279 1302 1330 msgid "HTML sitemap" 1303 1331 msgstr "" 1304 1332 1305 #: apps/admin/src/features/settings/SettingsPage.tsx: 4951333 #: apps/admin/src/features/settings/SettingsPage.tsx:510 1306 1334 msgid "Homepage description" 1307 1335 msgstr "" 1308 1336 1309 #: apps/admin/src/features/settings/SettingsPage.tsx:4 781337 #: apps/admin/src/features/settings/SettingsPage.tsx:493 1310 1338 msgid "Homepage title" 1311 1339 msgstr "" … … 1327 1355 msgstr "" 1328 1356 1357 #: apps/admin/src/features/settings/sections.ts:119 1358 msgid "Import & Export" 1359 msgstr "" 1360 1329 1361 #: apps/admin/src/features/settings/sections.ts:117 1330 msgid "Import & Export"1331 msgstr ""1332 1333 #: apps/admin/src/features/settings/sections.ts:1151334 1362 msgid "Import & export settings" 1335 1363 msgstr "" 1336 1364 1337 #: apps/admin/src/features/settings/sections.ts:10 71365 #: apps/admin/src/features/settings/sections.ts:109 1338 1366 msgid "Import from Yoast, Rank Math & SEOPress" 1339 1367 msgstr "" … … 1347 1375 msgstr "" 1348 1376 1349 #: apps/admin/src/features/settings/SettingsPage.tsx:2 571377 #: apps/admin/src/features/settings/SettingsPage.tsx:272 1350 1378 msgid "Include images" 1351 1379 msgstr "" 1352 1380 1353 #: apps/admin/src/features/settings/SettingsPage.tsx:6 281381 #: apps/admin/src/features/settings/SettingsPage.tsx:643 1354 1382 msgid "Included post types" 1355 1383 msgstr "" 1356 1384 1357 #: apps/admin/src/features/settings/SettingsPage.tsx:6 441385 #: apps/admin/src/features/settings/SettingsPage.tsx:659 1358 1386 msgid "Included taxonomies" 1359 1387 msgstr "" 1360 1388 1361 1389 #: apps/admin/src/features/settings/sections.ts:75 1362 msgid "IndexNow & robots.txt"1390 msgid "IndexNow, robots.txt, verification" 1363 1391 msgstr "" 1364 1392 … … 1400 1428 msgstr "" 1401 1429 1402 #: apps/admin/src/features/settings/SettingsPage.tsx:4 791430 #: apps/admin/src/features/settings/SettingsPage.tsx:494 1403 1431 msgid "Leave blank to use %%sitename%% %%sep%% %%tagline%%." 1404 1432 msgstr "" … … 1408 1436 msgstr "" 1409 1437 1410 #: apps/admin/src/features/settings/sections.ts:8 21411 #: apps/admin/src/features/settings/sections.ts:8 51438 #: apps/admin/src/features/settings/sections.ts:84 1439 #: apps/admin/src/features/settings/sections.ts:87 1412 1440 msgid "Links" 1413 1441 msgstr "" … … 1417 1445 msgstr "" 1418 1446 1419 #: apps/admin/src/features/settings/SettingsPage.tsx:1 491447 #: apps/admin/src/features/settings/SettingsPage.tsx:164 1420 1448 msgid "Loading settings…" 1421 1449 msgstr "" … … 1425 1453 msgstr "" 1426 1454 1427 #: apps/admin/src/features/settings/SettingsPage.tsx:6 031455 #: apps/admin/src/features/settings/SettingsPage.tsx:618 1428 1456 msgid "Logo" 1429 1457 msgstr "" 1430 1458 1431 #: apps/admin/src/features/settings/sections.ts:9 41459 #: apps/admin/src/features/settings/sections.ts:96 1432 1460 msgid "Make your content first-class for AI answer engines." 1433 1461 msgstr "" … … 1440 1468 #: apps/admin/src/features/onboarding/useOnboarding.ts:159 1441 1469 #: apps/admin/src/features/settings/MigrationPane.tsx:142 1442 #: apps/admin/src/features/settings/sections.ts:10 61470 #: apps/admin/src/features/settings/sections.ts:108 1443 1471 msgid "Migrate" 1444 1472 msgstr "" 1445 1473 1446 #: apps/admin/src/features/settings/sections.ts:1 091474 #: apps/admin/src/features/settings/sections.ts:111 1447 1475 msgid "Migrate from another plugin" 1448 1476 msgstr "" … … 1453 1481 msgstr "" 1454 1482 1455 #: apps/admin/src/features/settings/SettingsPage.tsx: 5871483 #: apps/admin/src/features/settings/SettingsPage.tsx:602 1456 1484 msgid "Name" 1457 1485 msgstr "" … … 1473 1501 msgstr "" 1474 1502 1475 #: apps/admin/src/features/settings/SettingsPage.tsx:3 071503 #: apps/admin/src/features/settings/SettingsPage.tsx:322 1476 1504 msgid "Nofollow External Links" 1477 1505 msgstr "" 1478 1506 1479 #: apps/admin/src/features/settings/SettingsPage.tsx:3 161507 #: apps/admin/src/features/settings/SettingsPage.tsx:331 1480 1508 msgid "Nofollow Image File Links" 1481 1509 msgstr "" 1482 1510 1483 #: apps/admin/src/features/settings/SettingsPage.tsx:10 451511 #: apps/admin/src/features/settings/SettingsPage.tsx:1084 1484 1512 msgid "Nothing available." 1485 1513 msgstr "" … … 1493 1521 msgstr "" 1494 1522 1495 #: apps/admin/src/features/settings/SettingsPage.tsx:3 251523 #: apps/admin/src/features/settings/SettingsPage.tsx:340 1496 1524 msgid "Open External Links in New Tab/Window" 1497 1525 msgstr "" … … 1506 1534 msgstr "" 1507 1535 1508 #: apps/admin/src/features/settings/SettingsPage.tsx:4 171536 #: apps/admin/src/features/settings/SettingsPage.tsx:432 1509 1537 msgid "Open command palette" 1510 1538 msgstr "" … … 1522 1550 msgstr "" 1523 1551 1524 #: apps/admin/src/features/settings/SettingsPage.tsx: 881552 #: apps/admin/src/features/settings/SettingsPage.tsx:103 1525 1553 #: apps/admin/src/features/settings/sections.ts:58 1526 1554 #: apps/admin/src/features/settings/sections.ts:61 … … 1528 1556 msgstr "" 1529 1557 1530 #: apps/admin/src/features/settings/SettingsPage.tsx: 5881558 #: apps/admin/src/features/settings/SettingsPage.tsx:603 1531 1559 msgid "" 1532 1560 "Organization or person name for the publisher schema. Defaults to the site " … … 1534 1562 msgstr "" 1535 1563 1536 #: apps/admin/src/features/settings/SettingsPage.tsx:2 101564 #: apps/admin/src/features/settings/SettingsPage.tsx:225 1537 1565 msgid "Output the <title> and meta description tags." 1538 1566 msgstr "" … … 1542 1570 msgstr "" 1543 1571 1544 #: apps/admin/src/features/settings/SettingsPage.tsx:7 331572 #: apps/admin/src/features/settings/SettingsPage.tsx:772 1545 1573 msgid "Overrides the site title in llms.txt. Defaults to the site title." 1546 1574 msgstr "" … … 1570 1598 msgstr "" 1571 1599 1572 #: apps/admin/src/features/settings/SettingsPage.tsx: 891600 #: apps/admin/src/features/settings/SettingsPage.tsx:104 1573 1601 msgid "Person" 1574 1602 msgstr "" … … 1578 1606 msgstr "" 1579 1607 1580 #: apps/admin/src/features/settings/SettingsPage.tsx:2 751608 #: apps/admin/src/features/settings/SettingsPage.tsx:290 1581 1609 msgid "" 1582 1610 "Ping IndexNow when content is published or updated for near-instant indexing." 1583 1611 msgstr "" 1584 1612 1585 #: apps/admin/src/features/settings/SettingsPage.tsx:353 1613 #: apps/admin/src/features/settings/SettingsPage.tsx:90 1614 msgid "Pinterest" 1615 msgstr "" 1616 1617 #: apps/admin/src/features/settings/SettingsPage.tsx:368 1586 1618 msgid "Plain-text export" 1587 1619 msgstr "" … … 1597 1629 1598 1630 #: apps/admin/src/features/settings/sections.ts:78 1599 msgid "Push instant index signals and tune the virtual robots.txt." 1631 msgid "" 1632 "Push instant index signals, tune the virtual robots.txt, and verify the site " 1633 "with search consoles." 1600 1634 msgstr "" 1601 1635 … … 1618 1652 msgstr "" 1619 1653 1620 #: apps/admin/src/features/settings/SettingsPage.tsx: 2951654 #: apps/admin/src/features/settings/SettingsPage.tsx:310 1621 1655 msgid "Redirect Attachments" 1622 1656 msgstr "" 1623 1657 1624 #: apps/admin/src/features/settings/SettingsPage.tsx: 6961658 #: apps/admin/src/features/settings/SettingsPage.tsx:735 1625 1659 msgid "Redirect Orphan Attachments" 1626 1660 msgstr "" 1627 1661 1628 #: apps/admin/src/features/settings/SettingsPage.tsx: 2961662 #: apps/admin/src/features/settings/SettingsPage.tsx:311 1629 1663 msgid "Redirect attachment page URLs to the post they appear in." 1630 1664 msgstr "" 1631 1665 1632 #: apps/admin/src/features/settings/SettingsPage.tsx: 6971666 #: apps/admin/src/features/settings/SettingsPage.tsx:736 1633 1667 msgid "" 1634 1668 "Redirect attachments without a parent post to this URL. Leave empty for no " … … 1636 1670 msgstr "" 1637 1671 1638 #: apps/admin/src/features/settings/SettingsPage.tsx: 2871672 #: apps/admin/src/features/settings/SettingsPage.tsx:302 1639 1673 msgid "" 1640 1674 "Remove /category/ from category archive URLs. e.g. example.com/category/" … … 1642 1676 msgstr "" 1643 1677 1644 #: apps/admin/src/features/settings/sections.ts:10 21678 #: apps/admin/src/features/settings/sections.ts:104 1645 1679 msgid "Rename the plugin in wp-admin for a white-label setup." 1646 1680 msgstr "" … … 1650 1684 msgstr "" 1651 1685 1652 #: apps/admin/src/features/settings/SettingsPage.tsx: 7801686 #: apps/admin/src/features/settings/SettingsPage.tsx:819 1653 1687 msgid "Replace the “Flexa SEO” name in the admin menu and this screen." 1654 1688 msgstr "" … … 1678 1712 msgstr "" 1679 1713 1680 #: apps/admin/src/features/settings/sections.ts:12 61714 #: apps/admin/src/features/settings/sections.ts:128 1681 1715 msgid "Reset everything back to a clean slate." 1682 1716 msgstr "" … … 1712 1746 msgstr "" 1713 1747 1714 #: apps/admin/src/features/settings/SettingsPage.tsx:2 411748 #: apps/admin/src/features/settings/SettingsPage.tsx:256 1715 1749 msgid "Rich preview cards on X." 1716 1750 msgstr "" … … 1745 1779 msgstr "" 1746 1780 1747 #: apps/admin/src/features/settings/SettingsPage.tsx:4 331781 #: apps/admin/src/features/settings/SettingsPage.tsx:448 1748 1782 msgid "Save Settings" 1749 1783 msgstr "" 1750 1784 1751 #: apps/admin/src/features/settings/SettingsPage.tsx:1 721785 #: apps/admin/src/features/settings/SettingsPage.tsx:187 1752 1786 msgid "Save failed." 1753 1787 msgstr "" 1754 1788 1755 #: apps/admin/src/features/settings/SettingsPage.tsx:4 091789 #: apps/admin/src/features/settings/SettingsPage.tsx:424 1756 1790 msgid "Save failed:" 1757 1791 msgstr "" 1758 1792 1759 #: apps/admin/src/features/settings/SettingsPage.tsx:4 331793 #: apps/admin/src/features/settings/SettingsPage.tsx:448 1760 1794 msgid "Saving…" 1761 1795 msgstr "" … … 1786 1820 msgstr "" 1787 1821 1788 #: apps/admin/src/features/settings/SettingsPage.tsx:4 211822 #: apps/admin/src/features/settings/SettingsPage.tsx:436 1789 1823 msgid "Search" 1790 1824 msgstr "" … … 1799 1833 msgstr "" 1800 1834 1801 #: apps/admin/src/features/settings/SettingsPage.tsx:3 381835 #: apps/admin/src/features/settings/SettingsPage.tsx:353 1802 1836 msgid "Serve /llms.txt, a curated map of your content for AI." 1803 1837 msgstr "" 1804 1838 1805 #: apps/admin/src/features/settings/SettingsPage.tsx:2 511839 #: apps/admin/src/features/settings/SettingsPage.tsx:266 1806 1840 msgid "Serve /sitemap.xml and per-type sub-sitemaps." 1807 1841 msgstr "" 1808 1842 1809 #: apps/admin/src/features/settings/SettingsPage.tsx:3 541843 #: apps/admin/src/features/settings/SettingsPage.tsx:369 1810 1844 msgid "Serve ?flexa-aeo=md, clean Markdown of any post." 1811 1845 msgstr "" … … 1827 1861 msgstr "" 1828 1862 1829 #: apps/admin/src/features/settings/SettingsPage.tsx:1 711830 #: apps/admin/src/features/settings/SettingsPage.tsx:4 041863 #: apps/admin/src/features/settings/SettingsPage.tsx:186 1864 #: apps/admin/src/features/settings/SettingsPage.tsx:419 1831 1865 msgid "Settings saved." 1832 1866 msgstr "" … … 1846 1880 msgstr "" 1847 1881 1848 #: apps/admin/src/features/settings/SettingsPage.tsx: 7931882 #: apps/admin/src/features/settings/SettingsPage.tsx:832 1849 1883 msgid "Shown when white-label is on. Takes effect after the next page load." 1850 1884 msgstr "" 1851 1885 1852 #: apps/admin/src/features/settings/SettingsPage.tsx:7 321886 #: apps/admin/src/features/settings/SettingsPage.tsx:771 1853 1887 msgid "Site name for AI" 1854 1888 msgstr "" 1855 1889 1856 #: apps/admin/src/features/settings/SettingsPage.tsx:7 511890 #: apps/admin/src/features/settings/SettingsPage.tsx:790 1857 1891 msgid "Site summary for AI" 1892 msgstr "" 1893 1894 #: apps/admin/src/features/settings/SettingsPage.tsx:703 1895 msgid "" 1896 "Site verification codes. Paste the code or the whole meta tag from each " 1897 "console; only the code is kept. The tags are printed on the front page. " 1898 "Leave a field empty to skip it." 1858 1899 msgstr "" 1859 1900 … … 1884 1925 msgstr "" 1885 1926 1886 #: apps/admin/src/features/settings/SettingsPage.tsx:6 041927 #: apps/admin/src/features/settings/SettingsPage.tsx:619 1887 1928 msgid "" 1888 1929 "Square brand logo for the publisher schema (full URL). Falls back to the " … … 1902 1943 msgstr "" 1903 1944 1904 #: apps/admin/src/features/settings/SettingsPage.tsx: 2861945 #: apps/admin/src/features/settings/SettingsPage.tsx:301 1905 1946 msgid "Strip Category Base" 1906 1947 msgstr "" 1907 1948 1908 #: apps/admin/src/features/settings/SettingsPage.tsx: 841949 #: apps/admin/src/features/settings/SettingsPage.tsx:99 1909 1950 msgid "Summary" 1910 1951 msgstr "" 1911 1952 1912 #: apps/admin/src/features/settings/SettingsPage.tsx: 831953 #: apps/admin/src/features/settings/SettingsPage.tsx:98 1913 1954 msgid "Summary with large image" 1914 1955 msgstr "" … … 1930 1971 msgstr "" 1931 1972 1932 #: apps/admin/src/features/settings/SettingsPage.tsx: 4961973 #: apps/admin/src/features/settings/SettingsPage.tsx:511 1933 1974 msgid "The meta description for your front page." 1934 1975 msgstr "" … … 1938 1979 msgstr "" 1939 1980 1940 #: apps/admin/src/features/settings/SettingsPage.tsx:5 731981 #: apps/admin/src/features/settings/SettingsPage.tsx:588 1941 1982 msgid "This site represents" 1942 1983 msgstr "" … … 1948 1989 msgstr "" 1949 1990 1950 #: apps/admin/src/features/settings/SettingsPage.tsx:4 641991 #: apps/admin/src/features/settings/SettingsPage.tsx:479 1951 1992 msgid "Title separator" 1952 1993 msgstr "" … … 1967 2008 msgstr "" 1968 2009 1969 #: apps/admin/src/features/settings/sections.ts:11 42010 #: apps/admin/src/features/settings/sections.ts:116 1970 2011 msgid "Tools" 1971 2012 msgstr "" … … 1979 2020 msgstr "" 1980 2021 1981 #: apps/admin/src/features/settings/sections.ts:8 32022 #: apps/admin/src/features/settings/sections.ts:85 1982 2023 msgid "URLs & link attributes" 1983 2024 msgstr "" … … 1988 2029 msgstr "" 1989 2030 1990 #: apps/admin/src/features/settings/SettingsPage.tsx:5 442031 #: apps/admin/src/features/settings/SettingsPage.tsx:559 1991 2032 msgid "Used when a page has no featured image (full URL)." 1992 2033 msgstr "" … … 2037 2078 msgstr "" 2038 2079 2039 #: apps/admin/src/features/settings/SettingsPage.tsx:6 292080 #: apps/admin/src/features/settings/SettingsPage.tsx:644 2040 2081 msgid "Which content types appear in the sitemap and llms.txt." 2041 2082 msgstr "" 2042 2083 2043 #: apps/admin/src/features/settings/SettingsPage.tsx:6 452084 #: apps/admin/src/features/settings/SettingsPage.tsx:660 2044 2085 msgid "Which term archives appear in the sitemap." 2045 2086 msgstr "" 2046 2087 2047 #: apps/admin/src/features/settings/SettingsPage.tsx: 7792088 #: apps/admin/src/features/settings/SettingsPage.tsx:818 2048 2089 msgid "White-label" 2049 2090 msgstr "" 2050 2091 2051 #: apps/admin/src/features/settings/sections.ts: 992092 #: apps/admin/src/features/settings/sections.ts:101 2052 2093 msgid "White-label the plugin" 2053 2094 msgstr "" … … 2065 2106 msgstr "" 2066 2107 2067 #: apps/admin/src/features/settings/SettingsPage.tsx:5 262108 #: apps/admin/src/features/settings/SettingsPage.tsx:541 2068 2109 msgid "X Card type" 2069 2110 msgstr "" … … 2073 2114 msgstr "" 2074 2115 2116 #: apps/admin/src/features/settings/SettingsPage.tsx:89 2117 msgid "Yandex Webmaster" 2118 msgstr "" 2119 2075 2120 #: apps/admin/src/features/onboarding/MigrationStep.tsx:204 2076 2121 msgid "" … … 2092 2137 msgstr "" 2093 2138 2094 #: apps/admin/src/features/settings/SettingsPage.tsx:8 062139 #: apps/admin/src/features/settings/SettingsPage.tsx:845 2095 2140 msgid "e.g. Acme SEO" 2096 2141 msgstr "" -
flexa-seo-aeo/trunk/package.json
r3749993 r3808429 2 2 "name": "flexa-seo-aeo", 3 3 "private": true, 4 "version": "1. 0.0",4 "version": "1.1.0", 5 5 "type": "module", 6 6 "packageManager": "pnpm@9.12.0", -
flexa-seo-aeo/trunk/readme.txt
r3756036 r3808429 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.2 7 Stable tag: 1. 0.07 Stable tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 39 39 * Per-post editing in a classic metabox **and** a Gutenberg editor sidebar, with one-click **migration from Yoast, Rank Math and SEOPress**, and a read-fallback for all three so nothing breaks mid-move. 40 40 * `robots.txt` management and optional **IndexNow** ping on publish/update (see *External services* below). 41 * Site verification tags for Google Search Console, Bing, Yandex and Pinterest. Paste the code; nothing is sent anywhere. 41 42 * **Links** controls: strip the category base from archive URLs, redirect attachment pages to their parent (with an orphan fallback), and add `nofollow` / `target="_blank"` to external links at display time. 42 43 … … 153 154 154 155 == Changelog == 156 157 = 1.1.0 = 158 * New: site verification for Google Search Console, Bing Webmaster Tools, Yandex Webmaster and Pinterest, under Settings > Indexing. Paste either the code or the whole `<meta>` tag a console gives you; only the code is stored. The tags are printed on the front page, which is where each console looks for them, and an empty field prints nothing. 159 * New: the warning about another active SEO plugin now says when that plugin will override a noindex. Rank Math and All in One SEO remove the `wp_robots` filter and print their own robots tag, so a post marked noindex here can still be indexed while they are active; SEOPress prints a second robots tag that disagrees with this one. If you dismissed the warning before, it comes back once so you can read the new part. 155 160 156 161 = 1.0.0 = … … 246 251 == Upgrade Notice == 247 252 253 = 1.1.0 = 254 Adds site verification codes for Google, Bing, Yandex and Pinterest, and warns when another SEO plugin would override a noindex set here. 255 248 256 = 1.0.0 = 249 257 Adds one-click migration from SEOPress, lists images from post content in the image sitemap, and restores structured data on the posts page. Leaving SEOPress? Run the migration before you deactivate it. -
flexa-seo-aeo/trunk/src/Actions/Front/Metas.php
r3749993 r3808429 137 137 } 138 138 139 // Ownership codes are read from the home page only, and they have no 140 // module toggle: an empty field is the off switch. 141 if ( is_front_page() ) { 142 foreach ( Settings::VERIFICATION_TAGS as $key => $name ) { 143 $code = (string) Settings::get( $key ); 144 if ( '' !== $code ) { 145 $this->meta_tag( 'name', $name, $code ); 146 } 147 } 148 } 149 139 150 echo "<!-- /Flexa SEO -->\n"; 140 151 } -
flexa-seo-aeo/trunk/src/Admin/ConflictNotice.php
r3751315 r3808429 21 21 * 22 22 * The dismissal records which plugins were active at the time, so hiding the 23 * notice for Yoast does not also hide it when Rank Math turns up later. 23 * notice for Yoast does not also hide it when Rank Math turns up later. It also 24 * records which revision of the notice was hidden, so a warning added later is 25 * seen by people who dismissed the earlier text. 24 26 */ 25 27 final class ConflictNotice { … … 30 32 31 33 private const ACTION = 'flexa_seo_aeo_dismiss_conflict'; 34 35 /** 36 * Bump when the notice gains something a past dismissal should not hide. 37 * Not the plugin version: that would bring the notice back on every update. 38 * 39 * 2: the noindex warning for Rank Math, All in One SEO and SEOPress. 40 */ 41 private const REVISION = 2; 32 42 33 43 public function register(): void { … … 46 56 } 47 57 48 if ( SeoConflicts::signature() === (string) get_option( self::OPTION_KEY, '' ) ) {58 if ( $this->dismissal_key() === (string) get_option( self::OPTION_KEY, '' ) ) { 49 59 return; 50 60 } … … 65 75 : ''; 66 76 77 $robots = $this->robots_warning(); 78 67 79 printf( 68 '<div class="notice notice-warning"><p><strong>%s</strong> %s</p><p>%s</p>%s <p><a href="%s" class="button button-secondary">%s</a></p></div>',80 '<div class="notice notice-warning"><p><strong>%s</strong> %s</p><p>%s</p>%s%s<p><a href="%s" class="button button-secondary">%s</a></p></div>', 69 81 esc_html( $brand ), 70 82 esc_html( … … 76 88 ), 77 89 esc_html__( 'Two SEO plugins on one site means two canonical tags, two sets of Open Graph tags and often two JSON-LD graphs, and search engines pick between them. Run one and deactivate the other.', 'flexa-seo-aeo' ), 90 // Built from esc_html() in robots_warning(). 91 $robots, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 78 92 // Assembled just above from esc_url() and esc_html__(); escaping the 79 93 // whole string again would print the markup instead of rendering it. … … 82 96 esc_html__( 'I know, hide this', 'flexa-seo-aeo' ) 83 97 ); 98 } 99 100 /** 101 * The one consequence of a pairing that is worse than a duplicate tag: a 102 * post set to noindex here can still be indexed. Said per plugin, because 103 * the advice differs: where the other plugin owns the tag, the setting has 104 * to be made there until it is switched off. 105 */ 106 private function robots_warning(): string { 107 // Mid-sentence, so lower case under white-label. 108 $brand = (bool) Settings::get( 'whitelabel' ) 109 ? __( 'this plugin', 'flexa-seo-aeo' ) 110 : 'Flexa SEO'; 111 112 $html = ''; 113 114 foreach ( SeoConflicts::robots_replaced() as $name ) { 115 $html .= '<p>' . esc_html( 116 sprintf( 117 /* translators: 1: an SEO plugin's name, 2: this plugin's name. */ 118 __( 'While %1$s is active, noindex and nofollow set in %2$s are not applied: it removes WordPress\'s robots output and prints its own robots tag. A post you set to noindex here can still be indexed. Set them in %1$s until you switch that plugin off.', 'flexa-seo-aeo' ), 119 $name, 120 $brand 121 ) 122 ) . '</p>'; 123 } 124 125 $duplicated = SeoConflicts::robots_duplicated(); 126 if ( [] !== $duplicated ) { 127 $html .= '<p>' . esc_html( 128 sprintf( 129 /* translators: %s: comma-separated list of SEO plugin names. */ 130 __( '%s prints a second robots tag, so a post set to noindex here carries one tag saying noindex and another saying index.', 'flexa-seo-aeo' ), 131 implode( ', ', $duplicated ) 132 ) 133 ) . '</p>'; 134 } 135 136 return $html; 84 137 } 85 138 … … 91 144 check_admin_referer( self::ACTION ); 92 145 93 update_option( self::OPTION_KEY, SeoConflicts::signature(), false );146 update_option( self::OPTION_KEY, $this->dismissal_key(), false ); 94 147 95 148 $referer = wp_get_referer(); … … 98 151 } 99 152 153 /** 154 * What a dismissal is stored as: the active plugins plus the notice 155 * revision, e.g. `rankmath,yoast@2`. Values saved before revisions existed 156 * carry no suffix, so they no longer match and the notice shows once more. 157 */ 158 private function dismissal_key(): string { 159 return SeoConflicts::signature() . '@' . self::REVISION; 160 } 161 100 162 private function dismiss_url(): string { 101 163 return wp_nonce_url( admin_url( 'admin-post.php?action=' . self::ACTION ), self::ACTION ); -
flexa-seo-aeo/trunk/src/Support/SeoConflicts.php
r3756036 r3808429 46 46 47 47 /** 48 * Plugins that take the robots tag away from this one. Rank Math and All in 49 * One SEO both call `remove_all_filters( 'wp_robots' )` and print a tag of 50 * their own, so a noindex or nofollow set here never reaches the page. 51 * Measured on a post set to noindex: Rank Math 1.0.270 printed `index`, All 52 * in One SEO 5.0.3 printed neither. 53 * 54 * @var list<string> 55 */ 56 private const ROBOTS_REPLACED = [ 'rankmath', 'aioseo' ]; 57 58 /** 59 * Plugins that print a robots tag of their own next to core's. The page 60 * carries both, and on a post set to noindex here they disagree. 61 * 62 * @var list<string> 63 */ 64 private const ROBOTS_DUPLICATED = [ 'seopress' ]; 65 66 /** 48 67 * Every known SEO plugin currently active, as id => label. 49 68 * … … 74 93 75 94 /** 95 * Active plugins that stop this plugin's noindex and nofollow reaching the 96 * page, as id => label. 97 * 98 * @return array<string, string> 99 */ 100 public static function robots_replaced(): array { 101 return array_intersect_key( self::active(), array_flip( self::ROBOTS_REPLACED ) ); 102 } 103 104 /** 105 * Active plugins that print a second robots tag, as id => label. 106 * 107 * @return array<string, string> 108 */ 109 public static function robots_duplicated(): array { 110 return array_intersect_key( self::active(), array_flip( self::ROBOTS_DUPLICATED ) ); 111 } 112 113 /** 76 114 * A stable fingerprint of what is active right now, so a dismissal applies 77 115 * to the situation the user saw and a newly activated plugin raises the -
flexa-seo-aeo/trunk/src/Support/Settings.php
r3749993 r3808429 71 71 72 72 /** 73 * Webmaster verification settings => the `<meta name>` each one prints. 74 * Every one is a site-ownership code pasted from the engine's console. 75 * 76 * @var array<string, string> 77 */ 78 public const VERIFICATION_TAGS = [ 79 'verify_google' => 'google-site-verification', 80 'verify_bing' => 'msvalidate.01', 81 'verify_yandex' => 'yandex-verification', 82 'verify_pinterest' => 'p:domain_verify', 83 ]; 84 85 /** 73 86 * Defaults for the nested `aeo` group — the plugin's core differentiator. 74 87 * All inert by default; the AEO endpoints self-gate on `enabled`. … … 115 128 $defaults['aeo'] = self::aeo_defaults(); 116 129 130 foreach ( array_keys( self::VERIFICATION_TAGS ) as $key ) { 131 $defaults[ $key ] = ''; // Site-ownership code, printed on the front page only. 132 } 133 117 134 return $defaults; 118 135 } … … 304 321 } 305 322 323 foreach ( array_keys( self::VERIFICATION_TAGS ) as $key ) { 324 if ( array_key_exists( $key, $incoming ) ) { 325 $clean[ $key ] = self::sanitize_verification( $incoming[ $key ] ); 326 } 327 } 328 306 329 if ( array_key_exists( 'aeo', $incoming ) && is_array( $incoming['aeo'] ) ) { 307 330 $clean['aeo'] = self::sanitize_aeo( $incoming['aeo'] ); … … 394 417 if ( isset( $stored['whitelabel_name'] ) && is_string( $stored['whitelabel_name'] ) ) { 395 418 $out['whitelabel_name'] = $stored['whitelabel_name']; 419 } 420 foreach ( array_keys( self::VERIFICATION_TAGS ) as $key ) { 421 if ( isset( $stored[ $key ] ) ) { 422 $out[ $key ] = self::sanitize_verification( $stored[ $key ] ); 423 } 396 424 } 397 425 … … 521 549 522 550 /** 551 * A webmaster verification code. Search consoles hand out the whole 552 * `<meta name="…" content="…">` tag, and that is what most people paste, 553 * so the content attribute is lifted out of it first. What is kept is the 554 * character set every engine's codes use (letters, digits, `-`, `_`, `=`, 555 * `.`, `+`, `/`), which also rules out a quote breaking the attribute. 556 */ 557 private static function sanitize_verification( mixed $value ): string { 558 $value = is_scalar( $value ) ? trim( (string) $value ) : ''; 559 560 if ( preg_match( '/content\s*=\s*(["\'])(.*?)\1/i', $value, $m ) ) { 561 $value = $m[2]; 562 } 563 564 return substr( (string) preg_replace( '/[^A-Za-z0-9_=.+\/-]/', '', $value ), 0, 128 ); 565 } 566 567 /** 523 568 * Deterministic boolean coercion mirroring rest_sanitize_boolean() 524 569 * semantics. Kept local so the schema never depends on a templated WP stub
Note:
See TracChangeset
for help on using the changeset viewer.