Changeset 3787822
- Timestamp:
- 11/06/2026 11:48:51 AM (18 hours ago)
- Location:
- mador
- Files:
-
- 6 added
- 8 edited
- 1 copied
-
tags/1.2.0 (copied) (copied from mador/trunk )
-
tags/1.2.0/inc/impostazioni.php (modified) (1 diff)
-
tags/1.2.0/inc/protocollo.php (added)
-
tags/1.2.0/inc/pubblica-admin.php (added)
-
tags/1.2.0/inc/pubblica.php (added)
-
tags/1.2.0/mador.php (modified) (5 diffs)
-
tags/1.2.0/readme.txt (modified) (6 diffs)
-
tags/1.2.0/uninstall.php (modified) (2 diffs)
-
trunk/inc/impostazioni.php (modified) (1 diff)
-
trunk/inc/protocollo.php (added)
-
trunk/inc/pubblica-admin.php (added)
-
trunk/inc/pubblica.php (added)
-
trunk/mador.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/uninstall.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mador/tags/1.2.0/inc/impostazioni.php
r3780686 r3787822 175 175 mador_riquadro_stato( $codice, $lingua ); 176 176 177 mador_riquadro_pubblica(); 178 177 179 echo '</div>'; 178 180 } -
mador/tags/1.2.0/mador.php
r3780686 r3787822 3 3 * Plugin Name: Mador 4 4 * Plugin URI: https://mador.ai/plugin 5 * Description: Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge and the certificate.6 * Version: 1. 1.15 * Description: Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge, the certificate and, with the Growth plan, the pages Mador writes for you. 6 * Version: 1.2.0 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 17 17 18 18 /* 19 * What this plugin does — four things,nothing else:19 * What this plugin does, five things and nothing else: 20 20 * 21 21 * 1. `<meta name="mador-verifica">` in the head of every page, so Mador can … … 25 25 * credit link under them is off unless turned on in the settings); 26 26 * 3. `[mador-badge]`: the measurement badge (an `<img>` inside an `<a>`); 27 * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`). 27 * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`); 28 * 5. since 1.2.0, off until the owner connects the site with a one-time 29 * code: publishing the pages Mador writes as WordPress pages or posts 30 * (`inc/pubblica.php`). 28 31 * 29 * No secret keys, no tokens, no JavaScript, no dependencies. The only 30 * setting that identifies anything is the report code, which is already 31 * public (it is part of the badge URL). The plugin reads public addresses 32 * on mador.ai and sends nothing but the request itself. 32 * No JavaScript, no dependencies. Items 1-4 read public addresses on 33 * mador.ai with the report code, which is already public. Item 5 is the 34 * only one that sends anything: signed requests with the state of the 35 * pages it wrote. Its key pair is generated on this site; the secret half 36 * never leaves it, Mador only holds the public half, and everything Mador 37 * sends back is checked against Mador's own signature before use. 33 38 */ 34 39 … … 36 41 37 42 /** Plugin version. Keep in sync with the header above and `readme.txt`. */ 38 define( 'MADOR_VERSIONE', '1. 1.1' );43 define( 'MADOR_VERSIONE', '1.2.0' ); 39 44 40 45 /** Main plugin file, for `plugin_basename()`. */ … … 56 61 require_once __DIR__ . '/inc/certificato.php'; 57 62 require_once __DIR__ . '/inc/faq.php'; 63 require_once __DIR__ . '/inc/protocollo.php'; 64 require_once __DIR__ . '/inc/pubblica.php'; 58 65 59 66 if ( is_admin() ) { 60 67 require_once __DIR__ . '/inc/impostazioni.php'; 68 require_once __DIR__ . '/inc/pubblica-admin.php'; 61 69 } 62 70 -
mador/tags/1.2.0/readme.txt
r3780686 r3787822 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 1.17 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 15 15 [Mador](https://mador.ai) measures how often AI assistants (ChatGPT, Gemini, Perplexity, Claude and others) name a business when a customer asks, and writes the pages that help them name it. This plugin brings that work onto the business's own WordPress site. 16 16 17 It does f ourthings, and nothing else:17 It does five things, and nothing else: 18 18 19 19 * **Site verification.** It adds `<meta name="mador-verifica">` to the head of every page, so Mador can confirm the site belongs to your account. Nothing to paste. … … 21 21 * **Badge.** `[mador-badge]` shows your latest measurement, linking to the certificate. 22 22 * **Certificate.** `[mador-certificato]` embeds the full measurement certificate. 23 * **Your pages, published here (Growth plan).** The pages Mador writes for your business can be published on this site as regular pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account. A page you edit in WordPress is never overwritten without your say, taking a page down puts it back to draft, and nothing is ever deleted. 23 24 24 No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public. 25 No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public. Publishing your pages uses a key pair created on your site: the secret half never leaves it, and every page Mador sends is checked against Mador's signature before it is saved. 25 26 26 27 The plugin adds no links to your public pages on its own. The badge and the certificate appear only where you place their shortcodes. The "Measured and written with Mador" credit link under the questions and answers is off until you turn it on in **Settings → Mador**. … … 94 95 * **Settings page**: **Settings → Mador** shows your real badge, so the administrator's browser loads `https://mador.ai/r/{report code}/badge.svg` while that page is open, with the same details as above. 95 96 * **Verification**: the meta tag is read by Mador when you press the verify button in the Mador area; the plugin itself sends nothing. 97 * **Publishing your pages** (only after you connect the site in **Settings → Mador** with a one-time code): at connection, your server sends `https://mador.ai/api/wp/collega` the code, a public key generated on your site, your site address and the plugin version. Then, once an hour and when you press "Check now", your server sends `https://mador.ai/api/wp/sincronizza` a signed request with, for each page the plugin published, its id, version, WordPress status, address and whether it was edited; the answer contains the pages to publish, update or take down. Mador may also call `/wp-json/mador/v1/campanello` on your site, with no content, to bring the next check forward. Mador also reads each published page, like a visitor, after it goes online and then once a week, to confirm it is still there. No visitor data is sent. Disconnecting stops all of this. 96 98 97 99 Mador terms of service: https://mador.ai/en/termini … … 99 101 100 102 == Changelog == 103 104 = 1.2.0 = 105 * With the Growth plan, the pages Mador writes can be published on your site as pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account. 106 * Signed exchange with Mador: a key pair is created on your site and Mador only holds the public half; every page Mador sends is checked against Mador's signature. 107 * Pages you edit in WordPress are never overwritten without your choice in the Mador account; taking a page down puts it back to draft; uninstalling leaves every page in place. 108 * Posts published by Mador arrive with comments closed; you can open them in WordPress. Pages keep your site's setting. 109 * `<meta name="mador-pagina">` and the page's structured data in the head of the pages the plugin published. 101 110 102 111 = 1.1.1 = … … 113 122 == Upgrade Notice == 114 123 124 = 1.2.0 = 125 Adds publishing of your Mador pages on this site (Growth plan). Nothing changes until you connect the site in Settings → Mador. 126 115 127 = 1.1.0 = 116 128 The credit link under the questions and answers is now off by default. Turn it on under Settings → Mador if you want to keep it. -
mador/tags/1.2.0/uninstall.php
r3780686 r3787822 4 4 * 5 5 * - the `mador_opzioni` option (report code, language, credit link); 6 * - the `mador_faq_*` transients that cache the questions and answers. 6 * - the `mador_faq_*` transients that cache the questions and answers; 7 * - since 1.2.0, the connection (`mador_sito`, with the site's key pair), 8 * the list of deleted pages still to report and the hourly event. 9 * 10 * The pages and posts the plugin published are NOT removed: they belong 11 * to the site owner. Only the plugin's bookkeeping goes. 7 12 * 8 13 * On multisite the option and the transients live per site, and … … 26 31 27 32 delete_option( 'mador_opzioni' ); 33 delete_option( 'mador_sito' ); 34 delete_option( 'mador_assenti' ); 35 wp_clear_scheduled_hook( 'mador_giro' ); 28 36 29 37 // A direct query because there is no API to list transients by prefix; -
mador/trunk/inc/impostazioni.php
r3780686 r3787822 175 175 mador_riquadro_stato( $codice, $lingua ); 176 176 177 mador_riquadro_pubblica(); 178 177 179 echo '</div>'; 178 180 } -
mador/trunk/mador.php
r3780686 r3787822 3 3 * Plugin Name: Mador 4 4 * Plugin URI: https://mador.ai/plugin 5 * Description: Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge and the certificate.6 * Version: 1. 1.15 * Description: Connects your WordPress site to Mador: the site verification tag, your questions and answers with FAQ structured data, the measurement badge, the certificate and, with the Growth plan, the pages Mador writes for you. 6 * Version: 1.2.0 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 17 17 18 18 /* 19 * What this plugin does — four things,nothing else:19 * What this plugin does, five things and nothing else: 20 20 * 21 21 * 1. `<meta name="mador-verifica">` in the head of every page, so Mador can … … 25 25 * credit link under them is off unless turned on in the settings); 26 26 * 3. `[mador-badge]`: the measurement badge (an `<img>` inside an `<a>`); 27 * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`). 27 * 4. `[mador-certificato]`: the measurement certificate (an `<iframe>`); 28 * 5. since 1.2.0, off until the owner connects the site with a one-time 29 * code: publishing the pages Mador writes as WordPress pages or posts 30 * (`inc/pubblica.php`). 28 31 * 29 * No secret keys, no tokens, no JavaScript, no dependencies. The only 30 * setting that identifies anything is the report code, which is already 31 * public (it is part of the badge URL). The plugin reads public addresses 32 * on mador.ai and sends nothing but the request itself. 32 * No JavaScript, no dependencies. Items 1-4 read public addresses on 33 * mador.ai with the report code, which is already public. Item 5 is the 34 * only one that sends anything: signed requests with the state of the 35 * pages it wrote. Its key pair is generated on this site; the secret half 36 * never leaves it, Mador only holds the public half, and everything Mador 37 * sends back is checked against Mador's own signature before use. 33 38 */ 34 39 … … 36 41 37 42 /** Plugin version. Keep in sync with the header above and `readme.txt`. */ 38 define( 'MADOR_VERSIONE', '1. 1.1' );43 define( 'MADOR_VERSIONE', '1.2.0' ); 39 44 40 45 /** Main plugin file, for `plugin_basename()`. */ … … 56 61 require_once __DIR__ . '/inc/certificato.php'; 57 62 require_once __DIR__ . '/inc/faq.php'; 63 require_once __DIR__ . '/inc/protocollo.php'; 64 require_once __DIR__ . '/inc/pubblica.php'; 58 65 59 66 if ( is_admin() ) { 60 67 require_once __DIR__ . '/inc/impostazioni.php'; 68 require_once __DIR__ . '/inc/pubblica-admin.php'; 61 69 } 62 70 -
mador/trunk/readme.txt
r3780686 r3787822 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 1.17 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 15 15 [Mador](https://mador.ai) measures how often AI assistants (ChatGPT, Gemini, Perplexity, Claude and others) name a business when a customer asks, and writes the pages that help them name it. This plugin brings that work onto the business's own WordPress site. 16 16 17 It does f ourthings, and nothing else:17 It does five things, and nothing else: 18 18 19 19 * **Site verification.** It adds `<meta name="mador-verifica">` to the head of every page, so Mador can confirm the site belongs to your account. Nothing to paste. … … 21 21 * **Badge.** `[mador-badge]` shows your latest measurement, linking to the certificate. 22 22 * **Certificate.** `[mador-certificato]` embeds the full measurement certificate. 23 * **Your pages, published here (Growth plan).** The pages Mador writes for your business can be published on this site as regular pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account. A page you edit in WordPress is never overwritten without your say, taking a page down puts it back to draft, and nothing is ever deleted. 23 24 24 No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public. 25 No API key, no account password, no tracking, no JavaScript, no stylesheets, no external libraries. The only setting that identifies anything is your report code, which is already public. Publishing your pages uses a key pair created on your site: the secret half never leaves it, and every page Mador sends is checked against Mador's signature before it is saved. 25 26 26 27 The plugin adds no links to your public pages on its own. The badge and the certificate appear only where you place their shortcodes. The "Measured and written with Mador" credit link under the questions and answers is off until you turn it on in **Settings → Mador**. … … 94 95 * **Settings page**: **Settings → Mador** shows your real badge, so the administrator's browser loads `https://mador.ai/r/{report code}/badge.svg` while that page is open, with the same details as above. 95 96 * **Verification**: the meta tag is read by Mador when you press the verify button in the Mador area; the plugin itself sends nothing. 97 * **Publishing your pages** (only after you connect the site in **Settings → Mador** with a one-time code): at connection, your server sends `https://mador.ai/api/wp/collega` the code, a public key generated on your site, your site address and the plugin version. Then, once an hour and when you press "Check now", your server sends `https://mador.ai/api/wp/sincronizza` a signed request with, for each page the plugin published, its id, version, WordPress status, address and whether it was edited; the answer contains the pages to publish, update or take down. Mador may also call `/wp-json/mador/v1/campanello` on your site, with no content, to bring the next check forward. Mador also reads each published page, like a visitor, after it goes online and then once a week, to confirm it is still there. No visitor data is sent. Disconnecting stops all of this. 96 98 97 99 Mador terms of service: https://mador.ai/en/termini … … 99 101 100 102 == Changelog == 103 104 = 1.2.0 = 105 * With the Growth plan, the pages Mador writes can be published on your site as pages or posts, live or as drafts. Off until you connect the site with a one-time code from your Mador account. 106 * Signed exchange with Mador: a key pair is created on your site and Mador only holds the public half; every page Mador sends is checked against Mador's signature. 107 * Pages you edit in WordPress are never overwritten without your choice in the Mador account; taking a page down puts it back to draft; uninstalling leaves every page in place. 108 * Posts published by Mador arrive with comments closed; you can open them in WordPress. Pages keep your site's setting. 109 * `<meta name="mador-pagina">` and the page's structured data in the head of the pages the plugin published. 101 110 102 111 = 1.1.1 = … … 113 122 == Upgrade Notice == 114 123 124 = 1.2.0 = 125 Adds publishing of your Mador pages on this site (Growth plan). Nothing changes until you connect the site in Settings → Mador. 126 115 127 = 1.1.0 = 116 128 The credit link under the questions and answers is now off by default. Turn it on under Settings → Mador if you want to keep it. -
mador/trunk/uninstall.php
r3780686 r3787822 4 4 * 5 5 * - the `mador_opzioni` option (report code, language, credit link); 6 * - the `mador_faq_*` transients that cache the questions and answers. 6 * - the `mador_faq_*` transients that cache the questions and answers; 7 * - since 1.2.0, the connection (`mador_sito`, with the site's key pair), 8 * the list of deleted pages still to report and the hourly event. 9 * 10 * The pages and posts the plugin published are NOT removed: they belong 11 * to the site owner. Only the plugin's bookkeeping goes. 7 12 * 8 13 * On multisite the option and the transients live per site, and … … 26 31 27 32 delete_option( 'mador_opzioni' ); 33 delete_option( 'mador_sito' ); 34 delete_option( 'mador_assenti' ); 35 wp_clear_scheduled_hook( 'mador_giro' ); 28 36 29 37 // A direct query because there is no API to list transients by prefix;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)