Plugin Directory

Changeset 3830593


Ignore:
Timestamp:
11/27/2026 11:11:33 PM (less than one hour ago)
Author:
fernandot
Message:

Clearer help texts, template tags as buttons, sponsored and ugc links in both editors, 55 AI crawlers to block, slug redirects moved to Visibility in bulk, and fixes for WPML and for plugins switched off for a while.

Location:
native-aeo-pack
Files:
80 added
24 edited

Legend:

Unmodified
Added
Removed
  • native-aeo-pack/tags/3.4.0/readme.txt

    r3828380 r3830593  
    33Tags: ai seo, redirects, noindex, schema, sitemap
    44Requires at least: 6.1
    5 Tested up to: 7.1
     5Tested up to: 7.2
    66Requires PHP: 7.4
    77Stable tag: 3.4.0
  • native-aeo-pack/trunk/assets/css/admin.css

    r3824861 r3830593  
    17801780        min-width: 200px;
    17811781        margin: 0 12px 4px 0;
     1782}
     1783
     1784/* 3.4.1: 55 crawlers. Each group shows a count and two buttons, and its list
     1785   goes folded, in as many columns as fit (two in the settings table). */
     1786.native-aeo-pack-robots-agent-tools {
     1787        display: flex;
     1788        flex-wrap: wrap;
     1789        gap: 4px 12px;
     1790        align-items: baseline;
     1791        margin: 0 0 6px;
     1792}
     1793
     1794.native-aeo-pack-robots-agent-fold > summary {
     1795        cursor: pointer;
     1796        color: var( --native-aeo-pack-link, #2271b1 );
     1797        margin: 0 0 6px;
     1798}
     1799
     1800.native-aeo-pack-robots-agent-fold[open] > summary {
     1801        margin-bottom: 8px;
     1802}
     1803
     1804.native-aeo-pack-robots-agent-list {
     1805        display: grid;
     1806        grid-template-columns: repeat( auto-fill, minmax( 176px, 1fr ) );
     1807        gap: 2px 12px;
     1808        margin: 0 0 4px;
     1809}
     1810
     1811/* forms.css sets `.form-table td fieldset label { margin: .35em 0 .5em !important;
     1812   display: inline-block }`: without this each box adds 13px to the list. */
     1813.form-table td fieldset .native-aeo-pack-robots-agent-list .native-aeo-pack-robots-agent-label,
     1814.native-aeo-pack-robots-agent-list .native-aeo-pack-robots-agent-label {
     1815        display: flex;
     1816        gap: 4px;
     1817        align-items: flex-start;
     1818        min-width: 0;
     1819        margin: 0 !important;
     1820        line-height: 1.6;
     1821        overflow-wrap: anywhere;
     1822}
     1823
     1824.native-aeo-pack-robots-agent-list .native-aeo-pack-robots-agent {
     1825        flex: none;
     1826        margin-top: 3px;
    17821827}
    17831828
    … …  
    28782923}
    28792924
    2880 /* A placeholder named in a help text, as a button that puts it in its field
    2881    (3.3.0): it looks like the `code` it was, with a hint on hover and focus. */
    2882 .native-aeo-pack-tag {
    2883         display: inline;
    2884         padding: 0;
    2885         margin: 0;
    2886         border: 0;
    2887         background: none;
    2888         font: inherit;
    2889         color: inherit;
    2890         cursor: pointer;
    2891 }
    2892 
    2893 .native-aeo-pack-tag code {
    2894         transition: background-color 0.1s ease-in-out;
    2895 }
    2896 
    2897 .native-aeo-pack-tag:hover code {
    2898         background: rgba( 0, 0, 0, 0.12 );
    2899 }
    2900 
    2901 .native-aeo-pack-tag:focus {
    2902         outline: none;
    2903 }
    2904 
    2905 .native-aeo-pack-tag:focus-visible code {
    2906         box-shadow: 0 0 0 2px var( --wp-admin-theme-color, #2271b1 );
    2907 }
     2925/* The placeholders a field takes, as a row of small buttons under it (3.4.1),
     2926   laid out like "Available tags" on Settings > Permalinks
     2927   (`wp-admin/css/forms.css:1260-1276` in 7.1.5). The buttons are the core
     2928   ones; this only places them. Until 3.4.0 they sat inside the help text,
     2929   dressed as `code`, and nothing said they could be clicked. */
     2930.native-aeo-pack-tags {
     2931        display: block;
     2932        margin: 8px 0 6px;
     2933}
     2934
     2935.native-aeo-pack-tags-legend {
     2936        display: block;
     2937}
     2938
     2939.native-aeo-pack-tags-list {
     2940        display: flex;
     2941        flex-wrap: wrap;
     2942        gap: 0 5px;
     2943        margin-top: 2px;
     2944}
     2945
     2946.native-aeo-pack-tags-list .button {
     2947        margin-top: 6px;
     2948}
     2949
     2950/* Under each field per content type and per taxonomy the row shows once the
     2951   field is used (template-tags.js adds `is-open`): one under each of them at
     2952   rest would fill the screen. Indented to the field, past its 160px label. */
     2953.native-aeo-pack-tags--focus {
     2954        display: none;
     2955}
     2956
     2957.native-aeo-pack-tpl-field.is-open .native-aeo-pack-tags--focus {
     2958        display: block;
     2959}
     2960
     2961.native-aeo-pack-template-row + .native-aeo-pack-tags {
     2962        margin: 2px 0 12px 172px;
     2963}
  • native-aeo-pack/trunk/assets/js/admin.js

    r3824861 r3830593  
    990990         *   - data-per-page    rows per page (default 20)
    991991         *   - data-search-min  show the search box only at this many rows (default 8)
    992          *   - data-bulk        one of `delete` | `dismiss` | `remove-native`
     992         *   - data-bulk        one of `delete` | `dismiss` | `remove-native`; a bulk
     993         *                      button may carry its own (`convert-native`, 3.4.1)
    993994         *   - .native-aeo-pack-itable-search        the search input
    994995         *   - .native-aeo-pack-itable-searchwrap     its container (hidden when few)
    … …  
    10131014                        action: 'native_aeo_pack_redirect_bulk_remove_native',
    10141015                        confirm: function ( n ) { return ( l10n.bulkRemoveConfirm || 'Stop redirecting the %d selected old URLs?' ).replace( '%d', n ); }
     1016                },
     1017                // 3.4.1: no confirmation, like the single "Move to Visibility": the
     1018                // redirect keeps working and can be edited or deleted from the table above.
     1019                'convert-native': {
     1020                        action: 'native_aeo_pack_redirect_bulk_convert_native',
     1021                        confirm: null
    10151022                }
    10161023        };
    … …  
    11851192                var $btn  = $( this );
    11861193                var $wrap = $btn.closest( '.native-aeo-pack-itable' );
    1187                 var spec  = napBulk[ $wrap.attr( 'data-bulk' ) ];
     1194                var mode  = $btn.attr( 'data-bulk' ) || $wrap.attr( 'data-bulk' );
     1195                var spec  = napBulk[ mode ];
    11881196                if ( ! spec ) {
    11891197                        return;
    … …  
    11931201                var $rows    = $checked.closest( 'tr' );
    11941202                var n        = $checked.length;
    1195                 if ( 0 === n || ! window.confirm( spec.confirm( n ) ) ) {
    1196                         return;
    1197                 }
    1198 
    1199                 var mode = $wrap.attr( 'data-bulk' );
     1203                if ( 0 === n || ( spec.confirm && ! window.confirm( spec.confirm( n ) ) ) ) {
     1204                        return;
     1205                }
     1206
    12001207                var data = { action: spec.action, security: l10n.redirectNonce };
    1201                 if ( 'remove-native' === mode ) {
     1208                if ( 'remove-native' === mode || 'convert-native' === mode ) {
    12021209                        data.post_ids  = $rows.map( function () { return $( this ).attr( 'data-post-id' ); } ).get();
    12031210                        data.old_slugs = $rows.map( function () { return $( this ).attr( 'data-old-slug' ); } ).get();
    … …  
    12131220                                return;
    12141221                        }
     1222
     1223                        // Moved to Visibility (3.4.1): only the rows the server moved leave
     1224                        // this table, for the one above; the skipped ones stay selected.
     1225                        if ( 'convert-native' === mode ) {
     1226                                var moved   = ( response.data && response.data.moved ) || [];
     1227                                var skipped = parseInt( response.data && response.data.skipped, 10 ) || 0;
     1228                                var $list   = $( '.native-aeo-pack-redirect-list' );
     1229                                if ( moved.length ) {
     1230                                        $list.find( '.native-aeo-pack-redirect-empty' ).remove();
     1231                                }
     1232                                moved.forEach( function ( row ) {
     1233                                        $list.append( buildRedirectRow( row ) );
     1234                                        $rows.filter( function () {
     1235                                                return String( $( this ).attr( 'data-post-id' ) ) === String( row.post_id ) && $( this ).attr( 'data-old-slug' ) === row.old_slug;
     1236                                        } ).remove();
     1237                                } );
     1238                                napRefreshManaged();
     1239                                markRedirectHops( response.data && response.data.hops );
     1240                                napRecompute( $wrap );
     1241                                maybeHideNative();
     1242                                var msg = skipped
     1243                                        ? ( l10n.bulkMovedSkipped || 'Moved to Visibility: %1$d. Not moved: %2$d.' ).replace( '%1$d', moved.length ).replace( '%2$d', skipped )
     1244                                        : ( l10n.bulkMoved || 'Moved to Visibility: %d.' ).replace( '%d', moved.length );
     1245                                $wrap.find( '.native-aeo-pack-itable-count' ).text( msg );
     1246                                return;
     1247                        }
     1248
    12151249                        $rows.remove();
    12161250                        $wrap.find( '.native-aeo-pack-itable-cball' ).prop( 'checked', false ).prop( 'indeterminate', false );
    … …  
    13031337        } );
    13041338
    1305         $( document ).on( 'change', '.native-aeo-pack-robots-agent', napRobotsBuildPreview );
     1339        // 3.4.1: the count of each group and its two buttons. The count's template
     1340        // comes translated in data-template, with %1$d and %2$d.
     1341        function napRobotsCount( $group ) {
     1342                var $count = $group.find( '.native-aeo-pack-robots-agent-count' );
     1343                var tpl    = String( $count.attr( 'data-template' ) || '' );
     1344                if ( ! tpl ) {
     1345                        return;
     1346                }
     1347                var on    = $group.find( '.native-aeo-pack-robots-agent:checked' ).length;
     1348                var total = $group.find( '.native-aeo-pack-robots-agent' ).length;
     1349                $count.text( tpl.replace( '%1$d', on ).replace( '%2$d', total ) );
     1350        }
     1351
     1352        $( document ).on( 'change', '.native-aeo-pack-robots-agent', function () {
     1353                napRobotsCount( $( this ).closest( '.native-aeo-pack-robots-agent-group' ) );
     1354                napRobotsBuildPreview();
     1355        } );
     1356
     1357        $( document ).on( 'click', '.native-aeo-pack-robots-agent-all, .native-aeo-pack-robots-agent-none', function () {
     1358                var $group = $( this ).closest( '.native-aeo-pack-robots-agent-group' );
     1359                var on     = $( this ).hasClass( 'native-aeo-pack-robots-agent-all' );
     1360                $group.find( '.native-aeo-pack-robots-agent:not(:disabled)' ).prop( 'checked', on );
     1361                napRobotsCount( $group );
     1362                napRobotsBuildPreview();
     1363        } );
    13061364        $( document ).on( 'input', '.native-aeo-pack-robots-custom', napRobotsBuildPreview );
    13071365
  • native-aeo-pack/trunk/assets/js/link-popup.js

    r3670045 r3830593  
    11/**
    2  * Visibility — `rel="nofollow"` checkbox for the Classic Editor wpLink modal.
     2 * Visibility — `rel` checkboxes for the Classic Editor wpLink modal:
     3 * nofollow, and since 3.4.1 sponsored and ugc.
    34 *
    45 * Reads the existing `rel` value when editing a link and writes it back via
    5  * `wpLink.getAttrs`. The Block Editor has its own native nofollow control;
    6  * this integration only runs in Classic Editor screens.
     6 * `wpLink.getAttrs`. Each checkbox adds or removes its own token and leaves
     7 * the others alone (`noopener` from "Open link in a new tab", or a token
     8 * typed by hand). The Block Editor has its own link controls; this
     9 * integration only runs in Classic Editor screens.
    710 *
    811 * @package Native_AEO_Pack
    … …  
    1619        }
    1720
    18         var CHECKBOX_ID = 'native-aeo-pack-link-nofollow';
     21        // One checkbox per token, in this order under "Open link in a new tab".
     22        // The ids are fixed strings; the labels come from PHP, translated.
     23        var TOKENS = [
     24                { token: 'nofollow', id: 'native-aeo-pack-link-nofollow', label: 'label' },
     25                { token: 'sponsored', id: 'native-aeo-pack-link-sponsored', label: 'labelSponsored' },
     26                { token: 'ugc', id: 'native-aeo-pack-link-ugc', label: 'labelUgc' }
     27        ];
    1928
    20         function relHasNofollow( rel ) {
     29        function relHas( rel, token ) {
    2130                if ( ! rel ) {
    2231                        return false;
    2332                }
    24                 return /(^|\s)nofollow(\s|$)/i.test( rel );
     33                return ( ' ' + rel.toLowerCase() + ' ' ).replace( /\s+/g, ' ' ).indexOf( ' ' + token + ' ' ) !== -1;
    2534        }
    2635
    27         function toggleNofollow( rel, addNofollow ) {
    28                 var tokens = ( rel || '' ).split( /\s+/ ).filter( function ( token ) {
    29                         return token && token.toLowerCase() !== 'nofollow';
     36        function toggleToken( rel, token, add ) {
     37                var tokens = ( rel || '' ).split( /\s+/ ).filter( function ( t ) {
     38                        return t && t.toLowerCase() !== token;
    3039                } );
    3140
    32                 if ( addNofollow ) {
    33                         tokens.push( 'nofollow' );
     41                if ( add ) {
     42                        tokens.push( token );
    3443                }
    3544
    … …  
    3746        }
    3847
    39         /*
    40          * Text-only escaper, and the name says so. Built on the DOM, which escapes
    41          * & < > but not quotes, so it belongs in text and never inside an attribute.
    42          * Anything added here that lands in an attribute needs the escAttr() of
    43          * admin.js, copied over, not this one.
    44          */
    45         function escHtml( str ) {
    46                 var div = document.createElement( 'div' );
    47                 div.appendChild( document.createTextNode( String( str ) ) );
    48                 return div.innerHTML;
    49         }
    50 
    51         function injectCheckbox() {
    52                 if ( document.getElementById( CHECKBOX_ID ) ) {
    53                         return;
    54                 }
    55 
     48        function injectCheckboxes() {
    5649                var $options = $( '#link-options' );
    5750                if ( ! $options.length ) {
    … …  
    5952                }
    6053
    61                 // Whitespace between </span> and <input> matters: WP core uses it as
    62                 // a single-space spacer to align this row with "Open link in a new tab".
    63                 $options.append(
    64                         '<div class="link-nofollow">' +
    65                                 '<label><span></span>\n' +
    66                                 '<input type="checkbox" id="' + CHECKBOX_ID + '" /> ' + escHtml( nativeAeoPackLinkPopup.label ) + '</label>' +
    67                         '</div>'
    68                 );
     54                TOKENS.forEach( function ( item ) {
     55                        if ( document.getElementById( item.id ) ) {
     56                                return;
     57                        }
     58                        var text = nativeAeoPackLinkPopup && nativeAeoPackLinkPopup[ item.label ] ? nativeAeoPackLinkPopup[ item.label ] : item.token;
     59
     60                        // Built node by node, so no value is ever read as HTML: the id and
     61                        // the class through attr() and addClass(), the label as a text node.
     62                        // The newline between <span> and <input> matters: WP core uses it
     63                        // as a single-space spacer to align this row with "Open link in a
     64                        // new tab".
     65                        var $input = $( '<input type="checkbox" />' ).attr( 'id', item.id );
     66                        var $label = $( '<label></label>' ).append(
     67                                $( '<span></span>' ),
     68                                document.createTextNode( '\n' ),
     69                                $input,
     70                                document.createTextNode( ' ' + text )
     71                        );
     72                        $options.append( $( '<div></div>' ).addClass( 'link-' + item.token ).append( $label ) );
     73                } );
    6974        }
    7075
    … …  
    9297        }
    9398
    94         // Sync checkbox state every time the modal opens.
     99        // Sync the checkboxes every time the modal opens.
    95100        $( document ).on( 'wplink-open', function () {
    96                 injectCheckbox();
     101                injectCheckboxes();
    97102                var rel = readCurrentRel();
    98                 $( '#' + CHECKBOX_ID ).prop( 'checked', relHasNofollow( rel ) );
     103                TOKENS.forEach( function ( item ) {
     104                        $( '#' + item.id ).prop( 'checked', relHas( rel, item.token ) );
     105                } );
    99106        } );
    100107
    101         // Hook into wpLink.getAttrs so the rel attribute reflects the checkbox.
     108        // Hook into wpLink.getAttrs so the rel attribute reflects the checkboxes.
    102109        if ( typeof wpLink.getAttrs === 'function' ) {
    103110                var originalGetAttrs = wpLink.getAttrs;
    … …  
    105112                wpLink.getAttrs = function () {
    106113                        var attrs = originalGetAttrs.apply( this, arguments );
    107                         var $checkbox = $( '#' + CHECKBOX_ID );
    108114
    109                         if ( ! $checkbox.length ) {
     115                        if ( ! $( '#' + TOKENS[ 0 ].id ).length ) {
    110116                                return attrs;
    111117                        }
    112118
    113                         var existingRel = attrs && attrs.rel ? attrs.rel : readCurrentRel();
    114                         var newRel = toggleNofollow( existingRel, $checkbox.is( ':checked' ) );
     119                        var rel = attrs && attrs.rel ? attrs.rel : readCurrentRel();
     120                        TOKENS.forEach( function ( item ) {
     121                                var $checkbox = $( '#' + item.id );
     122                                if ( $checkbox.length ) {
     123                                        rel = toggleToken( rel, item.token, $checkbox.is( ':checked' ) );
     124                                }
     125                        } );
    115126
    116                         if ( newRel ) {
    117                                 attrs.rel = newRel;
     127                        if ( rel ) {
     128                                attrs.rel = rel;
    118129                        } else if ( attrs.rel ) {
    119130                                attrs.rel = '';
  • native-aeo-pack/trunk/assets/js/template-tags.js

    r3824861 r3830593  
    11/**
    2  * Visibility: a placeholder named in a help text goes into its field with a
    3  * click, where the cursor is (3.3.0). The field is the one the button names
    4  * (`data-nap-tag-for`), or the last one focused of those that share its list
    5  * (`data-nap-tags` with that same id): on the Discover tab, one list serves
    6  * the general template and the ones per content type and per taxonomy.
     2 * Visibility: the row of buttons under a field that takes placeholders
     3 * (3.4.1; until 3.4.0 they were buttons inside the help text, 3.3.0). A click
     4 * puts the placeholder where the cursor is in the field the button names
     5 * (`data-nap-tag-for`), or at the end if the field has not been used yet.
     6 *
     7 * Under the fields per content type and per taxonomy of the Discover tab the
     8 * row shows once the field is used: entering one opens its row
     9 * (`is-open` on its `.native-aeo-pack-tpl-field`) and closes the row left
     10 * open by another, so there is one at a time.
    711 *
    812 * Only text goes into the field, through its value. The `input` and `change`
    … …  
    1620        document.addEventListener( 'focusin', function ( event ) {
    1721                var el = event.target;
    18                 if ( el && ( 'INPUT' === el.tagName || 'TEXTAREA' === el.tagName ) ) {
    19                         last = el;
     22                if ( ! el || ( 'INPUT' !== el.tagName && 'TEXTAREA' !== el.tagName ) ) {
     23                        return;
     24                }
     25                last = el;
     26
     27                var wrap = el.closest ? el.closest( '.native-aeo-pack-tpl-field' ) : null;
     28                var open = document.querySelectorAll( '.native-aeo-pack-tpl-field.is-open' );
     29                for ( var i = 0; i < open.length; i++ ) {
     30                        if ( open[ i ] !== wrap ) {
     31                                open[ i ].classList.remove( 'is-open' );
     32                        }
     33                }
     34                if ( wrap ) {
     35                        wrap.classList.add( 'is-open' );
    2036                }
    2137        } );
    … …  
    2945
    3046                var tag   = button.getAttribute( 'data-nap-tag' ) || '';
    31                 var id    = button.getAttribute( 'data-nap-tag-for' ) || '';
    32                 var field = last && document.body.contains( last ) && last.getAttribute( 'data-nap-tags' ) === id ? last : document.getElementById( id );
     47                var field = document.getElementById( button.getAttribute( 'data-nap-tag-for' ) || '' );
    3348                if ( ! tag || ! field || field.disabled || field.readOnly ) {
    3449                        return;
  • native-aeo-pack/trunk/changelog.txt

    r3827553 r3830593  
    33For each release, see the entries below. The latest version is always at the top.
    44The current release notes also live in readme.txt under "== Changelog ==".
     5
     6= 3.4.1 =
     7* Improved: Help texts rewritten so each one says first what happens, at about half the length. Technical terms appear as code, and the buttons, tabs and settings they name go in quotes, so translations can name them properly.
     8* Improved: Template tags such as `%%title%%` and `%%sep%%` appear as a row of buttons under each field that takes them, like the available tags of the Permalinks screen. Hover a button to see what it adds. Under the fields per content type and per taxonomy, the row shows when you click into the field.
     9* Improved: The front page description override offers its template tags too, with `%%tagline%%`, what it uses when empty, as placeholder.
     10* Improved: The notice shown while WordPress has its sitemap switched off says that nothing on the Sitemaps tab applies until it is back on.
     11* Improved: Links can be marked as `sponsored` or `ugc`. In the classic editor, two checkboxes sit next to “Mark as nofollow”. In the block editor, a button next to the link button sets them, and they stay when the link is edited again. Each one adds or removes only its own `rel` value.
     12* Improved: The sitemap icon of the entry and term lists says why one is out of the sitemap: ticked by hand, set to noindex, its content type or taxonomy left out, its ID or slug on the “Sitemaps” tab, or a canonical URL that is another address.
     13* Improved: On the “Redirects” tab, the redirects WordPress keeps when a slug changes can be moved to Visibility in bulk, or one by one with “Move to Visibility”, to edit them as your own. The “Create 301…” and “Create 410” buttons of the suggestions say what they do on hover.
     14* Improved: The AI crawlers you can block in robots.txt go from 18 to 55: the training crawlers Google lists in its own robots.txt, and the search and on-request crawlers of Anthropic, Mistral, Kimi, SB Intuitions and Exa. If you had every training crawler ticked, the new training ones are ticked on update; any other selection stays as it was, and no search crawler is ever ticked for you. Each group shows how many are ticked, with “Select all” and “Deselect all”, and folds its list.
     15* Improved: The ability that finds content with no Meta title or description lists it without loading the custom fields of every entry, which weighed most on sites built with page builders.
     16* Fix: The AIOSEO importer brings over “Remove Category Base Prefix”, so `/category/` no longer comes back in category addresses after migrating.
     17* Fix: Schema texts typed in an entry keep sequences such as `%C3%A9` or `100%AB`, which were deleted on save.
     18* Fix: The Home category for apps shared its translation with the Home breadcrumb, so in some languages it showed the wrong word.
     19* Fix: With WPML, the bulk actions of the entries list, such as “Set as nofollow”, copied both values of the directive to the translations and overwrote a translation's own exclusion from the per-type rule. They copy only the value they change, once per group of translations.
     20* Fix: A content type or taxonomy that is not registered at that moment, because a plugin such as WooCommerce is switched off for a while, no longer drops out of the settings on save or import: the per-type directives, llms.txt, Markdown, the sitemap exclusions, the title and description templates and the schema type.
     21* Fix: Moving to Visibility a WordPress slug redirect whose old address has accents could replace a Visibility redirect already set for that address, such as a 410.
    522
    623= 3.4.0 =
  • native-aeo-pack/trunk/includes/class-abilities.php

    r3827553 r3830593  
    12811281                }
    12821282
     1283                // IDs only (3.4.1): the same query, so the same entries and the same
     1284                // language filters of WPML and Polylang, without bringing each entry
     1285                // whole with its meta and terms. The page is then loaded in one query,
     1286                // without meta, which is all a title, a permalink and a date need.
    12831287                $query = new WP_Query(
    12841288                        $args + array(
    1285                                 'meta_query' => self::missing_meta_query( array( $key ) ), // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- the question itself is "which entries have no value under this key"; paginated to 50 at most and only run when an agent asks.
     1289                                'fields'                 => 'ids',
     1290                                'update_post_meta_cache' => false,
     1291                                'update_post_term_cache' => false,
     1292                                'meta_query'             => self::missing_meta_query( array( $key ) ), // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- the question itself is "which entries have no value under this key"; paginated to 50 at most and only run when an agent asks.
    12861293                        )
    12871294                );
    12881295
     1296                $posts = array();
     1297                if ( $query->posts ) {
     1298                        $posts = get_posts(
     1299                                array(
     1300                                        'post_type'              => $post_type,
     1301                                        'post_status'            => 'publish',
     1302                                        'post__in'               => array_map( 'intval', $query->posts ),
     1303                                        'orderby'                => 'post__in',
     1304                                        'posts_per_page'         => count( $query->posts ),
     1305                                        'update_post_meta_cache' => false,
     1306                                        'no_found_rows'          => true,
     1307                                )
     1308                        );
     1309                }
     1310
    12891311                $items = array();
    1290                 foreach ( $query->posts as $post ) {
     1312                foreach ( $posts as $post ) {
    12911313                        // The content type was checked as a whole; an entry of someone else in
    12921314                        // it may still be out of reach for this user.
    … …  
    24022424                } elseif ( ! in_array( $post->post_type, $types, true ) ) {
    24032425                        $why = 'content_type_out';
    2404                 } elseif ( self::modules()['sitemaps'] && class_exists( 'Native_AEO_Pack_Sitemap', false ) && Native_AEO_Pack_Sitemap::is_post_excluded( $post->ID ) ) {
    2405                         $why = 'excluded';
    2406                         if ( '1' === (string) get_post_meta( $post->ID, Native_AEO_Pack_Post_Meta::SITEMAP_EXCLUDED, true ) ) {
     2426                } elseif ( self::modules()['sitemaps'] && class_exists( 'Native_AEO_Pack_Sitemap', false ) ) {
     2427                        // The same reasons the column icon names (3.4.1), in the values this
     2428                        // ability has always returned.
     2429                        $reason = Native_AEO_Pack_Sitemap::post_exclusion_reason( $post->ID );
     2430                        if ( 'entry' === $reason ) {
    24072431                                $why = 'entry_excluded';
    2408                         } elseif ( self::modules()['indexing'] && Native_AEO_Pack_Settings::get( 'sitemap', 'exclude_seo_noindex', true ) && Native_AEO_Pack_Frontend_Robots::is_noindex( $post->ID ) ) {
     2432                        } elseif ( 'noindex' === $reason ) {
    24092433                                $why = 'noindex';
     2434                        } elseif ( '' !== $reason ) {
     2435                                $why = 'excluded';
    24102436                        }
    24112437                }
    … …  
    24342460                        // Core lists the terms that have entries (`hide_empty`).
    24352461                        $why = 'empty';
    2436                 } elseif ( self::modules()['sitemaps'] && class_exists( 'Native_AEO_Pack_Sitemap', false ) && Native_AEO_Pack_Sitemap::is_term_excluded( $term->term_id, $term->taxonomy ) ) {
    2437                         $why = '1' === (string) get_term_meta( $term->term_id, Native_AEO_Pack_Term_Meta::SITEMAP_EXCLUDED, true ) ? 'term_excluded' : 'excluded';
     2462                } elseif ( self::modules()['sitemaps'] && class_exists( 'Native_AEO_Pack_Sitemap', false ) ) {
     2463                        $reason = Native_AEO_Pack_Sitemap::term_exclusion_reason( $term->term_id, $term->taxonomy );
     2464                        if ( '' !== $reason ) {
     2465                                $why = 'term' === $reason ? 'term_excluded' : 'excluded';
     2466                        }
    24382467                }
    24392468
  • native-aeo-pack/trunk/includes/class-admin-freshness.php

    r3721297 r3830593  
    292292                $label = esc_html__( 'Last updated', 'native-aeo-pack' )
    293293                        . ' <i class="dashicons dashicons-info-outline" style="display:inline-block;font-size:16px;width:16px;height:16px;line-height:1;vertical-align:middle;margin-left:3px;opacity:.6" title="'
    294                         . esc_attr__( 'WordPress records this date on every save, even when you only change the publish date. It is the same date Visibility emits as dateModified and lastmod.', 'native-aeo-pack' )
     294                        . esc_attr__( 'Date of the last save, including publish-date changes. Used as dateModified and lastmod.', 'native-aeo-pack' )
    295295                        . '"></i>';
    296296
  • native-aeo-pack/trunk/includes/class-admin-page.php

    r3827553 r3830593  
    237237                );
    238238
    239                 // The placeholders named in the help texts go into their field with a click (3.3.0).
     239                // The rows of placeholder buttons under the template fields (3.3.0; a row under the field since 3.4.1).
    240240                wp_enqueue_script( 'native-aeo-pack-template-tags', NATIVE_AEO_PACK_URL . 'assets/js/template-tags.js', array(), NATIVE_AEO_PACK_VERSION, true );
    241241
    … …  
    281281                                /* translators: %d: number of selected old URLs. */
    282282                                'bulkRemoveConfirm'  => __( 'Stop redirecting the %d selected old URLs?', 'native-aeo-pack' ),
     283                                /* translators: %d: number of redirects moved to Visibility. */
     284                                'bulkMoved'          => __( 'Moved to Visibility: %d.', 'native-aeo-pack' ),
     285                                /* translators: 1: number of redirects moved to Visibility, 2: number left where they were. */
     286                                'bulkMovedSkipped'   => __( 'Moved to Visibility: %1$d. Not moved: %2$d.', 'native-aeo-pack' ),
    283287                                /* translators: 1: first row number shown, 2: last row number shown, 3: total rows. */
    284288                                'paginationOf'       => __( '%1$d–%2$d of %3$d', 'native-aeo-pack' ),
    … …  
    389393                <div class="notice notice-info is-dismissible" id="native-aeo-pack-woo-notice">
    390394                        <p>
    391                                 <strong><?php esc_html_e( 'Visibility set your store archives to noindex.', 'native-aeo-pack' ); ?></strong>
     395                                <strong><?php echo wp_kses( __( 'Visibility set your store archives to <code>noindex</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
    392396                                <?php
    393397                                printf(
    … …  
    503507                <div class="notice notice-info is-dismissible" id="native-aeo-pack-nosnippet-notice">
    504508                        <p>
    505                                 <strong><?php esc_html_e( 'Visibility can now leave nosnippet content out of what it generates.', 'native-aeo-pack' ); ?></strong>
    506                                 <?php esc_html_e( 'Content set to nosnippet can be kept out of the llms.txt summaries, llms-full.txt, the Markdown versions and the FAQPage structured data. It is switched off on this site, so nothing has changed. Switch it on if nosnippet is meant to cover them as well.', 'native-aeo-pack' ); ?>
     509                                <strong><?php echo wp_kses( __( 'Visibility can now leave <code>nosnippet</code> content out of what it generates.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     510                                <?php echo wp_kses( __( '<code>nosnippet</code> content can now be kept out of <code>llms.txt</code>, <code>llms-full.txt</code>, the Markdown versions and <code>FAQPage</code> data. It is off here; switch it on if you want that.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    507511                        </p>
    508512                        <p>
    … …  
    569573
    570574                        case 'redirects':
    571                                 esc_html_e( 'Send old or moved URLs to a new destination. Redirects are stored in WordPress options and resolved in PHP, so they work on any server with no .htaccess and no database table. Matching is by exact path.', 'native-aeo-pack' );
     575                                esc_html_e( 'Sends old or moved URLs to a new destination. Matches the exact path only.', 'native-aeo-pack' );
    572576                                break;
    573577
    574578                        case 'discover':
    575                                 esc_html_e( 'Help search engines and AI assistants find, understand and cite your site: meta tags, structured data, Site Identity, llms.txt, Markdown for agents and the robots.txt editor. Visibility builds each from native WordPress fields and lets you override per post or page; defaults are production-ready.', 'native-aeo-pack' );
     579                                esc_html_e( 'Helps search engines and AI assistants find, understand and cite your site. Defaults work as they are; override them per post or page.', 'native-aeo-pack' );
    576580                                break;
    577581
    578582                        case 'indexing':
    579                                 esc_html_e( 'Manage the noindex and nofollow robots directives at every level (bulk by content type or taxonomy, per-item overrides, additional archives and RSS feeds), plus optional URL clean-ups like removing the category base and redirecting attachment pages.', 'native-aeo-pack' );
     583                                echo wp_kses( __( 'Sets <code>noindex</code> and <code>nofollow</code> by content type, taxonomy, single item, extra archives and RSS feeds, plus optional URL clean-ups.', 'native-aeo-pack' ), array( 'code' => array() ) );
    580584                                break;
    581585
    582586                        case 'sitemaps':
    583                                 esc_html_e( 'Customize the native WordPress XML sitemap. Visibility also keeps noindexed content out of the sitemap automatically when the Indexing module is on — toggle it below if you want to disable that link.', 'native-aeo-pack' );
     587                                echo wp_kses( __( 'Customizes the WordPress XML sitemap. Content set to <code>noindex</code> is left out automatically; you can turn that off below.', 'native-aeo-pack' ), array( 'code' => array() ) );
    584588                                break;
    585589                        case 'overview':
    586590                        default:
    587                                 esc_html_e( 'Toggle the high-level modules below. When a module is off, its tab above is dimmed and its settings are inert until you turn the module back on.', 'native-aeo-pack' );
     591                                esc_html_e( 'A module that is off has its tab dimmed and its settings inactive.', 'native-aeo-pack' );
    588592                                break;
    589593                }
    … …  
    916920                                sprintf(
    917921                                        /* translators: %s: comma-separated list of post type names. */
    918                                         __( 'Not offered here: %s. Those come from a course or membership plugin that decides who may read each entry in its own templates, which this cannot see from outside. Serving them would hand the paid content to any agent that asked.', 'native-aeo-pack' ),
     922                                        __( 'Not offered here: %s. They come from a course or membership plugin whose access rules Visibility cannot check, so serving them could expose paid content.', 'native-aeo-pack' ),
    919923                                        implode( ', ', $labels )
    920924                                )
    … …  
    945949                                        sprintf(
    946950                                                /* translators: %s: module name. */
    947                                                 esc_html__( 'The %s module is currently off. Changes you make below will not have any effect until you enable it.', 'native-aeo-pack' ),
     951                                                esc_html__( 'The “%s” module is currently off. Changes you make below will not have any effect until you enable it.', 'native-aeo-pack' ),
    948952                                                '<strong>' . esc_html( $name ) . '</strong>'
    949953                                        )
    … …  
    10231027                                ?>
    10241028                                <p>
    1025                                         <?php esc_html_e( 'Review a few entries and, when everything looks right, deactivate the source SEO plugin from the Plugins screen. Visibility never deactivates it for you, and its data stays untouched, so you can compare or roll back anytime.', 'native-aeo-pack' ); ?>
     1029                                        <?php esc_html_e( 'When all looks right, deactivate the old SEO plugin yourself. Visibility never does it and leaves its data untouched, so you can go back.', 'native-aeo-pack' ); ?>
    10261030                                </p>
    10271031                                <?php
    … …  
    11141118                <?php if ( ! $folded ) : ?>
    11151119                        <p class="native-aeo-pack-import-detail">
    1116                                 <?php esc_html_e( 'Hiding stops this notice, here and on Overview, until there is something new to import. It stays on this tab, folded, and can still be imported.', 'native-aeo-pack' ); ?>
     1120                                <?php esc_html_e( 'Hiding removes this notice here and on “Overview” until there is something new to import. You can still import from this tab.', 'native-aeo-pack' ); ?>
    11171121                        </p>
    11181122                <?php endif; ?>
    … …  
    11451149                                </p>
    11461150                                <p>
    1147                                         <?php esc_html_e( 'Found data that is not in Visibility yet. Importing copies it; settings you have already changed here are kept (lists are merged), and nothing is removed from the old plugins.', 'native-aeo-pack' ); ?>
     1151                                        <?php esc_html_e( 'Importing copies the data. Settings you already changed are kept (lists are merged) and nothing is removed from the old plugins.', 'native-aeo-pack' ); ?>
    11481152                                </p>
    11491153                                <?php self::render_import_table( $found['rows'] ); ?>
    … …  
    11831187                                </p>
    11841188                                <p>
    1185                                         <?php esc_html_e( 'Found data that is not in Visibility yet. Nothing is copied until you press Import now. What you have already set here always wins, and nothing is changed or removed in the old plugin, which can be active or already deactivated.', 'native-aeo-pack' ); ?>
     1189                                        <?php esc_html_e( 'Nothing is copied until you press “Import now”. Your current settings win, and the old plugin is left untouched.', 'native-aeo-pack' ); ?>
    11861190                                </p>
    11871191                                <?php self::render_seo_import_table( $found['rows'] ); ?>
    … …  
    11901194                                        <summary><?php esc_html_e( 'What gets imported', 'native-aeo-pack' ); ?></summary>
    11911195                                        <ul class="ul-disc">
    1192                                                 <li><?php esc_html_e( 'On each entry and each term: meta title and description, canonical URL, robots flags (noindex, nofollow, nosnippet, noimageindex), Open Graph image, social title and description, and schema type.', 'native-aeo-pack' ); ?></li>
    1193                                                 <li><?php esc_html_e( 'Titles and descriptions made with the plugin\'s variables, on each entry and in the site-wide templates, are converted to Visibility\'s placeholders (%%title%%, %%sep%%, %%sitename%%, %%page%%, %%tagline%%, %%taxonomy%%, %%excerpt%%). One that needs a variable Visibility does not resolve, such as a custom field or a date, is left where it is.', 'native-aeo-pack' ); ?></li>
     1196                                                <li><?php echo wp_kses( __( 'Per entry and term: meta title and description, canonical URL, robots flags (<code>noindex</code>, <code>nofollow</code>, <code>nosnippet</code>, <code>noimageindex</code>), Open Graph image, social title and description, and schema type.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></li>
     1197                                                <li><?php echo wp_kses( __( 'Titles and descriptions using the plugin\'s variables become Visibility placeholders (<code>%%title%%</code>, <code>%%sitename%%</code>...). Variables with no equivalent, like custom fields or dates, stay as they are.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></li>
    11941198                                                <li><?php esc_html_e( 'Site settings: removing the /category/ base, redirecting attachment pages, the title separator, the default social image and the webmaster tools verification codes.', 'native-aeo-pack' ); ?></li>
    1195                                                 <li><?php esc_html_e( 'Site identity: entity type, name, description, logo, social profiles, email, phone, address and company details and, from Rank Math, the business type, coordinates, price range and opening hours.', 'native-aeo-pack' ); ?></li>
    1196                                                 <li><?php esc_html_e( 'Redirects (301, 302, 307 and 410) go to the Redirects tab, skipping any source you have already added there.', 'native-aeo-pack' ); ?></li>
     1199                                                <li><?php esc_html_e( 'Site identity: type, name, description, logo, social profiles and contact details, plus business type, coordinates, price range and hours from Rank Math.', 'native-aeo-pack' ); ?></li>
     1200                                                <li><?php esc_html_e( 'Redirects (301, 302, 307 and 410) go to the “Redirects” tab, skipping any source you have already added there.', 'native-aeo-pack' ); ?></li>
    11971201                                        </ul>
    11981202                                </details>
    … …  
    12261230                <p class="native-aeo-pack-import-detail">
    12271231                        <?php
    1228                         printf(
    1229                                 /* translators: %s: link to the Site Identity section of the Discover tab. */
    1230                                 esc_html__( 'Site Identity is off, so this identity will not be printed until you turn it on in %s. The name and description of an organization already go into the site name, llms.txt and the Markdown version of the blog, where those are on.', 'native-aeo-pack' ),
    1231                                 '<a href="' . esc_url( admin_url( 'admin.php?page=' . NATIVE_AEO_PACK_SLUG . '&tab=discover#native-aeo-pack-identity-name' ) ) . '">' . esc_html__( 'Discover, Site Identity', 'native-aeo-pack' ) . '</a>'
     1232                        echo wp_kses(
     1233                                sprintf(
     1234                                        /* translators: %s: link to the Site Identity section of the Discover tab. */
     1235                                        __( '“Site Identity” is off, so this is not published until you turn it on in %s. Name and description already appear in <code>llms.txt</code> and the Markdown, where those are on.', 'native-aeo-pack' ),
     1236                                        '<a href="' . esc_url( admin_url( 'admin.php?page=' . NATIVE_AEO_PACK_SLUG . '&tab=discover#native-aeo-pack-identity-name' ) ) . '">' . esc_html__( 'Discover, Site Identity', 'native-aeo-pack' ) . '</a>'
     1237                                ),
     1238                                array( 'code' => array(), 'a' => array( 'href' => array() ) )
    12321239                        );
    12331240                        ?>
    … …  
    13421349                        ?>
    13431350                        <p class="native-aeo-pack-import-detail">
    1344                                 <?php esc_html_e( 'Where two plugins keep the same value, the first column takes it: the plugin in use first, then the ones installed, then the one whose settings were created last.', 'native-aeo-pack' ); ?>
     1351                                <?php esc_html_e( 'If two plugins hold the same value, the first column wins: plugin in use, then installed ones, then the most recent.', 'native-aeo-pack' ); ?>
    13451352                        </p>
    13461353                        <?php
    … …  
    14531460                        $parts[] = sprintf(
    14541461                                /* translators: %s: number of items. */
    1455                                 _n( 'noarchive on %s item', 'noarchive on %s items', $n, 'native-aeo-pack' ),
     1462                                _n( '<code>noarchive</code> on %s item', '<code>noarchive</code> on %s items', $n, 'native-aeo-pack' ),
    14561463                                number_format_i18n( $n )
    14571464                        );
    … …  
    14611468                        $parts[] = sprintf(
    14621469                                /* translators: %s: number of items. */
    1463                                 _n( 'max-snippet limit on %s item', 'max-snippet limit on %s items', $n, 'native-aeo-pack' ),
     1470                                _n( '<code>max-snippet</code> limit on %s item', '<code>max-snippet</code> limit on %s items', $n, 'native-aeo-pack' ),
    14641471                                number_format_i18n( $n )
    14651472                        );
    … …  
    14691476                        $parts[] = sprintf(
    14701477                                /* translators: %s: number of items. */
    1471                                 _n( 'max-image-preview below large on %s item', 'max-image-preview below large on %s items', $n, 'native-aeo-pack' ),
     1478                                _n( '<code>max-image-preview</code> below large on %s item', '<code>max-image-preview</code> below large on %s items', $n, 'native-aeo-pack' ),
    14721479                                number_format_i18n( $n )
    14731480                        );
    … …  
    14771484                        $parts[] = sprintf(
    14781485                                /* translators: %s: number of items. */
    1479                                 _n( 'max-video-preview limit on %s item', 'max-video-preview limit on %s items', $n, 'native-aeo-pack' ),
     1486                                _n( '<code>max-video-preview</code> limit on %s item', '<code>max-video-preview</code> limit on %s items', $n, 'native-aeo-pack' ),
    14801487                                number_format_i18n( $n )
    14811488                        );
    … …  
    14871494                                $parts[] = sprintf(
    14881495                                        /* translators: 1: number of entries, 2: schema.org type. */
    1489                                         _n( 'its %2$s schema on %1$s entry', 'its %2$s schema on %1$s entries', (int) $n, 'native-aeo-pack' ),
     1496                                        _n( 'its <code>%2$s</code> schema on %1$s entry', 'its <code>%2$s</code> schema on %1$s entries', (int) $n, 'native-aeo-pack' ),
    14901497                                        number_format_i18n( (int) $n ),
    1491                                         (string) $type
     1498                                        esc_html( (string) $type )
    14921499                                );
    14931500                        }
    … …  
    15291536                                <p class="native-aeo-pack-section-desc native-aeo-pack-import-note-line">
    15301537                                        <strong><?php echo esc_html( $row['name'] ); ?></strong>
    1531                                         <?php echo esc_html( $text ); ?>
     1538                                        <?php echo wp_kses( $text, array( 'code' => array() ) ); ?>
    15321539                                </p>
    15331540                                <?php
    … …  
    15431550                                        printf(
    15441551                                                /* translators: %s: the Website Name kept by Rank Math. */
    1545                                                 esc_html__( 'Not imported: its Website Name, “%s”. Rank Math copies the site title when it is installed, so it may be an old one. If it is the name you want, type it in Discover, Site name.', 'native-aeo-pack' ),
     1552                                                esc_html__( 'Not imported: its Website Name, “%s”. Rank Math copies the site title on install, so it may be outdated. To use it, type it in “Discover, Site name”.', 'native-aeo-pack' ),
    15461553                                                esc_html( $row['site_name_left'] )
    15471554                                        );
    … …  
    15651572                        'meta_tags' => array(
    15661573                                'title' => __( 'Discover', 'native-aeo-pack' ),
    1567                                 'desc'  => __( 'Title tag, meta description, Open Graph, JSON-LD structured data and Site Identity, plus AI discovery: llms.txt, Markdown for agents and the robots.txt editor.', 'native-aeo-pack' ),
     1574                                'desc'  => __( 'Title tag, meta description, Open Graph, JSON-LD structured data and “Site Identity”, plus AI discovery: <code>llms.txt</code>, Markdown for agents and the <code>robots.txt</code> editor.', 'native-aeo-pack' ),
    15681575                        ),
    15691576                        'noindex'   => array(
    15701577                                'title' => __( 'Indexing', 'native-aeo-pack' ),
    1571                                 'desc'  => __( 'Robots directives (noindex, nofollow) at every level, with per-item overrides, plus URL clean-ups.', 'native-aeo-pack' ),
     1578                                'desc'  => __( 'Robots directives (<code>noindex</code>, <code>nofollow</code>) at every level, with per-item overrides, plus URL clean-ups.', 'native-aeo-pack' ),
    15721579                        ),
    15731580                        'sitemap'   => array(
    15741581                                'title' => __( 'Sitemaps', 'native-aeo-pack' ),
    1575                                 'desc'  => __( 'Customize what enters the native WordPress XML sitemap, with lastmod dates and noindex-aware exclusions.', 'native-aeo-pack' ),
     1582                                'desc'  => __( 'Customize what enters the native WordPress XML sitemap, with <code>lastmod</code> dates and <code>noindex</code>-aware exclusions.', 'native-aeo-pack' ),
    15761583                        ),
    15771584                        'redirects' => array(
    15781585                                'title' => __( 'Redirects', 'native-aeo-pack' ),
    1579                                 'desc'  => __( 'A lightweight 301 / 302 / 307 / 410 redirect manager resolved in PHP (no .htaccess, no database table), with a one-click importer from your previous SEO plugin.', 'native-aeo-pack' ),
     1586                                'desc'  => __( 'Manages 301, 302, 307 and 410 redirects, with a one-click importer from your previous SEO plugin.', 'native-aeo-pack' ),
    15801587                        ),
    15811588                );
    … …  
    16041611                                                        </label>
    16051612                                                </div>
    1606                                                 <p class="native-aeo-pack-module-desc"><?php echo esc_html( $meta['desc'] ); ?></p>
     1613                                                <p class="native-aeo-pack-module-desc"><?php echo wp_kses( $meta['desc'], array( 'code' => array() ) ); ?></p>
    16071614                                        </div>
    16081615                                <?php endforeach; ?>
    … …  
    16521659                                                                <?php endif; ?>
    16531660                                                                <p class="description">
    1654                                                                         <?php esc_html_e( 'Registers sixteen abilities: read and write the SEO of entries and terms, one by one or many at once, an SEO inventory, why an address is or is not indexed, finding entries and reading their text, the redirects and the noindex rules of the site. Each one asks for the same permission as the editor or the settings screen, so an agent can do no more than the user it is signed in as. Any client of the Abilities API finds them. Visibility adds no server, endpoint or key of its own.', 'native-aeo-pack' ); ?>
     1661                                                                        <?php echo wp_kses( __( 'Lets AI agents read and write your SEO data, check why a URL is or is not indexed, and manage redirects and <code>noindex</code> rules. Each action asks for the same permission as the editor, so an agent can do no more than its user.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    16551662                                                                </p>
    16561663                                                        </td>
    … …  
    16811688                                                                </label>
    16821689                                                                <p class="description">
    1683                                                                         <?php esc_html_e( 'By default, deleting Visibility from the Plugins screen removes its settings and every per-post, per-term and per-user value Visibility has stored (titles, meta descriptions, robots flags, social URLs). Tick this box if you plan to reinstall and want everything preserved.', 'native-aeo-pack' ); ?>
     1690                                                                        <?php esc_html_e( 'Tick to keep all Visibility data if you delete the plugin, for example to reinstall. Unticked, deleting it also deletes its settings and per-entry, per-term and per-user data.', 'native-aeo-pack' ); ?>
    16841691                                                                </p>
    16851692                                                        </td>
    … …  
    18771884                        </table>
    18781885                        <p class="native-aeo-pack-section-desc">
    1879                                 <?php esc_html_e( 'Visibility does not need them once your data is imported, and never deletes another plugin\'s data. If you are not going back to that plugin, remove them by hand after a backup: WordPress keeps loading the last column on every request.', 'native-aeo-pack' ); ?>
     1886                                <?php esc_html_e( 'Visibility does not need these once your data is imported, and never deletes them. Remove them by hand after a backup: WordPress loads the last column on every request.', 'native-aeo-pack' ); ?>
    18801887                        </p>
    18811888                </div>
    … …  
    19441951                                <p><strong><?php esc_html_e( 'Import the URL structure from Premmerce Permalink Manager', 'native-aeo-pack' ); ?></strong></p>
    19451952                                <p>
    1946                                         <?php esc_html_e( 'Visibility builds these WooCommerce URLs itself, redirects included, so the structure configured in Premmerce comes over instead of being retyped.', 'native-aeo-pack' ); ?>
     1953                                        <?php esc_html_e( 'Visibility builds these WooCommerce URLs itself, redirects included, so Premmerce\'s structure can be imported.', 'native-aeo-pack' ); ?>
    19471954                                </p>
    19481955                                <p><strong><?php esc_html_e( 'Until you import, your store does not serve the URLs Premmerce served.', 'native-aeo-pack' ); ?></strong></p>
    … …  
    19541961                                </ul>
    19551962                                <?php if ( ! empty( $missing ) ) : ?>
    1956                                         <p><?php esc_html_e( 'Not imported, because Visibility does not build them. Addresses that use them answer 404 unless you redirect them on the Redirects tab:', 'native-aeo-pack' ); ?></p>
     1963                                        <p><?php esc_html_e( 'Not imported, because Visibility does not build them. Addresses that use them answer 404 unless you redirect them on the “Redirects” tab:', 'native-aeo-pack' ); ?></p>
    19571964                                        <ul class="ul-disc">
    19581965                                                <?php foreach ( $missing as $line ) : ?>
    … …  
    19932000                        <h2><?php esc_html_e( 'Migration from another SEO plugin', 'native-aeo-pack' ); ?></h2>
    19942001                        <p class="native-aeo-pack-section-desc">
    1995                                 <?php esc_html_e( 'Nothing left to import. Visibility scans for data left by Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework, Slim SEO, SureRank, the WooCommerce URL structure of Premmerce Permalink Manager and the three AyudaWP plugins it replaces, and offers a one-click import here as soon as it finds any, whether or not the other plugin is still active.', 'native-aeo-pack' ); ?>
     2002                                <?php esc_html_e( 'Nothing left to import. Visibility offers a one-click import as soon as it finds data from another SEO plugin, active or not.', 'native-aeo-pack' ); ?>
    19962003                        </p>
    19972004                        <?php self::render_seo_unmapped_lines( $suites['rows'] ); ?>
    … …  
    20672074                        <?php if ( ! empty( $summary['posts_missing'] ) || ! empty( $summary['terms_missing'] ) ) : ?>
    20682075                                <p class="description">
    2069                                         <?php esc_html_e( 'Not found means the entry or term does not exist here with that slug, usually because it was never published on this site or its slug differs. Nothing was created: Visibility only writes SEO values on content that already exists.', 'native-aeo-pack' ); ?>
     2076                                        <?php esc_html_e( '“Not found” means no entry or term has that slug here. Nothing was created: Visibility only writes SEO values on existing content.', 'native-aeo-pack' ); ?>
    20702077                                </p>
    20712078                        <?php endif; ?>
    … …  
    20832090                        <h2><?php esc_html_e( 'Copy this configuration to another site', 'native-aeo-pack' ); ?></h2>
    20842091                        <p class="native-aeo-pack-section-desc">
    2085                                 <?php esc_html_e( 'Export every Visibility setting plus the per-entry and per-term values (meta titles and descriptions, canonical URLs, social overrides, schema types, robots flags) as a single JSON file, and import it on another site. Made for moving a configuration from staging to production without redoing it by hand.', 'native-aeo-pack' ); ?>
     2092                                <?php esc_html_e( 'Exports all Visibility settings and per-entry and per-term values to one JSON file you can import on another site.', 'native-aeo-pack' ); ?>
    20862093                        </p>
    20872094                        <p class="native-aeo-pack-section-desc">
    … …  
    20902097                                        sprintf(
    20912098                                                /* translators: %s: URL of the Redirects tab. */
    2092                                                 __( 'Content is matched by slug, not by database ID, so it also works between sites that were never clones. Two things stay out: your redirects, which have their own CSV export on the <a href="%s">Redirects tab</a>, and author profile fields, which belong to each user account rather than to the site configuration.', 'native-aeo-pack' ),
     2099                                                __( 'Content is matched by slug. Redirects (own CSV on the <a href="%s">Redirects tab</a>) and author profile fields are not included.', 'native-aeo-pack' ),
    20932100                                                esc_url( $redirects_url )
    20942101                                        ),
    … …  
    21282135                                                                </p>
    21292136                                                                <p class="description">
    2130                                                                         <?php esc_html_e( 'Leave the box unticked to fill in only what is empty here, which is the safe way to top up a site that already has its own SEO values. Tick it to make the file win. Plugin settings are always replaced by the ones in the file, and every value goes through the same validation as the settings screen.', 'native-aeo-pack' ); ?>
     2137                                                                        <?php esc_html_e( 'Unticked, only empty fields here are filled, the safe way to top up a site. Ticked, the file\'s values win. Plugin settings are always replaced.', 'native-aeo-pack' ); ?>
    21312138                                                                </p>
    21322139                                                                <button type="submit" class="button button-primary">
    … …  
    21882195                                        sprintf(
    21892196                                                /* translators: 1: anchor of the Import / Export section below, 2: URL of the Tools tab. */
    2190                                                 __( 'Migrating from another redirect or SEO plugin? <a href="%1$s">Import / Export</a> at the bottom of this tab reads the CSV any redirect plugin exports, and the <a href="%2$s">Tools tab</a> imports the redirects of Rank Math, All in One SEO, SEOPress and Redirection straight from their data.', 'native-aeo-pack' ),
     2197                                                __( 'Migrating? <a href="%1$s">Import / Export</a> reads any redirect plugin\'s CSV, and the <a href="%2$s">Tools tab</a> imports redirects directly from Rank Math, All in One SEO, SEOPress and Redirection.', 'native-aeo-pack' ),
    21912198                                                '#native-aeo-pack-redirect-tools',
    21922199                                                esc_url( admin_url( 'admin.php?page=' . NATIVE_AEO_PACK_SLUG . '&tab=tools' ) )
    … …  
    22502257                        <div class="native-aeo-pack-notice native-aeo-pack-notice--info native-aeo-pack-redirect-hops-notice"<?php echo empty( $native_aeo_pack_hops ) ? ' hidden' : ''; ?>>
    22512258                                <span class="dashicons dashicons-info" aria-hidden="true"></span>
    2252                                 <p><?php esc_html_e( 'Some redirects end at an old address of an entry, and WordPress sends that on with a second hop. They have a mark: Convert takes over that WordPress redirect, and visitors get there in one hop.', 'native-aeo-pack' ); ?></p>
     2259                                <p><?php esc_html_e( 'Marked redirects end at an old address that WordPress forwards again. “Convert” replaces that step so visitors arrive in one hop.', 'native-aeo-pack' ); ?></p>
    22532260                        </div>
    22542261                        <div class="native-aeo-pack-notice native-aeo-pack-notice--warning native-aeo-pack-redirect-loop-notice"<?php echo empty( $native_aeo_pack_loops ) ? ' hidden' : ''; ?>>
    22552262                                <span class="dashicons dashicons-warning" aria-hidden="true"></span>
    2256                                 <p><?php esc_html_e( 'Some redirects lead back to themselves through one another and are not served: a visitor would be sent round until the browser gave up. They are listed first, with a mark. Edit or delete one in each loop to break it.', 'native-aeo-pack' ); ?></p>
     2263                                <p><?php esc_html_e( 'Marked redirects loop back to each other and are not applied. Edit or delete one in each loop to break it.', 'native-aeo-pack' ); ?></p>
    22572264                        </div>
    22582265                        <?php self::render_itable_open( 'delete', __( 'Delete selected', 'native-aeo-pack' ), __( 'Search redirects…', 'native-aeo-pack' ) ); ?>
    … …  
    22892296                        <div class="native-aeo-pack-section native-aeo-pack-redirect-tools" id="native-aeo-pack-redirect-tools">
    22902297                                <h2 class="native-aeo-pack-redirect-tools-title"><?php esc_html_e( 'Import / Export', 'native-aeo-pack' ); ?></h2>
    2291                                 <p class="description"><?php esc_html_e( 'Export your redirects to a CSV file, or import them from one. The importer reads Visibility\'s own CSV (source, target, type) and the file other redirect plugins export, such as Redirection. Importing is non-destructive: your existing redirects are kept and re-running never duplicates.', 'native-aeo-pack' ); ?></p>
     2298                                <p class="description"><?php esc_html_e( 'Exports your redirects to CSV or imports them from one (Visibility\'s format or another plugin\'s). Existing redirects are kept and repeating an import never duplicates.', 'native-aeo-pack' ); ?></p>
    22922299                                <div class="native-aeo-pack-redirect-tools-actions">
    22932300                                        <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
    … …  
    23142321         * prints the <table> next, then closes with render_itable_close().
    23152322         *
    2316          * @param string $bulk        Bulk mode: delete|dismiss|remove-native.
    2317          * @param string $bulk_label  Label for the bulk-action button.
    2318          * @param string $placeholder Search box placeholder.
    2319          */
    2320         private static function render_itable_open( $bulk, $bulk_label, $placeholder ) {
     2323         * @param string                $bulk        Bulk mode: delete|dismiss|remove-native.
     2324         * @param string                $bulk_label  Label for the bulk-action button.
     2325         * @param string                $placeholder Search box placeholder.
     2326         * @param array<string, string> $extra       Bulk buttons printed before that one, as
     2327         *                                           mode => label (3.4.1: convert-native).
     2328         */
     2329        private static function render_itable_open( $bulk, $bulk_label, $placeholder, $extra = array() ) {
    23212330                ?>
    23222331                <div class="native-aeo-pack-itable" data-bulk="<?php echo esc_attr( $bulk ); ?>" data-per-page="10" data-search-min="8">
    … …  
    23272336                                </div>
    23282337                                <div class="native-aeo-pack-itable-bulk">
     2338                                        <?php foreach ( $extra as $native_aeo_pack_mode => $native_aeo_pack_label ) : ?>
     2339                                                <button type="button" class="button native-aeo-pack-itable-bulk-btn" data-bulk="<?php echo esc_attr( $native_aeo_pack_mode ); ?>" disabled><?php echo esc_html( $native_aeo_pack_label ); ?></button>
     2340                                        <?php endforeach; ?>
    23292341                                        <button type="button" class="button native-aeo-pack-itable-bulk-btn" disabled><?php echo esc_html( $bulk_label ); ?></button>
    23302342                                        <span class="native-aeo-pack-itable-count" aria-live="polite"></span>
    … …  
    24242436                        </h2>
    24252437                        <p class="description">
    2426                                 <?php esc_html_e( 'These URLs belonged to published content you deleted and now return a 404. Turn each into a 301 or a 410, or dismiss it. Nothing here is applied until you choose.', 'native-aeo-pack' ); ?>
     2438                                <?php esc_html_e( 'These URLs belonged to deleted content and now return a 404. Turn each into a 301 or a 410, or dismiss it. Nothing applies until you choose.', 'native-aeo-pack' ); ?>
    24272439                        </p>
    24282440                        <?php self::render_itable_open( 'dismiss', __( 'Dismiss selected', 'native-aeo-pack' ), __( 'Search suggestions…', 'native-aeo-pack' ) ); ?>
    … …  
    24632475                        <td class="native-aeo-pack-suggestion-col-title"><?php echo esc_html( $title ); ?></td>
    24642476                        <td class="native-aeo-pack-suggestion-col-actions">
    2465                                 <button type="button" class="button button-small native-aeo-pack-suggestion-410"><?php esc_html_e( 'Create 410', 'native-aeo-pack' ); ?></button>
    2466                                 <button type="button" class="button button-small native-aeo-pack-suggestion-301"><?php esc_html_e( 'Create 301…', 'native-aeo-pack' ); ?></button>
     2477                                <button type="button" class="button button-small native-aeo-pack-suggestion-410" title="<?php esc_attr_e( 'Click to mark the URL as permanently removed', 'native-aeo-pack' ); ?>"><?php esc_html_e( 'Create 410', 'native-aeo-pack' ); ?></button>
     2478                                <button type="button" class="button button-small native-aeo-pack-suggestion-301" title="<?php esc_attr_e( 'Click to create a permanent redirect to another URL', 'native-aeo-pack' ); ?>"><?php esc_html_e( 'Create 301…', 'native-aeo-pack' ); ?></button>
    24672479                                <button type="button" class="button-link native-aeo-pack-suggestion-dismiss"><?php esc_html_e( 'Dismiss', 'native-aeo-pack' ); ?></button>
    24682480                        </td>
    … …  
    24732485        /**
    24742486         * Render the "WordPress slug-change redirects" panel: the 301s WordPress
    2475          * makes on its own (`_wp_old_slug`), read-only, with Manage (take over as a
    2476          * managed redirect) and Remove (stop redirecting). Empty queue renders nothing.
     2487         * makes on its own (`_wp_old_slug`), read-only, with "Move to Visibility" (take
     2488         * over as a managed redirect; "Manage" until 3.4.0, and in bulk since 3.4.1) and
     2489         * Remove (stop redirecting). Empty queue renders nothing.
    24772490         *
    24782491         * @param array<int,array{post_id:int,old_slug:string,source:string,target:string,title:string}> $native Entries.
    … …  
    24892502                        </h2>
    24902503                        <p class="description">
    2491                                 <?php esc_html_e( "When a published post's URL changes, WordPress keeps the old one working with a 301. They already redirect. Take one over to edit or change it, or remove it to stop the redirect.", 'native-aeo-pack' ); ?>
     2504                                <?php esc_html_e( 'WordPress already redirects these old addresses with a 301. “Move to Visibility” turns one into a redirect of yours, to edit it; removing it stops the redirect.', 'native-aeo-pack' ); ?>
    24922505                        </p>
    2493                         <?php self::render_itable_open( 'remove-native', __( 'Remove selected', 'native-aeo-pack' ), __( 'Search redirects…', 'native-aeo-pack' ) ); ?>
     2506                        <?php self::render_itable_open( 'remove-native', __( 'Remove selected', 'native-aeo-pack' ), __( 'Search redirects…', 'native-aeo-pack' ), array( 'convert-native' => __( 'Move selected to Visibility', 'native-aeo-pack' ) ) ); ?>
    24942507                        <table class="native-aeo-pack-redirect-table widefat striped">
    24952508                                <thead>
    … …  
    25312544                        <td class="native-aeo-pack-redirect-col-target"><code><?php echo esc_html( $target ); ?></code> <span class="native-aeo-pack-redirect-badge native-aeo-pack-redirect-badge-301">301</span></td>
    25322545                        <td class="native-aeo-pack-suggestion-col-actions">
    2533                                 <button type="button" class="button button-small native-aeo-pack-native-manage"><?php esc_html_e( 'Manage', 'native-aeo-pack' ); ?></button>
     2546                                <button type="button" class="button button-small native-aeo-pack-native-manage"><?php esc_html_e( 'Move to Visibility', 'native-aeo-pack' ); ?></button>
    25342547                                <button type="button" class="button-link native-aeo-pack-native-remove"><?php esc_html_e( 'Remove', 'native-aeo-pack' ); ?></button>
    25352548                        </td>
    … …  
    26052618                                                        'schema_page_author' => array(
    26062619                                                                __( 'JSON-LD: author on pages', 'native-aeo-pack' ),
    2607                                                                 __( 'Adds the author to the structured data of pages and of any content type set to a page type (WebPage, AboutPage, ContactPage and the rest). Off by default, and that is what the rest of the ecosystem does: the author belongs to the Article family, which always carries it, and Google does not use it on a page. Switch it on if your pages are signed editorial work rather than corporate pages. Needs the Article and BreadcrumbList toggle above, whose node it joins.', 'native-aeo-pack' ),
     2620                                                                __( 'Adds the author to the structured data of pages (WebPage, AboutPage…). Needs the “JSON-LD: Article and BreadcrumbList” toggle above.', 'native-aeo-pack' ),
    26082621                                                        ),
    26092622                                                        'schema_person' => array(
    26102623                                                                __( 'JSON-LD: Person and ProfilePage on author archives', 'native-aeo-pack' ),
    2611                                                                 __( 'E-E-A-T signal with Gravatar image, job title, topics of expertise, credentials and sameAs, all from the fields on the user profile, and the ProfilePage that describes the author. Only on the first page of the archive of a user with at least one published post. Switched off, author archives carry no structured data, and a page marked as a profile names its author with just a name and an address.', 'native-aeo-pack' ),
     2624                                                                __( 'Describes the author on their archive with Person and ProfilePage data from the user profile. Only on page 1, for authors with a published post.', 'native-aeo-pack' ),
    26122625                                                        ),
    26132626                                                        'author_details_auto' => array(
    26142627                                                                __( 'Author details on profile pages', 'native-aeo-pack' ),
    2615                                                                 __( 'Shows the job title, topics of expertise, credentials and profile links at the end of the profile page an author picked, unless the page already has the Author details block or shortcode. Google asks that structured data describe what readers can see. Off by default: with the block or the shortcode you place them yourself, on the author archive too.', 'native-aeo-pack' ),
     2628                                                                __( 'Adds job title, credentials and links at the end of the author\'s profile page, unless it already has the “Author details” block or shortcode.', 'native-aeo-pack' ),
    26162629                                                        ),
    26172630                                                        'schema_faq' => array(
    26182631                                                                __( 'JSON-LD: FAQPage from Q&amp;A blocks', 'native-aeo-pack' ),
    2619                                                                 __( 'Turns the Details and Accordion blocks already in your content into FAQPage structured data, reading the question from the block heading and the answer from its content. Only switch it on if those blocks really hold questions and answers: describing something else as a FAQ is worse than not describing it. Needs the Article and BreadcrumbList toggle above, whose block it joins. It helps AI assistants pick up your Q&amp;A structure; it does not bring back Google FAQ rich results, which Google no longer shows. An entry set to nosnippet gets no FAQPage while Respect nosnippet, in the llms.txt section, is on.', 'native-aeo-pack' ),
     2632                                                                __( 'Turns “Details” and “Accordion” blocks into FAQPage data (heading = question, content = answer). Only for blocks that really hold Q&amp;A. Needs the “JSON-LD: Article and BreadcrumbList” toggle above.', 'native-aeo-pack' ),
    26202633                                                        ),
    26212634                                                );
    … …  
    26602673                                                                        name="<?php echo esc_attr( $opt ); ?>[meta_tags][home_description_override]"
    26612674                                                                        rows="2"
    2662                                                                         class="large-text"
     2675                                                                        class="large-text code"
     2676                                                                        placeholder="%%tagline%%"
    26632677                                                                ><?php echo esc_textarea( (string) $meta['home_description_override'] ); ?></textarea>
    2664                                                                 <p class="description"><?php esc_html_e( 'Used on the front page when the page set as front page has no Meta description of its own, which always wins. Leave both empty to fall back to the site tagline (Settings → General).', 'native-aeo-pack' ); ?></p>
     2678                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-home-description', 'description', 'home' ); ?>
     2679                                                                <p class="description"><?php esc_html_e( 'Used on the front page when the page set as front page has no “Meta description”. Empty: the site tagline.', 'native-aeo-pack' ); ?></p>
    26652680                                                        </td>
    26662681                                                </tr>
    … …  
    27232738                                                        </th>
    27242739                                                        <td>
    2725                                                                 <input id="native-aeo-pack-title-template" type="text" class="large-text code" data-nap-tags="native-aeo-pack-title-template" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_template]" value="<?php echo esc_attr( $native_aeo_pack_tpl_general ); ?>" placeholder="<?php echo esc_attr( $native_aeo_pack_tpl_default ); ?>" />
    2726                                                                 <p class="description">
    2727                                                                         <?php
    2728                                                                         echo wp_kses(
    2729                                                                                 sprintf(
    2730                                                                                         /* translators: 1: %%title%%, 2: %%sep%%, 3: %%sitename%%, 4: %%page%%, 5: %%tagline%%, 6: %%taxonomy%% (literal placeholders, do not translate them). */
    2731                                                                                         esc_html__( 'How the automatic title is put together, using %1$s (page title), %2$s (the separator above), %3$s, %4$s (page number), %5$s and %6$s (the first term of the main taxonomy of the entry: its first category on a post, its first product category on a product). Leave empty to keep the WordPress composition. Applies everywhere except the front page, which has its own template below. A Meta title typed on an entry or a term wins over it, and may use the same placeholders.', 'native-aeo-pack' ),
    2732                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%title%%', 'native-aeo-pack-title-template' ),
    2733                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sep%%', 'native-aeo-pack-title-template' ),
    2734                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sitename%%', 'native-aeo-pack-title-template' ),
    2735                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%page%%', 'native-aeo-pack-title-template' ),
    2736                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%tagline%%', 'native-aeo-pack-title-template' ),
    2737                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%taxonomy%%', 'native-aeo-pack-title-template' )
    2738                                                                                 ),
    2739                                                                                 Native_AEO_Pack_Title_Template::tag_allowed_html()
    2740                                                                         );
    2741                                                                         ?>
    2742                                                                 </p>
    2743                                                                 <p class="description"><?php esc_html_e( 'On paginated pages the page number is added even when the template does not include it, so page 2 onwards never repeats the title of page 1.', 'native-aeo-pack' ); ?></p>
     2740                                                                <input id="native-aeo-pack-title-template" type="text" class="large-text code" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_template]" value="<?php echo esc_attr( $native_aeo_pack_tpl_general ); ?>" placeholder="<?php echo esc_attr( $native_aeo_pack_tpl_default ); ?>" />
     2741                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-title-template', 'title' ); ?>
     2742                                                                <p class="description"><?php esc_html_e( 'Empty keeps the WordPress title.', 'native-aeo-pack' ); ?></p>
     2743                                                                <p class="description"><?php esc_html_e( 'From page 2 on, the page number is added even if the template omits it.', 'native-aeo-pack' ); ?></p>
    27442744                                                        </td>
    27452745                                                </tr>
    … …  
    27492749                                                        </th>
    27502750                                                        <td>
    2751                                                                 <input id="native-aeo-pack-title-template-home" type="text" class="large-text code" data-nap-tags="native-aeo-pack-title-template" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_template_home]" value="<?php echo esc_attr( $native_aeo_pack_tpl_home ); ?>" placeholder="%%sitename%% %%sep%% %%tagline%%" />
    2752                                                                 <p class="description"><?php esc_html_e( 'Template for the front page only, where the page title is the site name. Leave empty to keep the WordPress composition (site name, separator, tagline). A Meta title set on a static front page still wins.', 'native-aeo-pack' ); ?></p>
     2751                                                                <input id="native-aeo-pack-title-template-home" type="text" class="large-text code" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_template_home]" value="<?php echo esc_attr( $native_aeo_pack_tpl_home ); ?>" placeholder="%%sitename%% %%sep%% %%tagline%%" />
     2752                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-title-template-home', 'title', 'home' ); ?>
     2753                                                                <p class="description"><?php esc_html_e( 'Title for the front page only. Empty keeps the WordPress title.', 'native-aeo-pack' ); ?></p>
    27532754                                                        </td>
    27542755                                                </tr>
    … …  
    27652766                                                                        $native_aeo_pack_field_id = 'native-aeo-pack-title-template-pt-' . $native_aeo_pack_pt_obj->name;
    27662767                                                                        ?>
    2767                                                                         <p class="native-aeo-pack-template-row">
    2768                                                                                 <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>"><?php echo esc_html( $native_aeo_pack_pt_obj->labels->name ); ?></label>
    2769                                                                                 <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" data-nap-tags="native-aeo-pack-title-template" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_templates_post_types][<?php echo esc_attr( $native_aeo_pack_pt_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_tpl_types[ $native_aeo_pack_pt_obj->name ] ) ? (string) $native_aeo_pack_tpl_types[ $native_aeo_pack_pt_obj->name ] : '' ); ?>" placeholder="<?php echo esc_attr( $native_aeo_pack_tpl_placeholder ); ?>" />
    2770                                                                         </p>
     2768                                                                        <div class="native-aeo-pack-tpl-field">
     2769                                                                                <p class="native-aeo-pack-template-row">
     2770                                                                                        <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>"><?php echo esc_html( $native_aeo_pack_pt_obj->labels->name ); ?></label>
     2771                                                                                        <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_templates_post_types][<?php echo esc_attr( $native_aeo_pack_pt_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_tpl_types[ $native_aeo_pack_pt_obj->name ] ) ? (string) $native_aeo_pack_tpl_types[ $native_aeo_pack_pt_obj->name ] : '' ); ?>" placeholder="<?php echo esc_attr( $native_aeo_pack_tpl_placeholder ); ?>" />
     2772                                                                                </p>
     2773                                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( $native_aeo_pack_field_id, 'title', 'post', true ); ?>
     2774                                                                        </div>
    27712775                                                                <?php endforeach; ?>
    27722776                                                        </td>
    … …  
    27752779                                                        <th scope="row"><?php esc_html_e( 'Per taxonomy', 'native-aeo-pack' ); ?></th>
    27762780                                                        <td>
    2777                                                                 <p class="description" style="margin-bottom:8px;"><?php esc_html_e( 'A template here replaces the general one on the archives of that taxonomy, where the page title is the term name. Leave a field empty to inherit the general template.', 'native-aeo-pack' ); ?></p>
     2781                                                                <p class="description" style="margin-bottom:8px;"><?php esc_html_e( 'Replaces the general template on that taxonomy\'s archives. Empty: the general one.', 'native-aeo-pack' ); ?></p>
    27782782                                                                <?php
    27792783                                                                foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $native_aeo_pack_tax_obj ) :
    … …  
    27832787                                                                        $native_aeo_pack_field_id = 'native-aeo-pack-title-template-tax-' . $native_aeo_pack_tax_obj->name;
    27842788                                                                        ?>
    2785                                                                         <p class="native-aeo-pack-template-row">
    2786                                                                                 <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>">
    2787                                                                                         <?php
    2788                                                                                         printf(
    2789                                                                                                 /* translators: %s: taxonomy label. */
    2790                                                                                                 esc_html__( '%s archives', 'native-aeo-pack' ),
    2791                                                                                                 esc_html( $native_aeo_pack_tax_obj->labels->singular_name )
    2792                                                                                         );
    2793                                                                                         ?>
    2794                                                                                 </label>
    2795                                                                                 <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" data-nap-tags="native-aeo-pack-title-template" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_templates_taxonomies][<?php echo esc_attr( $native_aeo_pack_tax_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_tpl_taxes[ $native_aeo_pack_tax_obj->name ] ) ? (string) $native_aeo_pack_tpl_taxes[ $native_aeo_pack_tax_obj->name ] : '' ); ?>" placeholder="<?php echo esc_attr( $native_aeo_pack_tpl_placeholder ); ?>" />
    2796                                                                         </p>
     2789                                                                        <div class="native-aeo-pack-tpl-field">
     2790                                                                                <p class="native-aeo-pack-template-row">
     2791                                                                                        <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>">
     2792                                                                                                <?php
     2793                                                                                                printf(
     2794                                                                                                        /* translators: %s: taxonomy label. */
     2795                                                                                                        esc_html__( '%s archives', 'native-aeo-pack' ),
     2796                                                                                                        esc_html( $native_aeo_pack_tax_obj->labels->singular_name )
     2797                                                                                                );
     2798                                                                                                ?>
     2799                                                                                        </label>
     2800                                                                                        <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" maxlength="200" name="<?php echo esc_attr( $opt ); ?>[meta_tags][title_templates_taxonomies][<?php echo esc_attr( $native_aeo_pack_tax_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_tpl_taxes[ $native_aeo_pack_tax_obj->name ] ) ? (string) $native_aeo_pack_tpl_taxes[ $native_aeo_pack_tax_obj->name ] : '' ); ?>" placeholder="<?php echo esc_attr( $native_aeo_pack_tpl_placeholder ); ?>" />
     2801                                                                                </p>
     2802                                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( $native_aeo_pack_field_id, 'title', 'post', true ); ?>
     2803                                                                        </div>
    27972804                                                                <?php endforeach; ?>
    27982805                                                        </td>
    … …  
    28052812                                <h2><?php esc_html_e( 'Meta description templates', 'native-aeo-pack' ); ?></h2>
    28062813                                <p class="native-aeo-pack-section-desc">
    2807                                         <?php esc_html_e( 'How the automatic meta description is put together when an entry or a term has none of its own. Leave everything empty to keep the automatic description on its own: the excerpt or the opening of the content on an entry, the term description on an archive.', 'native-aeo-pack' ); ?>
     2814                                        <?php esc_html_e( 'Builds the meta description of entries and terms that have none. Empty keeps the automatic one (excerpt, start of content or term description).', 'native-aeo-pack' ); ?>
    28082815                                </p>
    28092816
    … …  
    28202827                                                        </th>
    28212828                                                        <td>
    2822                                                                 <input id="native-aeo-pack-description-template" type="text" class="large-text code" data-nap-tags="native-aeo-pack-description-template" maxlength="400" name="<?php echo esc_attr( $opt ); ?>[meta_tags][description_template]" value="<?php echo esc_attr( $native_aeo_pack_dtpl_general ); ?>" placeholder="%%excerpt%%" />
    2823                                                                 <p class="description">
    2824                                                                         <?php
    2825                                                                         echo wp_kses(
    2826                                                                                 sprintf(
    2827                                                                                         /* translators: 1: %%excerpt%%, 2: %%title%%, 3: %%sitename%%, 4: %%tagline%%, 5: %%taxonomy%%, 6: %%sep%% (literal placeholders, do not translate them). */
    2828                                                                                         esc_html__( 'Uses %1$s (the automatic description), %2$s, %3$s, %4$s, %5$s (the first term of the main taxonomy of the entry) and %6$s. Applies to entries and term archives without a Meta description of their own; the front page keeps its own field above. A Meta description typed on an entry or a term wins over it, and may use the same placeholders.', 'native-aeo-pack' ),
    2829                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%excerpt%%', 'native-aeo-pack-description-template' ),
    2830                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%title%%', 'native-aeo-pack-description-template' ),
    2831                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sitename%%', 'native-aeo-pack-description-template' ),
    2832                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%tagline%%', 'native-aeo-pack-description-template' ),
    2833                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%taxonomy%%', 'native-aeo-pack-description-template' ),
    2834                                                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sep%%', 'native-aeo-pack-description-template' )
    2835                                                                                 ),
    2836                                                                                 Native_AEO_Pack_Title_Template::tag_allowed_html()
    2837                                                                         );
    2838                                                                         ?>
    2839                                                                 </p>
     2829                                                                <input id="native-aeo-pack-description-template" type="text" class="large-text code" maxlength="400" name="<?php echo esc_attr( $opt ); ?>[meta_tags][description_template]" value="<?php echo esc_attr( $native_aeo_pack_dtpl_general ); ?>" placeholder="%%excerpt%%" />
     2830                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-description-template', 'description' ); ?>
    28402831                                                        </td>
    28412832                                                </tr>
    … …  
    28512842                                                                        $native_aeo_pack_field_id = 'native-aeo-pack-description-template-pt-' . $native_aeo_pack_pt_obj->name;
    28522843                                                                        ?>
    2853                                                                         <p class="native-aeo-pack-template-row">
    2854                                                                                 <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>"><?php echo esc_html( $native_aeo_pack_pt_obj->labels->name ); ?></label>
    2855                                                                                 <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" data-nap-tags="native-aeo-pack-description-template" maxlength="400" name="<?php echo esc_attr( $opt ); ?>[meta_tags][description_templates_post_types][<?php echo esc_attr( $native_aeo_pack_pt_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_dtpl_types[ $native_aeo_pack_pt_obj->name ] ) ? (string) $native_aeo_pack_dtpl_types[ $native_aeo_pack_pt_obj->name ] : '' ); ?>" placeholder="%%excerpt%%" />
    2856                                                                         </p>
     2844                                                                        <div class="native-aeo-pack-tpl-field">
     2845                                                                                <p class="native-aeo-pack-template-row">
     2846                                                                                        <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>"><?php echo esc_html( $native_aeo_pack_pt_obj->labels->name ); ?></label>
     2847                                                                                        <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" maxlength="400" name="<?php echo esc_attr( $opt ); ?>[meta_tags][description_templates_post_types][<?php echo esc_attr( $native_aeo_pack_pt_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_dtpl_types[ $native_aeo_pack_pt_obj->name ] ) ? (string) $native_aeo_pack_dtpl_types[ $native_aeo_pack_pt_obj->name ] : '' ); ?>" placeholder="%%excerpt%%" />
     2848                                                                                </p>
     2849                                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( $native_aeo_pack_field_id, 'description', 'post', true ); ?>
     2850                                                                        </div>
    28572851                                                                <?php endforeach; ?>
    28582852                                                        </td>
    … …  
    28612855                                                        <th scope="row"><?php esc_html_e( 'Per taxonomy', 'native-aeo-pack' ); ?></th>
    28622856                                                        <td>
    2863                                                                 <p class="description" style="margin-bottom:8px;"><?php esc_html_e( 'A template here replaces the general one on the archives of that taxonomy, where the automatic description is the term description. Leave a field empty to inherit the general template.', 'native-aeo-pack' ); ?></p>
     2857                                                                <p class="description" style="margin-bottom:8px;"><?php esc_html_e( 'Replaces the general template on that taxonomy\'s archives. Empty: the general one.', 'native-aeo-pack' ); ?></p>
    28642858                                                                <?php
    28652859                                                                foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $native_aeo_pack_tax_obj ) :
    … …  
    28692863                                                                        $native_aeo_pack_field_id = 'native-aeo-pack-description-template-tax-' . $native_aeo_pack_tax_obj->name;
    28702864                                                                        ?>
    2871                                                                         <p class="native-aeo-pack-template-row">
    2872                                                                                 <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>">
    2873                                                                                         <?php
    2874                                                                                         printf(
    2875                                                                                                 /* translators: %s: taxonomy label. */
    2876                                                                                                 esc_html__( '%s archives', 'native-aeo-pack' ),
    2877                                                                                                 esc_html( $native_aeo_pack_tax_obj->labels->singular_name )
    2878                                                                                         );
    2879                                                                                         ?>
    2880                                                                                 </label>
    2881                                                                                 <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" data-nap-tags="native-aeo-pack-description-template" maxlength="400" name="<?php echo esc_attr( $opt ); ?>[meta_tags][description_templates_taxonomies][<?php echo esc_attr( $native_aeo_pack_tax_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_dtpl_taxes[ $native_aeo_pack_tax_obj->name ] ) ? (string) $native_aeo_pack_dtpl_taxes[ $native_aeo_pack_tax_obj->name ] : '' ); ?>" placeholder="%%excerpt%%" />
    2882                                                                         </p>
     2865                                                                        <div class="native-aeo-pack-tpl-field">
     2866                                                                                <p class="native-aeo-pack-template-row">
     2867                                                                                        <label for="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>">
     2868                                                                                                <?php
     2869                                                                                                printf(
     2870                                                                                                        /* translators: %s: taxonomy label. */
     2871                                                                                                        esc_html__( '%s archives', 'native-aeo-pack' ),
     2872                                                                                                        esc_html( $native_aeo_pack_tax_obj->labels->singular_name )
     2873                                                                                                );
     2874                                                                                                ?>
     2875                                                                                        </label>
     2876                                                                                        <input id="<?php echo esc_attr( $native_aeo_pack_field_id ); ?>" type="text" class="large-text code" maxlength="400" name="<?php echo esc_attr( $opt ); ?>[meta_tags][description_templates_taxonomies][<?php echo esc_attr( $native_aeo_pack_tax_obj->name ); ?>]" value="<?php echo esc_attr( isset( $native_aeo_pack_dtpl_taxes[ $native_aeo_pack_tax_obj->name ] ) ? (string) $native_aeo_pack_dtpl_taxes[ $native_aeo_pack_tax_obj->name ] : '' ); ?>" placeholder="%%excerpt%%" />
     2877                                                                                </p>
     2878                                                                                <?php Native_AEO_Pack_Title_Template::print_tags_row( $native_aeo_pack_field_id, 'description', 'post', true ); ?>
     2879                                                                        </div>
    28832880                                                                <?php endforeach; ?>
    28842881                                                        </td>
    … …  
    28912888                                <h2><?php esc_html_e( 'Site verification', 'native-aeo-pack' ); ?></h2>
    28922889                                <p class="native-aeo-pack-section-desc">
    2893                                         <?php esc_html_e( 'Ownership verification for the search engines\' webmaster tools, printed as meta tags on the home page only. Paste the code each service gives you — the full <meta> tag works too, Visibility keeps just the token.', 'native-aeo-pack' ); ?>
     2890                                        <?php echo wp_kses( __( 'Paste the code each search engine gives you; it is printed on the home page only. A full <code>&lt;meta&gt;</code> tag also works.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    28942891                                </p>
    28952892
    … …  
    29642961                                <h2><?php esc_html_e( 'Open Graph and Twitter', 'native-aeo-pack' ); ?></h2>
    29652962                                <p class="native-aeo-pack-section-desc">
    2966                                         <?php esc_html_e( 'Optional site-wide values for og:* and twitter:* tags.', 'native-aeo-pack' ); ?>
     2963                                        <?php echo wp_kses( __( 'Optional site-wide values for <code>og:*</code> and <code>twitter:*</code> tags.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    29672964                                </p>
    29682965
    … …  
    29822979                                                                        placeholder="<?php esc_attr_e( 'yourhandle', 'native-aeo-pack' ); ?>"
    29832980                                                                />
    2984                                                                 <p class="description"><?php esc_html_e( 'Without the @. Added as twitter:site.', 'native-aeo-pack' ); ?></p>
     2981                                                                <p class="description"><?php echo wp_kses( __( 'Without the @. Added as <code>twitter:site</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    29852982                                                        </td>
    29862983                                                </tr>
    … …  
    29972994                                                                        class="regular-text"
    29982995                                                                />
    2999                                                                 <p class="description"><?php esc_html_e( 'Optional. Added as fb:app_id when set.', 'native-aeo-pack' ); ?></p>
     2996                                                                <p class="description"><?php echo wp_kses( __( 'Optional. Added as <code>fb:app_id</code> when set.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    30002997                                                        </td>
    30012998                                                </tr>
    … …  
    30083005                                <h2><?php esc_html_e( 'Site name (WebSite)', 'native-aeo-pack' ); ?></h2>
    30093006                                <p class="native-aeo-pack-section-desc">
    3010                                         <?php esc_html_e( 'The name search engines and AI assistants show for the site. Written as WebSite JSON-LD on the home page and as og:site_name on every page, and used as the title of llms.txt and of the Markdown version of the blog.', 'native-aeo-pack' ); ?>
     3007                                        <?php echo wp_kses( __( 'The site name for search engines and AI assistants. Also the title of <code>llms.txt</code> and of the blog\'s Markdown version.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    30113008                                </p>
    30123009
    … …  
    30233020                                                <span class="dashicons dashicons-share-alt2" aria-hidden="true"></span>
    30243021                                                <p>
    3025                                                         <strong><?php esc_html_e( 'VigIA writes the WebSite on the home page.', 'native-aeo-pack' ); ?></strong>
     3022                                                        <strong><?php echo wp_kses( __( 'VigIA writes the <code>WebSite</code> on the home page.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
    30263023                                                        <?php
    30273024                                                        if ( Native_AEO_Pack_Conflicts::vigia_site_identity_active() ) {
    3028                                                                 esc_html_e( 'It goes with its Site Identity, so Visibility does not add a second one, and the name there is the one set in VigIA.', 'native-aeo-pack' );
     3025                                                                esc_html_e( 'It goes with its “Site Identity”, so Visibility does not add a second one, and the name there is the one set in VigIA.', 'native-aeo-pack' );
    30293026                                                        } else {
    3030                                                                 esc_html_e( 'It goes with its AI Discovery, under the site title, so Visibility does not add a second one and the site name below is not used there. Turn off AI Discovery in VigIA and Visibility writes it instead.', 'native-aeo-pack' );
     3027                                                                esc_html_e( 'VigIA already writes it under the site title, so Visibility adds none and ignores the site name below. Turn off “AI Discovery” in VigIA to take it over.', 'native-aeo-pack' );
    30313028                                                        }
    30323029                                                        ?>
    … …  
    30453042                                                                        <?php esc_html_e( 'Write the WebSite JSON-LD on the home page.', 'native-aeo-pack' ); ?>
    30463043                                                                </label>
    3047                                                                 <p class="description"><?php esc_html_e( 'Also with Site Identity off: the home page is where Google reads the site name from. Turn it off only if your theme or another plugin already writes one.', 'native-aeo-pack' ); ?></p>
     3044                                                                <p class="description"><?php esc_html_e( 'Also written when “Site Identity” is off. Turn it off only if your theme or another plugin already writes it.', 'native-aeo-pack' ); ?></p>
    30483045                                                        </td>
    30493046                                                </tr>
    … …  
    30523049                                                        <td>
    30533050                                                                <input id="native-aeo-pack-website-name" type="text" name="<?php echo esc_attr( $opt ); ?>[meta_tags][website_name]" value="<?php echo esc_attr( (string) $meta['website_name'] ); ?>" class="regular-text" placeholder="<?php echo esc_attr( $native_aeo_pack_site_fallback ); ?>" data-nap-site-title="<?php echo esc_attr( Native_AEO_Pack_Text::site_name() ); ?>" />
    3054                                                                 <p class="description"><?php esc_html_e( 'Leave empty to use the name of the organization or business in Site Identity, or the site title (Settings → General) when there is none.', 'native-aeo-pack' ); ?></p>
     3051                                                                <p class="description"><?php esc_html_e( 'Leave empty to use the name of the organization or business in “Site Identity”, or the site title (“Settings → General”) when there is none.', 'native-aeo-pack' ); ?></p>
    30553052                                                        </td>
    30563053                                                </tr>
    … …  
    30593056                                                        <td>
    30603057                                                                <textarea id="native-aeo-pack-identity-alternate-name" name="<?php echo esc_attr( $opt ); ?>[meta_tags][identity_alternate_name]" rows="2" class="regular-text"><?php echo esc_textarea( (string) $meta['identity_alternate_name'] ); ?></textarea>
    3061                                                                 <p class="description"><?php esc_html_e( 'Optional, one per line: an acronym or a shorter name people use for the site. Google reads them next to the name when it picks the site name to show. They go on the organization too when it has the same name as the site.', 'native-aeo-pack' ); ?></p>
     3058                                                                <p class="description"><?php esc_html_e( 'Optional, one per line: an acronym or shorter name. Google reads them next to the site name.', 'native-aeo-pack' ); ?></p>
    30623059                                                        </td>
    30633060                                                </tr>
    … …  
    30793076                                <h2><?php esc_html_e( 'Site Identity (Organization / Local business / Person)', 'native-aeo-pack' ); ?></h2>
    30803077                                <p class="native-aeo-pack-section-desc">
    3081                                         <?php esc_html_e( 'Tells search engines and AI assistants who is behind the site. Written as Organization, LocalBusiness or Person JSON-LD on the target page (the home page by default), and referenced by the Article and Person graphs by @id.', 'native-aeo-pack' ); ?>
     3078                                        <?php echo wp_kses( __( 'Tells search engines and AI assistants who is behind the site, as <code>Organization</code>, <code>LocalBusiness</code> or <code>Person</code> data on the target page.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    30823079                                </p>
    30833080
    … …  
    30903087                                                <span class="dashicons dashicons-share-alt2" aria-hidden="true"></span>
    30913088                                                <p>
    3092                                                         <strong><?php esc_html_e( 'VigIA also has Site Identity active.', 'native-aeo-pack' ); ?></strong>
    3093                                                         <?php esc_html_e( 'Visibility takes priority and writes the Organization/Person and WebSite JSON-LD. To avoid duplicate nodes, update VigIA (it will yield to Visibility) or turn off Site Identity in VigIA.', 'native-aeo-pack' ); ?>
     3089                                                        <strong><?php esc_html_e( 'VigIA also has “Site Identity” active.', 'native-aeo-pack' ); ?></strong>
     3090                                                        <?php esc_html_e( 'Visibility takes priority and writes this data. Update VigIA or turn off its “Site Identity” to avoid duplicates.', 'native-aeo-pack' ); ?>
    30943091                                                </p>
    30953092                                        </div>
    … …  
    31203117                                                                        <label><input type="radio" name="<?php echo esc_attr( $opt ); ?>[meta_tags][identity_type]" value="Person" <?php checked( 'Person', $native_aeo_pack_etype ); ?> /> <?php esc_html_e( 'Person', 'native-aeo-pack' ); ?></label>
    31213118                                                                </fieldset>
    3122                                                                 <p class="description"><?php esc_html_e( 'A brand, company or project (Organization, with its type if one fits), a business with a physical location that customers visit (Local business), or a personal site / individual (Person).', 'native-aeo-pack' ); ?></p>
     3119                                                                <p class="description"><?php esc_html_e( 'Organization: brand, company or project. Local business: customers visit you in person. Person: a personal site.', 'native-aeo-pack' ); ?></p>
    31233120                                                        </td>
    31243121                                                </tr>
    … …  
    31313128                                                                        <?php endforeach; ?>
    31323129                                                                </select>
    3133                                                                 <p class="description"><?php esc_html_e( 'The schema.org type written in the markup. Google asks for the most specific one that fits (Online store, NGO, School…); the generic Organization when none does.', 'native-aeo-pack' ); ?></p>
     3130                                                                <p class="description"><?php echo wp_kses( __( 'The schema.org type to write. Pick the most specific one that fits, or <code>Organization</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    31343131                                                        </td>
    31353132                                                </tr>
    … …  
    31563153                                                        <td>
    31573154                                                                <textarea id="native-aeo-pack-identity-description" name="<?php echo esc_attr( $opt ); ?>[meta_tags][identity_description]" rows="2" class="large-text"><?php echo esc_textarea( (string) $meta['identity_description'] ); ?></textarea>
    3158                                                                 <p class="description" data-nap-identity-for="Person"<?php echo 'Person' === $native_aeo_pack_etype ? '' : ' hidden'; ?>><?php esc_html_e( 'For a person, the WebSite and llms.txt take the site tagline (Settings → General) as their description instead.', 'native-aeo-pack' ); ?></p>
     3155                                                                <p class="description" data-nap-identity-for="Person"<?php echo 'Person' === $native_aeo_pack_etype ? '' : ' hidden'; ?>><?php echo wp_kses( __( 'For a person, the <code>WebSite</code> and <code>llms.txt</code> take the site tagline (“Settings → General”) as their description instead.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    31593156                                                        </td>
    31603157                                                </tr>
    … …  
    31713168                                                        <td>
    31723169                                                                <textarea id="native-aeo-pack-identity-sameas" name="<?php echo esc_attr( $opt ); ?>[meta_tags][identity_same_as]" rows="5" class="large-text code" placeholder="https://twitter.com/yourprofile"><?php echo esc_textarea( (string) $meta['identity_same_as'] ); ?></textarea>
    3173                                                                 <p class="description"><?php esc_html_e( 'One URL per line. Add your social profiles, Wikipedia, Wikidata and any other official page. Helps AI systems and search engines connect your brand identity across the web.', 'native-aeo-pack' ); ?></p>
     3170                                                                <p class="description"><?php esc_html_e( 'One URL per line: your social profiles, Wikipedia, Wikidata and other official pages.', 'native-aeo-pack' ); ?></p>
    31743171                                                        </td>
    31753172                                                </tr>
    … …  
    31843181                                                                        <?php endforeach; ?>
    31853182                                                                </select>
    3186                                                                 <p class="description"><?php esc_html_e( 'Where to print the identity markup. Usually the home page; pick another published page if your home is a blog or shop. The WebSite markup, in Site name above, stays on the home page, which is where Google reads the site name from.', 'native-aeo-pack' ); ?></p>
     3183                                                                <p class="description"><?php echo wp_kses( __( 'Page that carries the identity data, usually the home page. <code>WebSite</code> always stays on the home page.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    31873184                                                        </td>
    31883185                                                </tr>
    … …  
    31963193                                <h2><?php esc_html_e( 'Schema per content type', 'native-aeo-pack' ); ?></h2>
    31973194                                <p class="native-aeo-pack-section-desc">
    3198                                         <?php esc_html_e( 'Choose what the singulars of each content type are, their schema type, and what they are about: a location of the business, a service, a product or an event. Each entry can change both from its own editor. What they are about is only written when it has everything Google requires for it.', 'native-aeo-pack' ); ?>
     3195                                        <?php esc_html_e( 'Choose each content type\'s schema type and what it is about (location, service, product, event). Each entry can change both. The "about" is written only when complete.', 'native-aeo-pack' ); ?>
    31993196                                </p>
    32003197                                <p class="native-aeo-pack-section-desc">
    3201                                         <?php esc_html_e( 'Pick None to stand aside on a content type: Visibility then writes no structured data at all on its singulars, not the main node, not the breadcrumb trail and not the FAQ block, so a specialised schema plugin owns the document with no second graph competing with it. The Site Identity above is a separate setting and keeps working. None also leaves out what the entries are about.', 'native-aeo-pack' ); ?>
     3198                                        <?php esc_html_e( '“None”: Visibility writes no structured data on that content type, so another schema plugin can take over. “Site Identity” keeps working.', 'native-aeo-pack' ); ?>
    32023199                                </p>
    32033200
    … …  
    32553252                                <h2><?php esc_html_e( 'Content freshness', 'native-aeo-pack' ); ?></h2>
    32563253                                <p class="native-aeo-pack-section-desc">
    3257                                         <?php esc_html_e( 'Visibility shows which entries have not been updated within the threshold and stops there. Nothing is graded and nothing is added to the front end, because deciding what deserves a rewrite is editorial work, not something a plugin can score.', 'native-aeo-pack' ); ?>
     3254                                        <?php esc_html_e( 'Shows which entries are older than the threshold. Nothing is scored or added to the front end.', 'native-aeo-pack' ); ?>
    32583255                                </p>
    32593256
    … …  
    32773274                                                                <?php esc_html_e( 'days', 'native-aeo-pack' ); ?>
    32783275                                                                <p class="description">
    3279                                                                         <?php esc_html_e( 'Adds a filter link to the content lists ("Not updated in 90 days") and a sortable Last updated column. Set it to 0 to leave the list tables untouched.', 'native-aeo-pack' ); ?>
     3276                                                                        <?php esc_html_e( 'Adds a “Not updated in 90 days” filter and a sortable “Last updated” column to content lists. 0 turns it off.', 'native-aeo-pack' ); ?>
    32803277                                                                </p>
    32813278                                                        </td>
    … …  
    33073304                                <h2><?php esc_html_e( 'llms.txt for AI agents', 'native-aeo-pack' ); ?></h2>
    33083305                                <p class="native-aeo-pack-section-desc">
    3309                                         <?php esc_html_e( 'Serves a Markdown index of your site at /llms.txt for LLMs and AI agents, built on the fly (no file on disk, no cron). Adoption is still low and Google ignores it, but several SEO plugins ship it and some agents read it.', 'native-aeo-pack' ); ?>
     3306                                        <?php echo wp_kses( __( 'Serves a Markdown index of your site at <code>/llms.txt</code> for AI agents, built on the fly. Google ignores it; some agents read it.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    33103307                                </p>
    33113308
    … …  
    33163313                                                <span class="dashicons dashicons-warning" aria-hidden="true"></span>
    33173314                                                <p>
    3318                                                         <strong><?php esc_html_e( 'A physical llms.txt from another plugin exists and Visibility could not replace it.', 'native-aeo-pack' ); ?></strong>
    3319                                                         <?php esc_html_e( 'Visibility serves llms.txt and normally replaces any static file another plugin leaves, so the dynamic /llms.txt always wins. It could not here, most likely because the site root is not writable. Make the root writable, or delete that file, so Visibility serves your llms.txt.', 'native-aeo-pack' ); ?>
     3315                                                        <strong><?php echo wp_kses( __( 'A physical <code>llms.txt</code> from another plugin exists and Visibility could not replace it.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3316                                                        <?php esc_html_e( 'Probably the site root is not writable. Make it writable or delete that file.', 'native-aeo-pack' ); ?>
    33203317                                                </p>
    33213318                                        </div>
    … …  
    33253322                                                <p>
    33263323                                                        <?php if ( Native_AEO_Pack_Frontend_LLMS::foreign_file_present() ) : ?>
    3327                                                                 <strong><?php esc_html_e( 'A physical llms.txt in the network root shadows this site\'s index.', 'native-aeo-pack' ); ?></strong>
    3328                                                                 <?php esc_html_e( 'It is one file shared by every site in the network, so the web server delivers it instead of this site\'s dynamic llms.txt, and Visibility cannot override a static file the server sends first. Remove that llms.txt from the network root so each site serves its own.', 'native-aeo-pack' ); ?>
     3324                                                                <strong><?php echo wp_kses( __( 'A physical <code>llms.txt</code> in the network root shadows this site\'s index.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3325                                                                <?php esc_html_e( 'The server delivers this file, shared by the whole network, before Visibility can. Remove it from the network root.', 'native-aeo-pack' ); ?>
    33293326                                                        <?php else : ?>
    3330                                                                 <strong><?php esc_html_e( 'A physical llms.txt in the network root was written by Visibility in a previous version.', 'native-aeo-pack' ); ?></strong>
    3331                                                                 <?php esc_html_e( 'On a network Visibility no longer maintains that shared file, and it applies to every site, not this one. Remove it from the network root so each site serves its own index on the fly.', 'native-aeo-pack' ); ?>
     3327                                                                <strong><?php echo wp_kses( __( 'A physical <code>llms.txt</code> in the network root was written by Visibility in a previous version.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3328                                                                <?php esc_html_e( 'Visibility no longer maintains this shared file, and it affects every site. Remove it from the network root.', 'native-aeo-pack' ); ?>
    33323329                                                        <?php endif; ?>
    33333330                                                </p>
    … …  
    33753372                                                                                'all_checked' => ! empty( $meta['llms_all_types'] ),
    33763373                                                                                'all_label'   => __( 'All content types', 'native-aeo-pack' ),
    3377                                                                                 'all_note'    => __( 'Including any registered later, which means a plugin you install tomorrow starts being listed on its own. Off by default for that reason: tick it only if that is what you want.', 'native-aeo-pack' ),
     3374                                                                                'all_note'    => __( 'Includes types registered later: a plugin you install tomorrow is listed on its own.', 'native-aeo-pack' ),
    33783375                                                                        )
    33793376                                                                );
    … …  
    33953392                                                                );
    33963393                                                                ?>
    3397                                                                 <p class="description"><?php esc_html_e( 'List the terms of these taxonomies as their own sections in llms.txt (name, archive URL and entry count), so the site structure is part of the index. Only what is ticked is listed; with nothing ticked, nothing is.', 'native-aeo-pack' ); ?></p>
     3394                                                                <p class="description"><?php echo wp_kses( __( 'Each ticked taxonomy gets its own section in <code>llms.txt</code>, with its terms, their links and their entry counts. Unticked ones are left out.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    33983395                                                        </td>
    33993396                                                </tr>
    … …  
    34143411                                                                        <?php esc_html_e( 'Keep content marked nosnippet out of llms.txt, llms-full.txt, the Markdown versions and the FAQPage.', 'native-aeo-pack' ); ?>
    34153412                                                                </label>
    3416                                                                 <p class="description"><?php esc_html_e( 'An entry or an archive set to nosnippet gets no text from Visibility: llms.txt lists it with its title and link but no summary, llms-full.txt lists its title and URL but no text, its Markdown version is not served or advertised, and no FAQPage is added to it. Content not set to nosnippet is not affected.', 'native-aeo-pack' ); ?></p>
     3413                                                                <p class="description"><?php echo wp_kses( __( 'Content set to <code>nosnippet</code> gets no text from Visibility: only its title and link in <code>llms.txt</code>, no Markdown version, no <code>FAQPage</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    34173414                                                        </td>
    34183415                                                </tr>
    … …  
    34233420                                                                <label>
    34243421                                                                        <input type="checkbox" name="<?php echo esc_attr( $opt ); ?>[meta_tags][llms_physical]" value="1" <?php checked( ! empty( $meta['llms_physical'] ) ); ?> <?php disabled( Native_AEO_Pack_Robots_Txt::root_toggle_locked() ); ?> />
    3425                                                                         <?php esc_html_e( 'Also write a physical llms.txt (and llms-full.txt) to the site root, so it is served even where the dynamic endpoint is shadowed. Regenerated when content changes.', 'native-aeo-pack' ); ?>
     3422                                                                        <?php esc_html_e( 'Also writes a physical llms.txt and llms-full.txt in the site root, for servers where the dynamic one does not load. Kept up to date.', 'native-aeo-pack' ); ?>
    34263423                                                                </label>
    34273424                                                                <?php if ( Native_AEO_Pack_Robots_Txt::root_toggle_locked() ) : ?>
    … …  
    34313428                                                                        <p class="description"><?php esc_html_e( 'Heads up: the site root is not writable, so the physical file cannot be written.', 'native-aeo-pack' ); ?></p>
    34323429                                                                <?php elseif ( Native_AEO_Pack_Frontend_LLMS::foreign_file_present() ) : ?>
    3433                                                                         <p class="description"><?php esc_html_e( 'Heads up: a non-Visibility llms.txt already exists in the site root (for example VigIA\'s). With this on, Visibility will overwrite it and manage the file from now on.', 'native-aeo-pack' ); ?></p>
     3430                                                                        <p class="description"><?php echo wp_kses( __( 'A <code>llms.txt</code> that is not Visibility\'s already exists here (for example VigIA\'s). If you tick this, Visibility replaces it.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    34343431                                                                <?php endif; ?>
    34353432                                                                <?php self::render_llms_charset_notice(); ?>
    34363433                                                                <?php elseif ( is_subdomain_install() ) : ?>
    3437                                                                         <p class="description"><?php esc_html_e( 'This is a multisite network, so each site serves its own llms.txt through the dynamic endpoint and it applies to this site only. A physical llms.txt is a single file shared by every site in the network, so Visibility does not write it here.', 'native-aeo-pack' ); ?></p>
     3434                                                                        <p class="description"><?php echo wp_kses( __( 'On a multisite network each site serves its own <code>llms.txt</code>. No physical file is written, because it would be shared by every site.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    34383435                                                                <?php elseif ( Native_AEO_Pack_Text::network_has_other_domains() ) : ?>
    3439                                                                         <p class="description"><?php esc_html_e( 'A site of this network is on a domain of its own, and the web server would hand a physical llms.txt to that domain too. So Visibility does not write it here: each site serves its own llms.txt through the dynamic endpoint.', 'native-aeo-pack' ); ?></p>
     3436                                                                        <p class="description"><?php esc_html_e( 'Some sites in this network have their own domain, and a physical file would be sent to all of them. No file is written: each site serves its own.', 'native-aeo-pack' ); ?></p>
    34403437                                                                <?php else : ?>
    3441                                                                         <p class="description"><?php esc_html_e( 'This is a sub-site of a subdirectory network. Like robots.txt, a single llms.txt lives at the domain root, owned by the main site, so Visibility does not write it from this sub-site. This site\'s index is still generated on the fly at its own address, below the domain root, though agents that look for llms.txt at the domain root read the main site\'s.', 'native-aeo-pack' ); ?></p>
     3438                                                                        <p class="description"><?php echo wp_kses( __( 'This sub-site serves its own <code>llms.txt</code> at its own address. No physical file is written, and agents that look at the domain root read the main site\'s.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    34423439                                                                <?php endif; ?>
    34433440                                                        </td>
    … …  
    34483445                                <h3 class="native-aeo-pack-subhead"><?php esc_html_e( 'Content filters', 'native-aeo-pack' ); ?></h3>
    34493446                                <p class="native-aeo-pack-section-desc">
    3450                                         <?php esc_html_e( 'Fine-tune which content the index lists. These apply to both llms.txt and llms-full.txt. The pickers below save instantly.', 'native-aeo-pack' ); ?>
     3447                                        <?php echo wp_kses( __( 'Fine-tune which content the index lists. These apply to both <code>llms.txt</code> and <code>llms-full.txt</code>. The pickers below save instantly.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    34513448                                </p>
    34523449
    34533450                                <div class="native-aeo-pack-subsection">
    34543451                                        <h3><?php esc_html_e( 'Include only these terms', 'native-aeo-pack' ); ?></h3>
    3455                                         <p class="description"><?php esc_html_e( 'When set, list only content in the chosen categories, tags or terms (for the post types that share each taxonomy). Leave empty to list everything.', 'native-aeo-pack' ); ?></p>
     3452                                        <p class="description"><?php esc_html_e( 'Lists only content in the chosen categories, tags or terms. Empty lists everything.', 'native-aeo-pack' ); ?></p>
    34563453                                        <?php
    34573454                                        self::render_search_subsection(
    … …  
    34673464                                <div class="native-aeo-pack-subsection">
    34683465                                        <h3><?php esc_html_e( 'Include whole taxonomies', 'native-aeo-pack' ); ?></h3>
    3469                                         <p class="description"><?php esc_html_e( 'Include only content that has a term in these whole taxonomies (for the post types that share each one), on top of the per-term picker above. Leave empty to use the term picker alone.', 'native-aeo-pack' ); ?></p>
     3466                                        <p class="description"><?php esc_html_e( 'Also lists content that has any term in these taxonomies. Adds to the terms chosen above.', 'native-aeo-pack' ); ?></p>
    34703467                                        <?php
    34713468                                        self::render_picker(
    … …  
    34953492                                <div class="native-aeo-pack-subsection">
    34963493                                        <h3><?php esc_html_e( 'Always include these pages', 'native-aeo-pack' ); ?></h3>
    3497                                         <p class="description"><?php esc_html_e( 'Force specific posts or pages into the index even if their type is not listed, they are past the per-type limit, or a filter would drop them.', 'native-aeo-pack' ); ?></p>
     3494                                        <p class="description"><?php esc_html_e( 'Always lists these posts or pages, even if a limit or filter would drop them.', 'native-aeo-pack' ); ?></p>
    34983495                                        <?php
    34993496                                        self::render_search_subsection(
    … …  
    35133510                                                        <td>
    35143511                                                                <textarea id="native-aeo-pack-llms-patterns" name="<?php echo esc_attr( $opt ); ?>[meta_tags][llms_exclude_patterns]" rows="4" class="large-text code" placeholder="/private/*&#10;*/tag/*"><?php echo esc_textarea( (string) $meta['llms_exclude_patterns'] ); ?></textarea>
    3515                                                                 <p class="description"><?php esc_html_e( 'One pattern per line, matched against each URL. Use * for any run of characters and ? for a single one (e.g. /private/* or */tag/*). Invalid-looking lines are kept as written.', 'native-aeo-pack' ); ?></p>
     3512                                                                <p class="description"><?php esc_html_e( 'One pattern per line. * matches any text and ? one character, for example /private/*. Matching URLs are left out.', 'native-aeo-pack' ); ?></p>
    35163513                                                        </td>
    35173514                                                </tr>
    … …  
    35233520                                <h2><?php esc_html_e( 'Markdown for AI agents', 'native-aeo-pack' ); ?></h2>
    35243521                                <p class="native-aeo-pack-section-desc">
    3525                                         <?php esc_html_e( 'Serves a clean Markdown version of each post or page at its URL with a .md suffix (e.g. /hello-world.md), with a YAML frontmatter block, so AI agents can read the content without the page chrome. Built on the fly, no file on disk, no cron.', 'native-aeo-pack' ); ?>
     3522                                        <?php echo wp_kses( __( 'Serves each post or page as Markdown at its URL plus <code>.md</code> (for example <code>/hello-world.md</code>), so AI agents can read it without the page design.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    35263523                                </p>
    35273524
    … …  
    35313528                                                <p>
    35323529                                                        <strong><?php esc_html_e( 'VigIA also serves Markdown.', 'native-aeo-pack' ); ?></strong>
    3533                                                         <?php esc_html_e( 'Both answer .md URLs; Visibility intercepts first and takes priority. To avoid overlap, update VigIA (it will yield) or turn off Markdown for Agents in VigIA.', 'native-aeo-pack' ); ?>
     3530                                                        <?php echo wp_kses( __( 'Both plugins answer <code>.md</code> URLs, and Visibility goes first. Update VigIA so it steps aside, or turn off its “Markdown for Agents”.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    35343531                                                </p>
    35353532                                        </div>
    … …  
    35593556                                                                                'all_checked' => ! empty( $meta['markdown_all_types'] ),
    35603557                                                                                'all_label'   => __( 'All content types', 'native-aeo-pack' ),
    3561                                                                                 'all_note'    => __( 'Including any registered later, which means a plugin you install tomorrow starts being served on its own. Off by default for that reason: tick it only if that is what you want.', 'native-aeo-pack' ),
     3558                                                                                'all_note'    => __( 'Also includes types registered later, for example by a plugin you install tomorrow. Off by default: tick it only if you want that.', 'native-aeo-pack' ),
    35623559                                                                        )
    35633560                                                                );
    … …  
    35793576                                                                        );
    35803577                                                                        ?>
    3581                                                                         <p class="description"><?php esc_html_e( 'Also serve category, tag or custom-taxonomy archives as Markdown (their .md URL and Accept negotiation). Only what is ticked is served; with nothing ticked, nothing is. Each archive lists its description, child terms and latest entries.', 'native-aeo-pack' ); ?></p>
     3578                                                                        <p class="description"><?php esc_html_e( 'Serves the ticked archives as Markdown, with their description, child terms and latest entries.', 'native-aeo-pack' ); ?></p>
    35823579                                                                </td>
    35833580                                                        </tr>
    … …  
    35983595                                <h2><?php esc_html_e( 'robots.txt', 'native-aeo-pack' ); ?></h2>
    35993596                                <p class="native-aeo-pack-section-desc">
    3600                                         <?php esc_html_e( 'Controls which crawlers may access your site, written into your site\'s robots.txt. Keep AI crawlers out or let them in. Honesty note: AI crawlers can ignore robots.txt, so this is a declarative signal, not enforcement; active blocking and measurement live in VigIA.', 'native-aeo-pack' ); ?>
     3597                                        <?php esc_html_e( 'Tells crawlers which parts of your site they may visit. They can ignore it, so it is a request, not a block; VigIA does the blocking.', 'native-aeo-pack' ); ?>
    36013598                                </p>
    36023599
    … …  
    36103607                                                <span class="dashicons dashicons-info" aria-hidden="true"></span>
    36113608                                                <p>
    3612                                                         <strong><?php esc_html_e( 'A physical robots.txt exists in the site root.', 'native-aeo-pack' ); ?></strong>
    3613                                                         <?php esc_html_e( 'The web server serves that static file before WordPress runs, so Visibility writes its directives into it automatically, in a BEGIN/END block, and leaves the rest (including blocks from other plugins) untouched. Its robots.txt always prevails. Turning on "Write to the physical robots.txt" below also seeds a physical file when none exists.', 'native-aeo-pack' ); ?>
     3609                                                        <strong><?php echo wp_kses( __( 'A physical <code>robots.txt</code> exists in the site root.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3610                                                        <?php esc_html_e( 'The server serves this file before WordPress, so Visibility writes its rules into it, in a BEGIN/END block, and leaves the rest alone.', 'native-aeo-pack' ); ?>
    36143611                                                </p>
    36153612                                        </div>
    … …  
    36193616                                                <p>
    36203617                                                        <?php if ( Native_AEO_Pack_Robots_Txt::foreign_file_present() ) : ?>
    3621                                                                 <strong><?php esc_html_e( 'A physical robots.txt in the network root shadows this site\'s rules.', 'native-aeo-pack' ); ?></strong>
    3622                                                                 <?php esc_html_e( 'It is one file shared by every site in the network, so the web server delivers it to crawlers instead of this site\'s virtual robots.txt, and Visibility cannot override a static file the server sends first. Remove that robots.txt from the network root so each site serves its own, or keep it and route the requests past it with the rewrite offered below this form.', 'native-aeo-pack' ); ?>
     3618                                                                <strong><?php echo wp_kses( __( 'A physical <code>robots.txt</code> in the network root shadows this site\'s rules.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3619                                                                <?php esc_html_e( 'Every site in the network shares this file, so crawlers get it instead of this site\'s rules. Delete it, or use the rewrite offered below.', 'native-aeo-pack' ); ?>
    36233620                                                        <?php else : ?>
    3624                                                                 <strong><?php esc_html_e( 'A physical robots.txt in the network root carries a Visibility block from a previous version.', 'native-aeo-pack' ); ?></strong>
    3625                                                                 <?php esc_html_e( 'On a network Visibility no longer maintains that shared file, and its rules apply to every site, not this one. Remove it from the network root so each site serves its own rules through the virtual endpoint.', 'native-aeo-pack' ); ?>
     3621                                                                <strong><?php echo wp_kses( __( 'A physical <code>robots.txt</code> in the network root carries a Visibility block from a previous version.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3622                                                                <?php esc_html_e( 'Visibility no longer maintains this shared file. Delete it from the network root so each site serves its own rules.', 'native-aeo-pack' ); ?>
    36263623                                                        <?php endif; ?>
    36273624                                                </p>
    … …  
    36583655                                                                                <legend><?php echo esc_html( $native_aeo_pack_ag_group['label'] ); ?></legend>
    36593656                                                                                <p class="description"><?php echo esc_html( $native_aeo_pack_ag_group['description'] ); ?></p>
    3660                                                                                 <?php foreach ( $native_aeo_pack_ag_group['agents'] as $native_aeo_pack_agent ) : ?>
    3661                                                                                         <label class="native-aeo-pack-robots-agent-label">
    3662                                                                                                 <input type="checkbox" class="native-aeo-pack-robots-agent" name="<?php echo esc_attr( $opt ); ?>[noindex][robots_ai_agents][]" value="<?php echo esc_attr( $native_aeo_pack_agent ); ?>" <?php checked( in_array( $native_aeo_pack_agent, $native_aeo_pack_sel_agents, true ) ); ?> <?php disabled( $native_aeo_pack_robots_rules_locked ); ?> />
    3663                                                                                                 <?php echo esc_html( $native_aeo_pack_agent ); ?>
    3664                                                                                         </label>
    3665                                                                                 <?php endforeach; ?>
     3657                                                                                <?php
     3658                                                                                // 3.4.1: with 55 crawlers the list goes folded, in two columns, under a
     3659                                                                                // count and two buttons for the whole group. The count is the server's
     3660                                                                                // until the first change; the template travels with it for the script.
     3661                                                                                $native_aeo_pack_ag_total = count( $native_aeo_pack_ag_group['agents'] );
     3662                                                                                $native_aeo_pack_ag_on    = count( array_intersect( $native_aeo_pack_ag_group['agents'], $native_aeo_pack_sel_agents ) );
     3663                                                                                /* translators: 1: crawlers ticked in this group, 2: crawlers in the group. */
     3664                                                                                $native_aeo_pack_ag_tpl = __( '%1$d of %2$d selected', 'native-aeo-pack' );
     3665                                                                                ?>
     3666                                                                                <p class="native-aeo-pack-robots-agent-tools">
     3667                                                                                        <span class="native-aeo-pack-robots-agent-count" aria-live="polite" data-template="<?php echo esc_attr( $native_aeo_pack_ag_tpl ); ?>"><?php echo esc_html( sprintf( $native_aeo_pack_ag_tpl, $native_aeo_pack_ag_on, $native_aeo_pack_ag_total ) ); ?></span>
     3668                                                                                        <?php if ( ! $native_aeo_pack_robots_rules_locked ) : ?>
     3669                                                                                                <button type="button" class="button-link hide-if-no-js native-aeo-pack-robots-agent-all"><?php esc_html_e( 'Select all', 'native-aeo-pack' ); ?></button>
     3670                                                                                                <button type="button" class="button-link hide-if-no-js native-aeo-pack-robots-agent-none"><?php esc_html_e( 'Deselect all', 'native-aeo-pack' ); ?></button>
     3671                                                                                        <?php endif; ?>
     3672                                                                                </p>
     3673                                                                                <details class="native-aeo-pack-robots-agent-fold">
     3674                                                                                        <summary>
     3675                                                                                                <?php
     3676                                                                                                /* translators: %d: number of crawlers in the group. */
     3677                                                                                                echo esc_html( sprintf( _n( 'Show the %d crawler', 'Show the %d crawlers', $native_aeo_pack_ag_total, 'native-aeo-pack' ), $native_aeo_pack_ag_total ) );
     3678                                                                                                ?>
     3679                                                                                        </summary>
     3680                                                                                        <div class="native-aeo-pack-robots-agent-list">
     3681                                                                                                <?php foreach ( $native_aeo_pack_ag_group['agents'] as $native_aeo_pack_agent ) : ?>
     3682                                                                                                        <label class="native-aeo-pack-robots-agent-label">
     3683                                                                                                                <input type="checkbox" class="native-aeo-pack-robots-agent" name="<?php echo esc_attr( $opt ); ?>[noindex][robots_ai_agents][]" value="<?php echo esc_attr( $native_aeo_pack_agent ); ?>" <?php checked( in_array( $native_aeo_pack_agent, $native_aeo_pack_sel_agents, true ) ); ?> <?php disabled( $native_aeo_pack_robots_rules_locked ); ?> />
     3684                                                                                                                <?php echo esc_html( $native_aeo_pack_agent ); ?>
     3685                                                                                                        </label>
     3686                                                                                                <?php endforeach; ?>
     3687                                                                                        </div>
     3688                                                                                </details>
    36663689                                                                        </fieldset>
    36673690                                                                <?php endforeach; ?>
    … …  
    36823705                                                                <pre class="native-aeo-pack-robots-preview" aria-live="polite"><?php echo esc_html( self::robots_preview_text() ); ?></pre>
    36833706                                                                <p class="description">
    3684                                                                         <?php esc_html_e( 'Live preview of what Visibility serves at /robots.txt, including the base rules and the Sitemap line WordPress adds automatically.', 'native-aeo-pack' ); ?>
     3707                                                                        <?php echo wp_kses( __( 'Live preview of what Visibility serves at <code>/robots.txt</code>, including the base rules and the Sitemap line WordPress adds automatically.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    36853708                                                                        <a href="<?php echo esc_url( home_url( '/robots.txt' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'View robots.txt', 'native-aeo-pack' ); ?></a>
    36863709                                                                </p>
    … …  
    36933716                                                                        <label>
    36943717                                                                                <input type="checkbox" name="<?php echo esc_attr( $opt ); ?>[noindex][robots_physical]" value="1" <?php checked( ! empty( $noindex['robots_physical'] ) ); ?> <?php disabled( Native_AEO_Pack_Robots_Txt::root_toggle_locked() ); ?> />
    3695                                                                                 <?php esc_html_e( 'Also write these rules into a physical robots.txt, in a BEGIN/END Visibility block that preserves anything else in the file. Use this when a physical robots.txt already shadows the virtual one.', 'native-aeo-pack' ); ?>
     3718                                                                                <?php esc_html_e( 'Also writes these rules into a physical robots.txt, in a BEGIN/END block that keeps the rest. Use it if a physical file hides the virtual one.', 'native-aeo-pack' ); ?>
    36963719                                                                        </label>
    36973720                                                                        <?php if ( Native_AEO_Pack_Robots_Txt::root_toggle_locked() && ! $native_aeo_pack_robots_rules_locked ) : ?>
    … …  
    36993722                                                                        <?php endif; ?>
    37003723                                                                        <?php if ( ! Native_AEO_Pack_Robots_Txt::root_writable() ) : ?>
    3701                                                                                 <p class="description"><?php esc_html_e( 'Heads up: the site root is not writable, so the physical file cannot be written. The virtual robots.txt is served instead.', 'native-aeo-pack' ); ?></p>
     3724                                                                                <p class="description"><?php echo wp_kses( __( 'Heads up: the site root is not writable, so the physical file cannot be written. The virtual <code>robots.txt</code> is served instead.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    37023725                                                                        <?php endif; ?>
    37033726                                                                <?php elseif ( is_subdomain_install() ) : ?>
    3704                                                                         <p class="description"><?php esc_html_e( 'This is a multisite network, so each site serves its own robots.txt through the virtual endpoint and the rules above apply to this site only. A physical robots.txt is a single file shared by every site in the network, so Visibility does not write it here.', 'native-aeo-pack' ); ?></p>
     3727                                                                        <p class="description"><?php echo wp_kses( __( 'On a multisite network each site serves its own <code>robots.txt</code>. No physical file is written, because it would be shared by every site.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    37053728                                                                <?php elseif ( Native_AEO_Pack_Text::network_has_other_domains() ) : ?>
    3706                                                                         <p class="description"><?php esc_html_e( 'A site of this network is on a domain of its own, and the web server would hand a physical robots.txt to that domain too. So Visibility does not write it here: each site serves its own robots.txt through the virtual endpoint.', 'native-aeo-pack' ); ?></p>
     3729                                                                        <p class="description"><?php esc_html_e( 'Some sites in this network have their own domain, and a physical file would be sent to all of them. No file is written: each site serves its own.', 'native-aeo-pack' ); ?></p>
    37073730                                                                <?php else : ?>
    3708                                                                         <p class="description"><?php esc_html_e( 'This is a sub-site of a subdirectory network. Crawlers read robots.txt only from the domain root, which the main site controls, so these rules are not served to crawlers on their own; add them to the main site\'s robots.txt to apply them.', 'native-aeo-pack' ); ?></p>
     3731                                                                        <p class="description"><?php echo wp_kses( __( 'Crawlers read only the main site\'s <code>robots.txt</code> at the domain root. To apply these rules, add them there.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    37093732                                                                <?php endif; ?>
    37103733                                                        </td>
    … …  
    37563779                        <h2><?php esc_html_e( 'Serve this site its own robots.txt', 'native-aeo-pack' ); ?></h2>
    37573780                        <p class="native-aeo-pack-section-desc">
    3758                                 <?php esc_html_e( 'A physical robots.txt in the network root is answering for every site in the network, and this site is not the one that owns that file. This is the way to get each site serving its own rules again without deleting it.', 'native-aeo-pack' ); ?>
     3781                                <?php echo wp_kses( __( 'A physical <code>robots.txt</code> in the network root answers for every site. This makes each site serve its own rules again, without deleting it.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    37593782                        </p>
    37603783
    37613784                        <?php if ( 'added' === $result ) : ?>
    3762                                 <div class="notice notice-success is-dismissible"><p><?php esc_html_e( 'The rewrite was added, and /robots.txt was checked afterwards: it answers with this site\'s own rules and no longer with the shared file.', 'native-aeo-pack' ); ?></p></div>
     3785                                <div class="notice notice-success is-dismissible"><p><?php echo wp_kses( __( 'The rewrite was added, and <code>/robots.txt</code> was checked afterwards: it answers with this site\'s own rules and no longer with the shared file.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    37633786                        <?php elseif ( 'added_unverified' === $result ) : ?>
    37643787                                <div class="notice notice-warning is-dismissible">
    37653788                                        <p>
    37663789                                                <strong><?php esc_html_e( 'The rewrite was added, but it could not be checked from here.', 'native-aeo-pack' ); ?></strong>
    3767                                                 <?php esc_html_e( 'This site did not answer a request made to itself, which is usually a firewall or a host that blocks loopback requests rather than a problem with the rewrite. Open /robots.txt in a new tab now and confirm what it returns. If anything on the site misbehaves, use Remove below, or delete the block from the .htaccess over FTP.', 'native-aeo-pack' ); ?>
     3790                                                <?php echo wp_kses( __( 'This site did not answer its own test request, usually a firewall or host blocking it. Open <code>/robots.txt</code> to check. If anything fails, use “Remove” or delete the block from <code>.htaccess</code> over FTP.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    37683791                                                <a href="<?php echo esc_url( home_url( '/robots.txt' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Open robots.txt', 'native-aeo-pack' ); ?></a>
    37693792                                        </p>
    … …  
    37733796                                        <p>
    37743797                                                <strong><?php esc_html_e( 'The rewrite was removed again: your server did not accept it.', 'native-aeo-pack' ); ?></strong>
    3775                                                 <?php esc_html_e( 'The site stopped answering as soon as the block was written, so it was taken straight back out and the .htaccess is as it was before. Nothing to undo. This normally means the server reads .htaccess but rejects the directive; ask your host before trying again.', 'native-aeo-pack' ); ?>
     3798                                                <?php echo wp_kses( __( 'The site stopped responding, so the block was removed and <code>.htaccess</code> is as before. The server rejects it: ask your host.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    37763799                                        </p>
    37773800                                </div>
    … …  
    37803803                                        <p>
    37813804                                                <strong><?php esc_html_e( 'The rewrite was removed again: it makes no difference on this server.', 'native-aeo-pack' ); ?></strong>
    3782                                                 <?php esc_html_e( 'With the block in place, /robots.txt still returned the physical file, so nothing reached WordPress. Either the .htaccess is ignored (AllowOverride is off), or something in front of it answers first: an nginx serving static files, a CDN, or a managed host handling robots.txt at the edge. The block was taken back out rather than left there looking active. Removing the physical robots.txt from the network root is the way out on this kind of server.', 'native-aeo-pack' ); ?>
     3805                                                <?php echo wp_kses( __( '<code>/robots.txt</code> still returned the physical file, so the block was removed. <code>.htaccess</code> is ignored or something in front answers first (nginx, CDN). Delete the physical file instead.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    37833806                                        </p>
    37843807                                </div>
    37853808                        <?php elseif ( 'removed' === $result ) : ?>
    3786                                 <div class="notice notice-success is-dismissible"><p><?php esc_html_e( 'The rewrite was removed and the rest of the .htaccess was left as it was.', 'native-aeo-pack' ); ?></p></div>
     3809                                <div class="notice notice-success is-dismissible"><p><?php echo wp_kses( __( 'The rewrite was removed and the rest of the <code>.htaccess</code> was left as it was.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    37873810                        <?php elseif ( 'add_failed' === $result ) : ?>
    3788                                 <div class="notice notice-error is-dismissible"><p><?php esc_html_e( 'The .htaccess could not be written. Check its permissions, or add the block below by hand.', 'native-aeo-pack' ); ?></p></div>
     3811                                <div class="notice notice-error is-dismissible"><p><?php echo wp_kses( __( 'The <code>.htaccess</code> could not be written. Check its permissions, or add the block below by hand.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    37893812                        <?php elseif ( 'remove_failed' === $result ) : ?>
    3790                                 <div class="notice notice-error is-dismissible"><p><?php esc_html_e( 'The .htaccess could not be written. Check its permissions, or delete the block by hand.', 'native-aeo-pack' ); ?></p></div>
     3813                                <div class="notice notice-error is-dismissible"><p><?php echo wp_kses( __( 'The <code>.htaccess</code> could not be written. Check its permissions, or delete the block by hand.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    37913814                        <?php endif; ?>
    37923815
    … …  
    37963819                                        <div class="native-aeo-pack-notice-body">
    37973820                                                <p>
    3798                                                         <strong><?php esc_html_e( 'Requests for /robots.txt are going to WordPress.', 'native-aeo-pack' ); ?></strong>
    3799                                                         <?php esc_html_e( 'A rewrite in the .htaccess sends them there even though the physical file exists, so this site answers with its own rules and every other site in the network answers with theirs. The file itself is untouched on disk; nothing reads it while the rewrite is in place.', 'native-aeo-pack' ); ?>
     3821                                                        <strong><?php echo wp_kses( __( 'Requests for <code>/robots.txt</code> are going to WordPress.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></strong>
     3822                                                        <?php echo wp_kses( __( 'A rewrite in <code>.htaccess</code> sends these requests to WordPress, so each site answers with its own rules. The physical file stays on disk, unused.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    38003823                                                        <a href="<?php echo esc_url( home_url( '/robots.txt' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'View robots.txt', 'native-aeo-pack' ); ?></a>
    38013824                                                </p>
    … …  
    38103833                                                        </form>
    38113834                                                <?php else : ?>
    3812                                                         <p class="description"><?php esc_html_e( 'Only a network administrator can remove it, because the .htaccess is one file shared by the whole network.', 'native-aeo-pack' ); ?></p>
     3835                                                        <p class="description"><?php echo wp_kses( __( 'Only a network administrator can remove it, because the <code>.htaccess</code> is one file shared by the whole network.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    38133836                                                <?php endif; ?>
    38143837                                        </div>
    … …  
    38203843                                                <p>
    38213844                                                        <strong><?php esc_html_e( 'This server is nginx, so there is nothing the plugin can do here.', 'native-aeo-pack' ); ?></strong>
    3822                                                         <?php esc_html_e( 'nginx reads no .htaccess and its configuration is out of reach from PHP. Whoever administers the server gets the same result by adding this to the site\'s server block:', 'native-aeo-pack' ); ?>
     3845                                                        <?php echo wp_kses( __( 'nginx does not read <code>.htaccess</code>. The server administrator can get the same result by adding this to the site\'s server block:', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    38233846                                                </p>
    38243847                                                <pre class="native-aeo-pack-robots-preview">location = /robots.txt { rewrite ^ /index.php?robots=1 last; }</pre>
    3825                                                 <p class="description"><?php esc_html_e( 'Deleting the physical robots.txt from the network root also works and needs no server change: WordPress then serves each site its own robots.txt on its own.', 'native-aeo-pack' ); ?></p>
     3848                                                <p class="description"><?php echo wp_kses( __( 'Deleting the physical <code>robots.txt</code> from the network root also works, with no server change.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    38263849                                        </div>
    38273850                                </div>
    … …  
    38313854                                        <div class="native-aeo-pack-notice-body">
    38323855                                                <p>
    3833                                                         <?php esc_html_e( 'One line in the .htaccess routes /robots.txt into WordPress even though the file exists, so each site in the network answers with its own rules. The physical file stays on disk exactly as it is; nothing reads it while the rewrite is in place. This is what gets written, in its own BEGIN/END block, above the WordPress block and leaving everything else in the file untouched:', 'native-aeo-pack' ); ?>
     3856                                                        <?php echo wp_kses( __( 'One line in <code>.htaccess</code> sends <code>/robots.txt</code> to WordPress, so each site answers with its own rules. This is what gets written:', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    38343857                                                </p>
    38353858                                                <pre class="native-aeo-pack-robots-preview"><?php echo esc_html( Native_AEO_Pack_Robots_Txt::htaccess_block_text() ); ?></pre>
    … …  
    38463869                                                </div>
    38473870                                                <p class="description">
    3848                                                         <?php esc_html_e( 'Read the left column before you press the button. Anything in it that is not in the right one stops being served: if another plugin wrote that file and only writes it physically, its directives go with it. The physical file is not deleted, it just stops being read while the rewrite is in place.', 'native-aeo-pack' ); ?>
     3871                                                        <?php esc_html_e( 'Compare both columns first: rules only on the left stop being served, including rules from other plugins. The file is not deleted.', 'native-aeo-pack' ); ?>
    38493872                                                </p>
    38503873                                                <p class="description">
    3851                                                         <?php esc_html_e( 'To undo it, use the Remove button that takes this one\'s place afterwards, or delete those lines from the .htaccess by hand. The .htaccess belongs to the whole network, so this changes /robots.txt for every site in it. After writing, Visibility requests /robots.txt to confirm the change took effect, and removes the block again if it did not.', 'native-aeo-pack' ); ?>
     3874                                                        <?php echo wp_kses( __( 'You can undo it here later. It applies to the whole network.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    38523875                                                </p>
    38533876                                                <?php if ( ! $can ) : ?>
    3854                                                         <p class="description"><?php esc_html_e( 'Only a network administrator can add it, because the .htaccess is one file shared by the whole network.', 'native-aeo-pack' ); ?></p>
     3877                                                        <p class="description"><?php echo wp_kses( __( 'Only a network administrator can add it, because the <code>.htaccess</code> is one file shared by the whole network.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    38553878                                                <?php elseif ( ! $writable ) : ?>
    3856                                                         <p class="description"><?php esc_html_e( 'The .htaccess is not writable from WordPress, so there is no button to offer. Add the block above by hand, at the top of the file, and this panel will report it as active.', 'native-aeo-pack' ); ?></p>
     3879                                                        <p class="description"><?php echo wp_kses( __( '<code>.htaccess</code> is not writable from WordPress. Add the block above by hand, at the top of the file.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    38573880                                                <?php else : ?>
    38583881                                                        <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" class="native-aeo-pack-htaccess-form">
    … …  
    38603883                                                                <input type="hidden" name="action" value="<?php echo esc_attr( Native_AEO_Pack_Robots_Txt::HT_ACTION ); ?>">
    38613884                                                                <input type="hidden" name="native_aeo_pack_htaccess_mode" value="add">
    3862                                                                 <button type="submit" class="button button-primary" data-confirm="<?php echo esc_attr__( 'Add the rewrite to the .htaccess of this network? Every site will then serve its own robots.txt, and you can undo it from this same screen.', 'native-aeo-pack' ); ?>">
     3885                                                                <button type="submit" class="button button-primary" data-confirm="<?php echo esc_attr__( 'Add the rewrite to the .htaccess of this network? Every site will serve its own robots.txt. You can undo it here.', 'native-aeo-pack' ); ?>">
    38633886                                                                        <?php esc_html_e( 'Add the rewrite to .htaccess', 'native-aeo-pack' ); ?>
    38643887                                                                </button>
    … …  
    39253948                                                                        <?php esc_html_e( 'Redirect attachment pages (301) to their parent post.', 'native-aeo-pack' ); ?>
    39263949                                                                </label>
    3927                                                                 <p class="description"><?php esc_html_e( 'Only the attachment page redirects: the media file keeps working and attachments with no parent are left alone. Mostly useful on sites created before WordPress 6.4, which is when new installs stopped linking to these pages.', 'native-aeo-pack' ); ?></p>
     3950                                                                <p class="description"><?php esc_html_e( 'Redirects only the attachment page; the media file keeps working. Mostly useful on sites created before WordPress 6.4.', 'native-aeo-pack' ); ?></p>
    39283951                                                        </td>
    39293952                                                </tr>
    … …  
    39393962                                <h2><?php esc_html_e( 'Content types', 'native-aeo-pack' ); ?></h2>
    39403963                                <p class="native-aeo-pack-section-desc">
    3941                                         <?php esc_html_e( 'Apply noindex, nofollow, noimageindex or nosnippet to every published item of the selected content types.', 'native-aeo-pack' ); ?>
     3964                                        <?php echo wp_kses( __( 'Apply <code>noindex</code>, <code>nofollow</code>, <code>noimageindex</code> or <code>nosnippet</code> to every published item of the selected content types.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    39423965                                </p>
    3943                                 <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php esc_html_e( 'Each one costs you something. noindex takes the content out of search altogether. nofollow stops passing link signals to whatever it links to. noimageindex keeps its images out of image search. And nosnippet removes the descriptive text from the result, in AI Overviews and AI Mode as well, where a page needs a snippet to be shown as a supporting link. The entry stays indexed, which makes it the easiest of the four to leave on without noticing.', 'native-aeo-pack' ); ?></p></div>
     3966                                <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php echo wp_kses( __( '<code>noindex</code> removes content from search. <code>nofollow</code> passes no link signals. <code>noimageindex</code> hides its images. <code>nosnippet</code> removes the result text, in AI answers too, but the page stays indexed, so it is easy to leave on by mistake.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    39443967
    39453968                                <?php self::render_directive_table_post_types( $post_types, $noindex, $opt ); ?>
    … …  
    39483971                                        <h3><?php esc_html_e( 'Exclude posts from bulk noindex', 'native-aeo-pack' ); ?></h3>
    39493972                                        <p class="native-aeo-pack-section-desc">
    3950                                                 <?php esc_html_e( 'If you noindex an entire content type above, you can keep specific posts indexed here. Search and click to add; changes are saved instantly.', 'native-aeo-pack' ); ?>
     3973                                                <?php echo wp_kses( __( 'If you <code>noindex</code> an entire content type above, you can keep specific posts indexed here. Search and click to add; changes are saved instantly.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    39513974                                        </p>
    39523975                                        <?php
    … …  
    39643987                                        <h3><?php esc_html_e( 'Set individual posts as noindex', 'native-aeo-pack' ); ?></h3>
    39653988                                        <p class="native-aeo-pack-section-desc">
    3966                                                 <?php esc_html_e( 'Mark specific posts as noindex without affecting their content type as a whole. Useful for cookie policies, cart, checkout, thank-you pages.', 'native-aeo-pack' ); ?>
     3989                                                <?php echo wp_kses( __( 'Mark specific posts as <code>noindex</code> without affecting their content type as a whole. Useful for cookie policies, cart, checkout, thank-you pages.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    39673990                                        </p>
    39683991                                        <?php
    … …  
    39804003                                        <h3><?php esc_html_e( 'Exclude posts from bulk nofollow', 'native-aeo-pack' ); ?></h3>
    39814004                                        <p class="native-aeo-pack-section-desc">
    3982                                                 <?php esc_html_e( 'If you nofollow an entire content type above, you can keep specific posts followed here.', 'native-aeo-pack' ); ?>
     4005                                                <?php echo wp_kses( __( 'If you <code>nofollow</code> an entire content type above, you can keep specific posts followed here.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    39834006                                        </p>
    39844007                                        <?php
    … …  
    39964019                                        <h3><?php esc_html_e( 'Set individual posts as nofollow', 'native-aeo-pack' ); ?></h3>
    39974020                                        <p class="native-aeo-pack-section-desc">
    3998                                                 <?php esc_html_e( 'Mark specific posts as nofollow without affecting their content type. Useful for pages with low-trust outbound links.', 'native-aeo-pack' ); ?>
     4021                                                <?php echo wp_kses( __( 'Mark specific posts as <code>nofollow</code> without affecting their content type. Useful for pages with low-trust outbound links.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    39994022                                        </p>
    40004023                                        <?php
    … …  
    40174040                                <h2><?php esc_html_e( 'Taxonomy archives', 'native-aeo-pack' ); ?></h2>
    40184041                                <p class="native-aeo-pack-section-desc">
    4019                                         <?php esc_html_e( 'Apply noindex, nofollow, noimageindex or nosnippet to every term archive of the selected taxonomies (categories, tags, custom taxonomies).', 'native-aeo-pack' ); ?>
     4042                                        <?php echo wp_kses( __( 'Apply <code>noindex</code>, <code>nofollow</code>, <code>noimageindex</code> or <code>nosnippet</code> to every term archive of the selected taxonomies (categories, tags, custom taxonomies).', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    40204043                                </p>
    4021                                 <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php esc_html_e( 'Each one costs you something. noindex takes the content out of search altogether. nofollow stops passing link signals to whatever it links to. noimageindex keeps its images out of image search. And nosnippet removes the descriptive text from the result, in AI Overviews and AI Mode as well, where a page needs a snippet to be shown as a supporting link. The entry stays indexed, which makes it the easiest of the four to leave on without noticing.', 'native-aeo-pack' ); ?></p></div>
     4044                                <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php echo wp_kses( __( '<code>noindex</code> removes content from search. <code>nofollow</code> passes no link signals. <code>noimageindex</code> hides its images. <code>nosnippet</code> removes the result text, in AI answers too, but the page stays indexed, so it is easy to leave on by mistake.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    40224045
    40234046                                <?php self::render_directive_table_taxonomies( $taxonomies, $noindex, $opt ); ?>
    … …  
    40284051                                        <h3><?php esc_html_e( 'Exclude terms from bulk noindex', 'native-aeo-pack' ); ?></h3>
    40294052                                        <p class="native-aeo-pack-section-desc">
    4030                                                 <?php esc_html_e( 'Keep specific term archives indexed when the whole taxonomy is set to noindex.', 'native-aeo-pack' ); ?>
     4053                                                <?php echo wp_kses( __( 'Keep specific term archives indexed when the whole taxonomy is set to <code>noindex</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    40314054                                        </p>
    40324055                                        <?php
    … …  
    40444067                                        <h3><?php esc_html_e( 'Set individual terms as noindex', 'native-aeo-pack' ); ?></h3>
    40454068                                        <p class="native-aeo-pack-section-desc">
    4046                                                 <?php esc_html_e( 'Mark specific term archives as noindex without affecting the whole taxonomy. Useful for low-value tags or empty categories.', 'native-aeo-pack' ); ?>
     4069                                                <?php echo wp_kses( __( 'Mark specific term archives as <code>noindex</code> without affecting the whole taxonomy. Useful for low-value tags or empty categories.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    40474070                                        </p>
    40484071                                        <?php
    … …  
    40604083                                        <h3><?php esc_html_e( 'Exclude terms from bulk nofollow', 'native-aeo-pack' ); ?></h3>
    40614084                                        <p class="native-aeo-pack-section-desc">
    4062                                                 <?php esc_html_e( 'Keep specific term archives followed when the whole taxonomy is set to nofollow.', 'native-aeo-pack' ); ?>
     4085                                                <?php echo wp_kses( __( 'Keep specific term archives followed when the whole taxonomy is set to <code>nofollow</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    40634086                                        </p>
    40644087                                        <?php
    … …  
    40764099                                        <h3><?php esc_html_e( 'Set individual terms as nofollow', 'native-aeo-pack' ); ?></h3>
    40774100                                        <p class="native-aeo-pack-section-desc">
    4078                                                 <?php esc_html_e( 'Mark specific term archives as nofollow without affecting the whole taxonomy.', 'native-aeo-pack' ); ?>
     4101                                                <?php echo wp_kses( __( 'Mark specific term archives as <code>nofollow</code> without affecting the whole taxonomy.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    40794102                                        </p>
    40804103                                        <?php
    … …  
    40994122                                        <?php esc_html_e( 'Robots directives for special archive contexts not covered by content types or taxonomies.', 'native-aeo-pack' ); ?>
    41004123                                </p>
    4101                                 <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php esc_html_e( 'Each one costs you something. noindex takes the content out of search altogether. nofollow stops passing link signals to whatever it links to. noimageindex keeps its images out of image search. And nosnippet removes the descriptive text from the result, in AI Overviews and AI Mode as well, where a page needs a snippet to be shown as a supporting link. The entry stays indexed, which makes it the easiest of the four to leave on without noticing.', 'native-aeo-pack' ); ?></p></div>
     4124                                <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php echo wp_kses( __( '<code>noindex</code> removes content from search. <code>nofollow</code> passes no link signals. <code>noimageindex</code> hides its images. <code>nosnippet</code> removes the result text, in AI answers too, but the page stays indexed, so it is easy to leave on by mistake.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p></div>
    41024125
    41034126                                <table class="form-table" role="presentation">
    … …  
    41464169                                <h2><?php esc_html_e( 'RSS feeds', 'native-aeo-pack' ); ?></h2>
    41474170                                <p class="native-aeo-pack-section-desc">
    4148                                         <?php esc_html_e( 'Feeds are XML and cannot use the meta robots tag. Visibility sends the X-Robots-Tag HTTP header instead.', 'native-aeo-pack' ); ?>
     4171                                        <?php echo wp_kses( __( 'Feeds are XML and cannot use the meta robots tag. Visibility sends the <code>X-Robots-Tag</code> HTTP header instead.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    41494172                                </p>
    41504173
    … …  
    45004523                                <p>
    45014524                                        <strong><?php esc_html_e( 'Premmerce Permalink Manager is active.', 'native-aeo-pack' ); ?></strong>
    4502                                         <?php esc_html_e( 'Visibility builds the same WooCommerce URLs: product structure, taxonomy bases, 301 redirects and canonicals. Visibility takes precedence, because its permalink filters run last, so the URLs your store serves are Visibility\'s.', 'native-aeo-pack' ); ?>
     4525                                        <?php esc_html_e( 'Visibility\'s permalink filters run last, so your store serves Visibility\'s URLs.', 'native-aeo-pack' ); ?>
    45034526                                </p>
    45044527                                <p>
    4505                                         <?php esc_html_e( 'You can deactivate Premmerce, premium included: its paid automatic redirects are part of this. Check the product URL structure in Indexing matches the one you had, because that is what your indexed URLs look like today.', 'native-aeo-pack' ); ?>
     4528                                        <?php esc_html_e( 'Once the product URL structure in “Indexing” matches your old one, deactivate Premmerce, premium included.', 'native-aeo-pack' ); ?>
    45064529                                        <?php if ( ! $has_data ) : ?>
    4507                                                 <?php esc_html_e( 'Its settings already match yours, so there is nothing to import and your URLs will not change.', 'native-aeo-pack' ); ?>
     4530                                                <?php esc_html_e( 'Its settings already match yours, so there is nothing to import.', 'native-aeo-pack' ); ?>
    45084531                                        <?php endif; ?>
    45094532                                </p>
    … …  
    45434566                        ''          => array(
    45444567                                'label' => __( 'Leave it to WooCommerce', 'native-aeo-pack' ),
    4545                                 'hint'  => __( 'Whatever you have in Settings → Permalinks → Product permalinks.', 'native-aeo-pack' ),
     4568                                'hint'  => __( 'Whatever you have in “Settings → Permalinks → Product permalinks”.', 'native-aeo-pack' ),
    45464569                        ),
    45474570                        'slug'      => array(
    … …  
    45804603                                </fieldset>
    45814604                                <p class="description">
    4582                                         <?php esc_html_e( 'WooCommerce does not offer these three: it restores the /product/ base when you empty it, and forces a base in front of a category structure.', 'native-aeo-pack' ); ?>
     4605                                        <?php esc_html_e( 'Three options that the WooCommerce permalink screen does not allow.', 'native-aeo-pack' ); ?>
    45834606                                </p>
    45844607                                <p class="description">
    4585                                         <?php esc_html_e( 'Old product URLs are 301-redirected, and so is any other combination that still resolves. If a page or a term already uses that path, it keeps it and the product stays on its WooCommerce URL. Adds no rewrite rules.', 'native-aeo-pack' ); ?>
     4608                                        <?php esc_html_e( 'Old product URLs are 301-redirected. If a page or term already uses that path, it keeps it and the product stays on its WooCommerce URL.', 'native-aeo-pack' ); ?>
    45864609                                </p>
    45874610                        </td>
    … …  
    46534676                                <p><strong><?php esc_html_e( 'WooCommerce store', 'native-aeo-pack' ); ?></strong></p>
    46544677                                <p>
    4655                                         <?php esc_html_e( 'Cart, checkout, my-account and the WooCommerce endpoints already carry noindex from WooCommerce itself. Nothing to set here for those.', 'native-aeo-pack' ); ?>
     4678                                        <?php echo wp_kses( __( 'Cart, checkout and my-account are already <code>noindex</code> from WooCommerce.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    46564679                                </p>
    46574680                                <?php if ( ! empty( $defaults ) ) : ?>
    46584681                                        <p>
    4659                                                 <?php esc_html_e( 'Product tags and the attribute archives with archives enabled come ticked as noindex above, because they usually repeat the shop listing. Product categories and brands do not: those are your navigation.', 'native-aeo-pack' ); ?>
    4660                                         </p>
    4661                                         <p>
    4662                                                 <?php esc_html_e( 'Untick any archive that is a landing page on your store (a plus-sizes attribute, say) and save. Indexed or not, they all take meta title, description and robots per term from the term editor.', 'native-aeo-pack' ); ?>
     4682                                                <?php echo wp_kses( __( 'Product tags and attribute archives start as <code>noindex</code>. Untick any that is a landing page.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    46634683                                        </p>
    46644684                                        <?php if ( ! empty( $indexable ) ) : ?>
    … …  
    47004720                                <p>
    47014721                                        <?php
    4702                                         printf(
    4703                                                 /* translators: %s: Content-Type header the web server sent for llms.txt, for example "text/plain". */
    4704                                                 esc_html__( 'Your web server sends this llms.txt without saying it is UTF-8 (Content-Type: %s). Browsers and some AI tools then show accented letters as odd symbols, although the file itself is correct. Turn this option off and Visibility sends llms.txt as UTF-8 itself, or ask your host to add a UTF-8 charset to .txt files.', 'native-aeo-pack' ),
    4705                                                 '<code>' . esc_html( $type ) . '</code>'
     4722                                        echo wp_kses(
     4723                                                sprintf(
     4724                                                        /* translators: %s: Content-Type header the web server sent for llms.txt, for example "text/plain". */
     4725                                                        __( 'Your server sends <code>llms.txt</code> without UTF-8 (<code>Content-Type</code>: %s), so accents may look wrong. Turn this option off to make Visibility send it as UTF-8.', 'native-aeo-pack' ),
     4726                                                        '<code>' . esc_html( $type ) . '</code>'
     4727                                                ),
     4728                                                array( 'code' => array() )
    47064729                                        );
    47074730                                        ?>
    … …  
    47144737                <div class="native-aeo-pack-notice native-aeo-pack-notice--info">
    47154738                        <span class="dashicons dashicons-info" aria-hidden="true"></span>
    4716                         <p><?php esc_html_e( 'Visibility could not check how your web server sends this llms.txt: the request to it got no answer. If accented letters look wrong when you open llms.txt, turn this option off and Visibility sends it as UTF-8 itself.', 'native-aeo-pack' ); ?></p>
     4739                        <p><?php echo wp_kses( __( 'Visibility could not check how your server sends <code>llms.txt</code>. If accents look wrong, turn this option off to send it as UTF-8.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    47174740                </div>
    47184741                <?php
    … …  
    47944817                                        <p>
    47954818                                                <strong><?php esc_html_e( 'WordPress is not publishing a sitemap on this site.', 'native-aeo-pack' ); ?></strong>
    4796                                                 <?php esc_html_e( 'Search engine visibility is set to discouraged, and WordPress switches the sitemap off with it, so /wp-sitemap.xml answers 404 and nothing on this page reaches a crawler.', 'native-aeo-pack' ); ?>
     4819                                                <?php echo wp_kses( __( 'Search engine visibility is discouraged, so WordPress turns the sitemap off: <code>/wp-sitemap.xml</code> answers 404.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    47974820                                                <a href="<?php echo esc_url( admin_url( 'options-reading.php' ) ); ?>"><?php esc_html_e( 'Change it in Settings > Reading', 'native-aeo-pack' ); ?></a>
    47984821                                        </p>
    … …  
    48004823                                        <p>
    48014824                                                <strong><?php esc_html_e( 'Something on this site is switching the WordPress sitemap off.', 'native-aeo-pack' ); ?></strong>
    4802                                                 <?php esc_html_e( 'Code is filtering wp_sitemaps_enabled to false, so /wp-sitemap.xml answers 404 and nothing on this page reaches a crawler. It is usually another SEO plugin serving sitemaps of its own, or a snippet left behind in a theme or a snippets plugin by a migration tutorial.', 'native-aeo-pack' ); ?>
     4825                                                <?php echo wp_kses( __( 'The <code>wp_sitemaps_enabled</code> filter turns it off, so <code>/wp-sitemap.xml</code> answers 404. Often an SEO plugin or a leftover snippet.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    48034826                                        </p>
    48044827                                        <?php if ( ! empty( $sources ) ) : ?>
    48054828                                                <p>
    4806                                                         <?php esc_html_e( 'The filter is registered from:', 'native-aeo-pack' ); ?>
     4829                                                        <?php esc_html_e( 'Registered from:', 'native-aeo-pack' ); ?>
    48074830                                                        <?php foreach ( $sources as $native_aeo_pack_src ) : ?>
    48084831                                                                <code><?php echo esc_html( $native_aeo_pack_src ); ?></code>
    … …  
    48124835                                <?php endif; ?>
    48134836                                <p class="description">
    4814                                         <?php esc_html_e( 'While it stays off, Visibility leaves the old sitemap addresses alone instead of redirecting them to one that answers 404, and it does not claim a 200 for a sitemap it is not serving.', 'native-aeo-pack' ); ?>
     4837                                        <?php esc_html_e( 'Nothing on this tab applies while the sitemap is off.', 'native-aeo-pack' ); ?>
    48154838                                </p>
    48164839                        </div>
    … …  
    48754898                                        <strong><?php esc_html_e( 'Another sitemap plugin is active:', 'native-aeo-pack' ); ?></strong>
    48764899                                        <?php echo esc_html( implode( ', ', $sitemap_plugins ) ); ?>.
    4877                                         <?php esc_html_e( 'Visibility customizes the native WordPress sitemap at /wp-sitemap.xml. To avoid two competing sitemaps, deactivate the other plugin or turn off the Sitemap module here.', 'native-aeo-pack' ); ?>
     4900                                        <?php echo wp_kses( __( 'Visibility customizes the native WordPress sitemap at <code>/wp-sitemap.xml</code>. To avoid two competing sitemaps, deactivate the other plugin or turn off the “Sitemap” module here.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    48784901                                </p>
    48794902                        </div>
    … …  
    49885011                                <h2><?php esc_html_e( 'Additional URLs', 'native-aeo-pack' ); ?></h2>
    49895012                                <p class="native-aeo-pack-section-desc">
    4990                                         <?php esc_html_e( 'Pages that are not WordPress content but belong in the sitemap: a static landing page, a microsite on a subdomain, pages of a headless front end. They are listed in their own sub-sitemap under the sitemap index.', 'native-aeo-pack' ); ?>
     5013                                        <?php esc_html_e( 'Pages outside WordPress that belong in the sitemap, like a static landing or a subdomain microsite. They get their own sub-sitemap.', 'native-aeo-pack' ); ?>
    49915014                                </p>
    49925015
    … …  
    49995022                                                        <td>
    50005023                                                                <textarea id="native-aeo-pack-extra-urls" name="<?php echo esc_attr( $opt ); ?>[sitemap][extra_urls]" rows="5" class="large-text code" placeholder="https://example.com/landing/"><?php echo esc_textarea( (string) $sitemap['extra_urls'] ); ?></textarea>
    5001                                                                 <p class="description"><?php esc_html_e( 'One absolute URL per line, with https:// or http://. Anything else is dropped on save. No lastmod is written for them: nothing here knows when a page served outside WordPress last changed.', 'native-aeo-pack' ); ?></p>
    5002                                                                 <p class="description"><?php esc_html_e( 'A URL on another host, a subdomain included, is listed as typed, but Google only accepts it when that host points to this sitemap from its robots.txt or when both hosts are verified in the same Search Console account.', 'native-aeo-pack' ); ?></p>
     5024                                                                <p class="description"><?php echo wp_kses( __( 'One absolute URL per line, with https:// or http://. Anything else is dropped on save. No <code>lastmod</code> is written for them.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
     5025                                                                <p class="description"><?php echo wp_kses( __( 'A URL on another host is listed as typed, but Google only accepts it if that host points to this sitemap in its <code>robots.txt</code> or both are in the same Search Console account.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    50035026                                                        </td>
    50045027                                                </tr>
    … …  
    50105033                                <h2><?php esc_html_e( 'Behavior', 'native-aeo-pack' ); ?></h2>
    50115034                                <p class="native-aeo-pack-section-desc">
    5012                                         <?php esc_html_e( 'How the sitemap is paginated, what dates it reports, and how it talks to the Indexing module.', 'native-aeo-pack' ); ?>
     5035                                        <?php esc_html_e( 'How the sitemap is paginated, what dates it reports, and how it talks to the “Indexing” module.', 'native-aeo-pack' ); ?>
    50135036                                </p>
    50145037
    … …  
    50385061                                                                <label>
    50395062                                                                        <input type="checkbox" name="<?php echo esc_attr( $opt ); ?>[sitemap][exclude_seo_noindex]" value="1" <?php checked( ! empty( $sitemap['exclude_seo_noindex'] ) ); ?> />
    5040                                                                         <?php esc_html_e( 'Automatically exclude any content flagged as noindex by the Indexing module.', 'native-aeo-pack' ); ?>
     5063                                                                        <?php esc_html_e( 'Automatically exclude any content flagged as noindex by the “Indexing” module.', 'native-aeo-pack' ); ?>
    50415064                                                                </label>
    50425065                                                        </td>
    … …  
    50475070                                                                <label>
    50485071                                                                        <input type="checkbox" name="<?php echo esc_attr( $opt ); ?>[sitemap][redirect_legacy_sitemaps]" value="1" <?php checked( ! empty( $sitemap['redirect_legacy_sitemaps'] ) ); ?> />
    5049                                                                         <?php esc_html_e( 'Redirect old sitemap URLs (sitemap.xml, post-sitemap.xml, sitemap-pt-post.xml, author-sitemap.xml, etc.) to /wp-sitemap.xml with a 301. Useful after migrating from Yoast, Rank Math, AIOSEO or Google XML Sitemaps so Googlebot keeps following the entry points it already knows.', 'native-aeo-pack' ); ?>
     5072                                                                        <?php esc_html_e( 'Redirects old sitemap URLs (sitemap.xml, post-sitemap.xml...) to /wp-sitemap.xml with a 301, so Google keeps finding your sitemap after a migration.', 'native-aeo-pack' ); ?>
    50505073                                                                </label>
    50515074                                                        </td>
    … …  
    50635086                                                                        // need it keep the translation they already have.
    50645087                                                                        if ( Native_AEO_Pack_Sitemap::core_sends_sitemap_status() ) {
    5065                                                                                 esc_html_e( 'Your version of WordPress already decides this for itself, so leaving the box ticked changes nothing here. It is what keeps the sitemap working on the older versions that served the right XML under a 404 status on a site with no published entries of the Posts type, which makes Google discard it. Requests for a sitemap that really has nothing in it keep answering 404, and so does every other address on the site.', 'native-aeo-pack' );
     5088                                                                                esc_html_e( 'Your WordPress version already handles this, so leaving it ticked changes nothing.', 'native-aeo-pack' );
    50665089                                                                        } else {
    5067                                                                                 esc_html_e( 'On a site with no published entries of the Posts type, WordPress serves the right sitemap XML under a 404 status. Google discards any sitemap that does not answer 200, so the site is left without a working sitemap while the browser shows a perfectly good one. It hits shops, campuses, service sites and portfolios, which are the ones with no blog to notice it. Requests for a sitemap that really has nothing in it keep answering 404, and so does every other address on the site.', 'native-aeo-pack' );
     5090                                                                                esc_html_e( 'Makes the sitemap answer 200 on a site with no published posts, where older WordPress answers 404 and Google discards it. Really empty sitemaps still answer 404.', 'native-aeo-pack' );
    50685091                                                                        }
    50695092                                                                        ?>
    … …  
    51085131                                <?php if ( $no_address ) : ?>
    51095132                                        <strong><?php esc_html_e( 'A local business needs an address.', 'native-aeo-pack' ); ?></strong>
    5110                                         <?php esc_html_e( 'Google lists it as required for the local business markup, and its Rich Results Test does not flag a missing one. Add at least the street and the city below.', 'native-aeo-pack' ); ?>
     5133                                        <?php esc_html_e( 'Add at least street and city: Google requires an address.', 'native-aeo-pack' ); ?>
    51115134                                <?php endif; ?>
    51125135                                <?php if ( $no_image ) : ?>
    5113                                         <?php esc_html_e( 'The business has no image: add a logo below, or set a site icon, so the markup carries one.', 'native-aeo-pack' ); ?>
     5136                                        <?php esc_html_e( 'No image yet: add a logo below or set a site icon.', 'native-aeo-pack' ); ?>
    51145137                                <?php endif; ?>
    51155138                        </p>
    … …  
    51525175                <div class="native-aeo-pack-subsection">
    51535176                        <h3><?php esc_html_e( 'Contact', 'native-aeo-pack' ); ?></h3>
    5154                         <p class="native-aeo-pack-section-desc"><?php esc_html_e( 'Optional. Google\'s Rich Results Test only lists an organization when it carries a contact detail such as an email or a phone; without one the markup is still valid and still read.', 'native-aeo-pack' ); ?></p>
     5177                        <p class="native-aeo-pack-section-desc"><?php esc_html_e( 'Optional. Without email or phone the markup stays valid, but Google\'s Rich Results Test will not list the organization.', 'native-aeo-pack' ); ?></p>
    51555178                        <table class="form-table" role="presentation">
    51565179                                <tbody>
    … …  
    53325355                                                                </tbody>
    53335356                                                        </table>
    5334                                                         <p class="description"><?php esc_html_e( 'Tick the days you open and give the opening and closing time. The second pair is for split hours. For a day open around the clock use 00:00 to 23:59.', 'native-aeo-pack' ); ?></p>
     5357                                                        <p class="description"><?php esc_html_e( 'Tick the days you open and set the hours. The second pair is for split hours; for 24 hours use 00:00 to 23:59.', 'native-aeo-pack' ); ?></p>
    53355358                                                </td>
    53365359                                        </tr>
    … …  
    54865509                        </table>
    54875510                        <?php if ( 'LocalBusiness' === $type ) : ?>
    5488                                 <p class="description"><?php esc_html_e( 'Each location is linked to the Site Identity as its parent organization. Closures on dates are set in each entry.', 'native-aeo-pack' ); ?></p>
     5511                                <p class="description"><?php esc_html_e( 'Each location is linked to the “Site Identity” as its parent organization. Closures on dates are set in each entry.', 'native-aeo-pack' ); ?></p>
    54895512                        <?php elseif ( ! empty( $types[ $type ]['review'] ) ) : ?>
    54905513                                <p class="description"><?php esc_html_e( 'The review is set in each entry.', 'native-aeo-pack' ); ?></p>
    … …  
    56455668                                <strong><?php esc_html_e( 'Search engines are being blocked site-wide.', 'native-aeo-pack' ); ?></strong>
    56465669                                <?php
    5647                                 echo wp_kses_post(
     5670                                // A short list, not wp_kses_post(): the sentence is a translation,
     5671                                // written by someone else (CLAUDE.md, rule 25).
     5672                                echo wp_kses(
    56485673                                        sprintf(
    56495674                                                /* translators: %s: link to Settings → Reading. */
    5650                                                 esc_html__( 'The %s option is enabled, so WordPress sets noindex on every page and hides the XML sitemap entirely. Nothing you configure in Visibility will reach search engines until you turn this off.', 'native-aeo-pack' ),
     5675                                                __( 'The %s option is on, so WordPress adds <code>noindex</code> everywhere and hides the XML sitemap. Turn it off.', 'native-aeo-pack' ),
    56515676                                                '<a href="' . esc_url( $reading_url ) . '"><strong>' . esc_html__( 'Settings → Reading → Search engine visibility', 'native-aeo-pack' ) . '</strong></a>'
     5677                                        ),
     5678                                        array(
     5679                                                'code'   => array(),
     5680                                                'strong' => array(),
     5681                                                'a'      => array( 'href' => array() ),
    56525682                                        )
    56535683                                );
    … …  
    56885718                                        sprintf(
    56895719                                                /* translators: %s: comma-separated list of detected SEO plugin names. */
    5690                                                 esc_html__( 'We detected %s. Visibility is designed to replace full SEO plugins, not to run alongside them. Keeping both active will generate duplicate meta tags and hurt your SEO. Deactivate one of the two.', 'native-aeo-pack' ),
     5720                                                esc_html__( 'We detected %s. Both active means duplicate meta tags: deactivate one.', 'native-aeo-pack' ),
    56915721                                                $names
    56925722                                        )
    … …  
    56985728                                                sprintf(
    56995729                                                        /* translators: %s: link to the Overview tab. */
    5700                                                         esc_html__( 'Before deactivating it, you can bring its per-post SEO data over from the %s.', 'native-aeo-pack' ),
     5730                                                        esc_html__( 'Before deactivating it, import its per-post SEO data from the %s.', 'native-aeo-pack' ),
    57015731                                                        '<a href="' . esc_url( admin_url( 'admin.php?page=' . NATIVE_AEO_PACK_SLUG ) ) . '">' . esc_html__( 'Overview tab', 'native-aeo-pack' ) . '</a>'
    57025732                                                )
    … …  
    57285758                                        sprintf(
    57295759                                                /* translators: %s: comma-separated list of legacy plugin names. */
    5730                                                 esc_html__( 'We detected %s active. Visibility takes over from these plugins and bundles their features in a single place. They will be deprecated soon — a one-click settings importer will arrive in an upcoming Visibility release. Meanwhile, deactivate them to avoid duplicate tags.', 'native-aeo-pack' ),
     5760                                                esc_html__( '%s is active. Visibility replaces these plugins. Deactivate them to avoid duplicate tags.', 'native-aeo-pack' ),
    57315761                                                $names
    57325762                                        )
    … …  
    62046234                }
    62056235
     6236                // Every other list of post types or taxonomies, as with the bases above
     6237                // (3.4.1): a type or a taxonomy that is not registered in this request (a
     6238                // plugin switched off for a while, WooCommerce say) is not on the screen,
     6239                // so nobody unticked it. The form keeps what was stored and a whole import
     6240                // keeps what its file says. Until then they fell off on any save, and
     6241                // products came back indexed, in llms.txt or in the sitemap with the plugin.
     6242                $native_aeo_pack_whole_save = ! empty( $input['noindex']['_whole'] );
     6243                $native_aeo_pack_lists      = array(
     6244                        'meta_tags' => array(
     6245                                'llms_post_types'      => 'post_type',
     6246                                'stale_post_types'     => 'post_type',
     6247                                'markdown_post_types'  => 'post_type',
     6248                                'markdown_taxonomies'  => 'taxonomy',
     6249                                'llms_taxonomies'      => 'taxonomy',
     6250                                'llms_only_taxonomies' => 'taxonomy',
     6251                        ),
     6252                        'noindex'   => array(
     6253                                'noindex_post_types'      => 'post_type',
     6254                                'nofollow_post_types'     => 'post_type',
     6255                                'noimageindex_post_types' => 'post_type',
     6256                                'nosnippet_post_types'    => 'post_type',
     6257                                'noindex_taxonomies'      => 'taxonomy',
     6258                                'nofollow_taxonomies'     => 'taxonomy',
     6259                                'noimageindex_taxonomies' => 'taxonomy',
     6260                                'nosnippet_taxonomies'    => 'taxonomy',
     6261                        ),
     6262                        'sitemap'   => array(
     6263                                'excluded_post_types' => 'post_type',
     6264                                'excluded_taxonomies' => 'taxonomy',
     6265                        ),
     6266                );
     6267                foreach ( $native_aeo_pack_lists as $native_aeo_pack_group => $native_aeo_pack_keys ) {
     6268                        if ( ! isset( $input[ $native_aeo_pack_group ] ) || ! is_array( $input[ $native_aeo_pack_group ] ) ) {
     6269                                continue;
     6270                        }
     6271                        foreach ( $native_aeo_pack_keys as $native_aeo_pack_key => $native_aeo_pack_kind ) {
     6272                                if ( ! isset( $clean[ $native_aeo_pack_group ][ $native_aeo_pack_key ] ) || ! is_array( $clean[ $native_aeo_pack_group ][ $native_aeo_pack_key ] ) ) {
     6273                                        continue;
     6274                                }
     6275                                $native_aeo_pack_sent = $input[ $native_aeo_pack_group ][ $native_aeo_pack_key ] ?? array();
     6276                                $native_aeo_pack_from = $native_aeo_pack_whole_save
     6277                                        ? ( is_array( $native_aeo_pack_sent ) ? $native_aeo_pack_sent : array() )
     6278                                        : (array) ( $existing[ $native_aeo_pack_group ][ $native_aeo_pack_key ] ?? array() );
     6279                                $clean[ $native_aeo_pack_group ][ $native_aeo_pack_key ] = self::keep_unregistered(
     6280                                        $clean[ $native_aeo_pack_group ][ $native_aeo_pack_key ],
     6281                                        $native_aeo_pack_from,
     6282                                        $native_aeo_pack_kind
     6283                                );
     6284                        }
     6285                }
     6286
     6287                // The same for the maps keyed by post type or taxonomy: the title and
     6288                // description templates and the schema @type per content type. Each kept
     6289                // entry goes through the same cleaning as the ones on the screen.
     6290                if ( isset( $input['meta_tags'] ) && is_array( $input['meta_tags'] ) ) {
     6291                        $native_aeo_pack_schema_allowed = Native_AEO_Pack_Settings::schema_type_choices();
     6292                        $native_aeo_pack_maps           = array(
     6293                                'title_templates_post_types'       => array( 'post_type', 'title' ),
     6294                                'title_templates_taxonomies'       => array( 'taxonomy', 'title' ),
     6295                                'description_templates_post_types' => array( 'post_type', 'description' ),
     6296                                'description_templates_taxonomies' => array( 'taxonomy', 'description' ),
     6297                                'schema_types'                     => array( 'post_type', 'schema' ),
     6298                        );
     6299                        foreach ( $native_aeo_pack_maps as $native_aeo_pack_key => $native_aeo_pack_map ) {
     6300                                if ( ! isset( $input['meta_tags'][ $native_aeo_pack_key ] ) ) {
     6301                                        continue;
     6302                                }
     6303                                $native_aeo_pack_from = $native_aeo_pack_whole_save
     6304                                        ? wp_unslash( $input['meta_tags'][ $native_aeo_pack_key ] )
     6305                                        : ( $existing['meta_tags'][ $native_aeo_pack_key ] ?? array() );
     6306                                if ( ! is_array( $native_aeo_pack_from ) ) {
     6307                                        continue;
     6308                                }
     6309                                $native_aeo_pack_kept = isset( $clean['meta_tags'][ $native_aeo_pack_key ] ) && is_array( $clean['meta_tags'][ $native_aeo_pack_key ] ) ? $clean['meta_tags'][ $native_aeo_pack_key ] : array();
     6310                                foreach ( $native_aeo_pack_from as $native_aeo_pack_slug => $native_aeo_pack_value ) {
     6311                                        $native_aeo_pack_slug = sanitize_key( (string) $native_aeo_pack_slug );
     6312                                        if ( '' === $native_aeo_pack_slug || isset( $native_aeo_pack_kept[ $native_aeo_pack_slug ] ) ) {
     6313                                                continue;
     6314                                        }
     6315                                        $native_aeo_pack_registered = 'taxonomy' === $native_aeo_pack_map[0] ? taxonomy_exists( $native_aeo_pack_slug ) : post_type_exists( $native_aeo_pack_slug );
     6316                                        if ( $native_aeo_pack_registered ) {
     6317                                                continue;
     6318                                        }
     6319                                        if ( 'schema' === $native_aeo_pack_map[1] ) {
     6320                                                $native_aeo_pack_value = sanitize_text_field( is_scalar( $native_aeo_pack_value ) ? (string) $native_aeo_pack_value : '' );
     6321                                                if ( ! in_array( $native_aeo_pack_value, $native_aeo_pack_schema_allowed, true ) ) {
     6322                                                        continue;
     6323                                                }
     6324                                        } else {
     6325                                                $native_aeo_pack_value = Native_AEO_Pack_Title_Template::sanitize( is_scalar( $native_aeo_pack_value ) ? (string) $native_aeo_pack_value : '', $native_aeo_pack_map[1] );
     6326                                                if ( '' === $native_aeo_pack_value ) {
     6327                                                        continue;
     6328                                                }
     6329                                        }
     6330                                        $native_aeo_pack_kept[ $native_aeo_pack_slug ] = $native_aeo_pack_value;
     6331                                }
     6332                                $clean['meta_tags'][ $native_aeo_pack_key ] = $native_aeo_pack_kept;
     6333                        }
     6334                }
     6335
    62066336                // A save with "Respect nosnippet" on, switched on just now or on already,
    62076337                // leaves the notice that says it is off with nothing true to say.
    … …  
    62856415         */
    62866416        private static function keep_unregistered_taxonomies( array $kept, array $from ) {
    6287                 foreach ( self::sanitize_keys( $from ) as $taxonomy ) {
    6288                         if ( ! taxonomy_exists( $taxonomy ) && ! in_array( $taxonomy, $kept, true ) ) {
    6289                                 $kept[] = $taxonomy;
     6417                return self::keep_unregistered( $kept, $from, 'taxonomy' );
     6418        }
     6419
     6420        /**
     6421         * Add to a list of post types or taxonomies the ones of `$from` that are not
     6422         * registered in this request (3.4.1, the rule above for every such list).
     6423         *
     6424         * @param array<int, string> $kept Names already validated.
     6425         * @param array              $from Raw list to take the unregistered ones from.
     6426         * @param string             $kind 'post_type' or 'taxonomy'.
     6427         * @return array<int, string>
     6428         */
     6429        private static function keep_unregistered( array $kept, array $from, $kind ) {
     6430                foreach ( self::sanitize_keys( $from ) as $name ) {
     6431                        $registered = 'taxonomy' === $kind ? taxonomy_exists( $name ) : post_type_exists( $name );
     6432                        if ( ! $registered && ! in_array( $name, $kept, true ) ) {
     6433                                $kept[] = $name;
    62906434                        }
    62916435                }
  • native-aeo-pack/trunk/includes/class-importer.php

    r3824861 r3830593  
    26452645                                                $out['redirect_attachment'] = ( '' !== $mode && 'disabled' !== $mode );
    26462646                                        }
     2647                                        // "Remove Category Base Prefix" (3.4.1): a boolean in the same
     2648                                        // block (`app/Common/Options/Options.php:387` in AIOSEO 4.x).
     2649                                        // Without it, a site that had /category/ removed in AIOSEO got
     2650                                        // it back after migrating.
     2651                                        if ( isset( $sa['advanced']['removeCategoryBase'] ) ) {
     2652                                                $out['strip_category_base'] = ! empty( $sa['advanced']['removeCategoryBase'] );
     2653                                        }
    26472654                                }
    26482655                                // Default social image (stored as a URL) under social.facebook.
  • native-aeo-pack/trunk/includes/class-link-popup.php

    r3572180 r3830593  
    11<?php
    22/**
    3  * Visibility — `rel="nofollow"` checkbox for the Classic Editor `wpLink` modal.
     3 * Visibility — `rel` checkboxes for the Classic Editor `wpLink` modal.
    44 *
    5  * Adds a "Mark as nofollow" checkbox to the link insertion popup so users
    6  * can mark individual links with `rel="nofollow"` without switching to text
    7  * mode. The Block Editor has its own native nofollow toggle in the link
    8  * popover, so this integration is Classic Editor only.
     5 * Adds "Mark as nofollow" and, since 3.4.1, "Mark as sponsored" and "Mark
     6 * as ugc" to the link insertion popup, so a link gets
     7 * `rel="nofollow"`, `rel="sponsored"` or `rel="ugc"` without switching to
     8 * text mode. Each one adds or removes only its own token. The `rel` is
     9 * saved in the content, so it stays if the plugin is deactivated. The block
     10 * editor gets the same two through `enqueue_block_editor()`.
    911 *
    1012 * @package Native_AEO_Pack
    … …  
    3032        public static function init() {
    3133                add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue' ) );
     34                add_action( 'enqueue_block_editor_assets', array( __CLASS__, 'enqueue_block_editor' ) );
     35        }
     36
     37        /**
     38         * The same `sponsored` and `ugc` in the block editor (3.4.1).
     39         *
     40         * `assets/js/link-rel-editor.js` wraps the registered `core/link` format, so
     41         * it depends on `wp-format-library`, which registers it, to run after it.
     42         * Not loaded while Rank Math is active: it replaces `core/link` with its own
     43         * format, which already offers `sponsored`, and two plugins swapping the
     44         * same format would fight over it.
     45         */
     46        public static function enqueue_block_editor() {
     47                if ( defined( 'RANK_MATH_VERSION' ) ) {
     48                        return;
     49                }
     50
     51                wp_enqueue_script(
     52                        'native-aeo-pack-link-rel',
     53                        NATIVE_AEO_PACK_URL . 'assets/js/link-rel-editor.js',
     54                        array( 'wp-rich-text', 'wp-element', 'wp-components', 'wp-block-editor', 'wp-data', 'wp-i18n', 'wp-format-library' ),
     55                        NATIVE_AEO_PACK_VERSION,
     56                        true
     57                );
     58                wp_set_script_translations( 'native-aeo-pack-link-rel', 'native-aeo-pack' );
    3259        }
    3360
    … …  
    5481                        'nativeAeoPackLinkPopup',
    5582                        array(
    56                                 'label' => __( 'Mark as nofollow', 'native-aeo-pack' ),
     83                                'label'          => __( 'Mark as nofollow', 'native-aeo-pack' ),
     84                                'labelSponsored' => __( 'Mark as sponsored', 'native-aeo-pack' ),
     85                                'labelUgc'       => __( 'Mark as ugc', 'native-aeo-pack' ),
    5786                        )
    5887                );
  • native-aeo-pack/trunk/includes/class-meta-box.php

    r3825053 r3830593  
    128128                );
    129129
    130                 // The placeholders named in the help texts go into their field with a click (3.3.0).
     130                // The rows of placeholder buttons under the template fields (3.3.0; a row under the field since 3.4.1).
    131131                wp_enqueue_script( 'native-aeo-pack-template-tags', NATIVE_AEO_PACK_URL . 'assets/js/template-tags.js', array(), NATIVE_AEO_PACK_VERSION, true );
    132132
    … …  
    303303                                data-auto-title-format="<?php echo esc_attr( $preview_ctx['titleFormat'] ); ?>"
    304304                        />
     305                        <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-mb-title', 'title' ); ?>
    305306                        <span class="description">
    306307                                <?php
    307308                                if ( $has_template ) {
    308                                         esc_html_e( 'Replaces the document <title>, og:title and twitter:title for this entry. Left empty, the title follows the template set on the Discover tab, shown above as placeholder. Max 120 characters.', 'native-aeo-pack' );
     309                                        echo wp_kses( __( 'Replaces the <code>&lt;title&gt;</code>, <code>og:title</code> and <code>twitter:title</code>. Empty, it uses the “Discover” tab template. Max 120 characters.', 'native-aeo-pack' ), array( 'code' => array() ) );
    309310                                } else {
    310                                         esc_html_e( 'Replaces the document <title>, og:title and twitter:title for this entry. Left empty, the title is the one WordPress composes, shown above as placeholder. Max 120 characters.', 'native-aeo-pack' );
     311                                        echo wp_kses( __( 'Replaces the <code>&lt;title&gt;</code>, <code>og:title</code> and <code>twitter:title</code>. Empty, it uses the title WordPress builds. Max 120 characters.', 'native-aeo-pack' ), array( 'code' => array() ) );
    311312                                }
    312                                 echo ' ';
    313                                 echo wp_kses(
    314                                         sprintf(
    315                                                 /* translators: 1: %%title%%, 2: %%sep%%, 3: %%sitename%%, 4: %%page%%, 5: %%tagline%%, 6: %%taxonomy%% (literal placeholders, do not translate them). */
    316                                                 esc_html__( 'You can also type a template of your own for this entry, with %1$s, %2$s, %3$s, %4$s, %5$s and %6$s (its first category, or the first term of its main taxonomy); anything else is used exactly as typed.', 'native-aeo-pack' ),
    317                                                 Native_AEO_Pack_Title_Template::tag_button( '%%title%%', 'native-aeo-pack-mb-title' ),
    318                                                 Native_AEO_Pack_Title_Template::tag_button( '%%sep%%', 'native-aeo-pack-mb-title' ),
    319                                                 Native_AEO_Pack_Title_Template::tag_button( '%%sitename%%', 'native-aeo-pack-mb-title' ),
    320                                                 Native_AEO_Pack_Title_Template::tag_button( '%%page%%', 'native-aeo-pack-mb-title' ),
    321                                                 Native_AEO_Pack_Title_Template::tag_button( '%%tagline%%', 'native-aeo-pack-mb-title' ),
    322                                                 Native_AEO_Pack_Title_Template::tag_button( '%%taxonomy%%', 'native-aeo-pack-mb-title' )
    323                                         ),
    324                                         Native_AEO_Pack_Title_Template::tag_allowed_html()
    325                                 );
    326313                                ?>
    327314                                <?php self::render_char_count( 'native-aeo-pack-mb-title', $title ); ?>
    … …  
    340327                                placeholder="<?php esc_attr_e( 'Leave empty to auto-generate from the excerpt or content.', 'native-aeo-pack' ); ?>"
    341328                        ><?php echo esc_textarea( $description ); ?></textarea>
     329                        <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-mb-description', 'description' ); ?>
    342330                        <span class="description">
    343                                 <?php esc_html_e( 'Overrides the auto-generated description for this entry, or the description template set on the Discover tab. Max 200 characters.', 'native-aeo-pack' ); ?>
    344                                 <?php
    345                                 echo wp_kses(
    346                                         sprintf(
    347                                                 /* translators: 1: %%excerpt%%, 2: %%title%%, 3: %%sitename%%, 4: %%tagline%%, 5: %%taxonomy%% (literal placeholders, do not translate them). */
    348                                                 esc_html__( 'You can also type a template, with %1$s (the automatic description), %2$s, %3$s, %4$s and %5$s; anything else is used exactly as typed.', 'native-aeo-pack' ),
    349                                                 Native_AEO_Pack_Title_Template::tag_button( '%%excerpt%%', 'native-aeo-pack-mb-description' ),
    350                                                 Native_AEO_Pack_Title_Template::tag_button( '%%title%%', 'native-aeo-pack-mb-description' ),
    351                                                 Native_AEO_Pack_Title_Template::tag_button( '%%sitename%%', 'native-aeo-pack-mb-description' ),
    352                                                 Native_AEO_Pack_Title_Template::tag_button( '%%tagline%%', 'native-aeo-pack-mb-description' ),
    353                                                 Native_AEO_Pack_Title_Template::tag_button( '%%taxonomy%%', 'native-aeo-pack-mb-description' )
    354                                         ),
    355                                         Native_AEO_Pack_Title_Template::tag_allowed_html()
    356                                 );
    357                                 ?>
     331                                <?php esc_html_e( 'Overrides the auto-generated description for this entry, or the description template set on the “Discover” tab. Max 200 characters.', 'native-aeo-pack' ); ?>
    358332                                <?php self::render_char_count( 'native-aeo-pack-mb-description', $description ); ?>
    359333                        </span>
    … …  
    377351                                placeholder="<?php esc_attr_e( 'Leave empty to use the permalink.', 'native-aeo-pack' ); ?>"
    378352                        />
    379                         <span class="description"><?php esc_html_e( 'Replaces rel=canonical and og:url for this entry. Set it when this content also lives at another URL that should receive the ranking signals.', 'native-aeo-pack' ); ?> <?php esc_html_e( 'An entry whose Canonical URL names another address is left out of the sitemap.', 'native-aeo-pack' ); ?></span>
     353                        <span class="description"><?php echo wp_kses( __( 'Replaces <code>rel=canonical</code> and <code>og:url</code> with the URL that should get the ranking signals. If it is another address, the entry leaves the sitemap.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></span>
    380354                </p>
    381355
    … …  
    397371                                placeholder="<?php esc_attr_e( 'Leave empty to use the meta title.', 'native-aeo-pack' ); ?>"
    398372                        />
    399                         <span class="description"><?php esc_html_e( 'Overrides og:title and twitter:title for this entry, when the shared text should differ from the meta title.', 'native-aeo-pack' ); ?></span>
     373                        <span class="description"><?php echo wp_kses( __( 'Overrides <code>og:title</code> and <code>twitter:title</code> for this entry, when the shared text should differ from the meta title.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></span>
    400374                </p>
    401375
    … …  
    411385                                placeholder="<?php esc_attr_e( 'Leave empty to use the meta description.', 'native-aeo-pack' ); ?>"
    412386                        ><?php echo esc_textarea( $og_description ); ?></textarea>
    413                         <span class="description"><?php esc_html_e( 'Overrides og:description and twitter:description for this entry.', 'native-aeo-pack' ); ?></span>
     387                        <span class="description"><?php echo wp_kses( __( 'Overrides <code>og:description</code> and <code>twitter:description</code> for this entry.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></span>
    414388                </p>
    415389
    … …  
    423397                        </button>
    424398                </div>
    425                 <p class="description"><?php esc_html_e( 'Used on og:image and twitter:image. Leave empty to use the featured image, then the site fallback.', 'native-aeo-pack' ); ?></p>
     399                <p class="description"><?php echo wp_kses( __( 'Used on <code>og:image</code> and <code>twitter:image</code>. Leave empty to use the featured image, then the site fallback.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    426400                </div><!-- .native-aeo-pack-mb-pane social -->
    427401
    … …  
    482456                                <?php endforeach; ?>
    483457                        </select>
    484                         <span class="description"><?php esc_html_e( 'JSON-LD @type for this entry. Leave on Default to follow the per-content-type setting, or pick None to write no structured data on this entry at all.', 'native-aeo-pack' ); ?></span>
     458                        <span class="description"><?php esc_html_e( 'Default follows the setting for this content type. “None” writes no structured data for this entry.', 'native-aeo-pack' ); ?></span>
    485459                        <?php
    486460                        // Profile pages (2.8.0): whose profile this page is, or whose profile
    … …  
    539513                                        <?php endforeach; ?>
    540514                                </select>
    541                                 <span class="description"><?php esc_html_e( 'What this entry is about, linked to its schema type. Default follows the Discover tab.', 'native-aeo-pack' ); ?></span>
     515                                <span class="description"><?php esc_html_e( 'What this entry is about, linked to its schema type. Default follows the “Discover” tab.', 'native-aeo-pack' ); ?></span>
    542516                        </p>
    543517
    … …  
    718692                                <p class="description"><?php esc_html_e( 'The image and the description are the page’s own: its Open Graph image and its meta description.', 'native-aeo-pack' ); ?></p>
    719693                        <?php elseif ( 'JobPosting' === $type || 'DiscussionForumPosting' === $type ) : ?>
    720                                 <p class="description"><?php esc_html_e( 'The text is the entry’s own, without what is marked nosnippet.', 'native-aeo-pack' ); ?></p>
     694                                <p class="description"><?php echo wp_kses( __( 'The text is the entry’s own, without what is marked <code>nosnippet</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    721695                        <?php endif; ?>
    722696                </div>
    … …  
    874848                <p><strong><?php esc_html_e( 'Opening hours', 'native-aeo-pack' ); ?></strong>
    875849                        <?php if ( $inherited ) : ?>
    876                                 <span class="description"><?php esc_html_e( 'With no day ticked, the Site Identity hours.', 'native-aeo-pack' ); ?></span>
     850                                <span class="description"><?php esc_html_e( 'With no day ticked, the “Site Identity” hours.', 'native-aeo-pack' ); ?></span>
    877851                        <?php endif; ?>
    878852                </p>
    … …  
    988962                                'label' => __( 'Set as noindex', 'native-aeo-pack' ),
    989963                                /* translators: %s: post type label. */
    990                                 'note'  => __( 'All %s are set to noindex in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
     964                                'note'  => __( 'All %s are set to <code>noindex</code> in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
    991965                        ),
    992966                        'nofollow'     => array(
    … …  
    995969                                'label' => __( 'Set as nofollow', 'native-aeo-pack' ),
    996970                                /* translators: %s: post type label. */
    997                                 'note'  => __( 'All %s are set to nofollow in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
     971                                'note'  => __( 'All %s are set to <code>nofollow</code> in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
    998972                        ),
    999973                        'noimageindex' => array(
    … …  
    1002976                                'label' => __( 'Set as noimageindex', 'native-aeo-pack' ),
    1003977                                /* translators: %s: post type label. */
    1004                                 'note'  => __( 'All %s are set to noimageindex in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
     978                                'note'  => __( 'All %s are set to <code>noimageindex</code> in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
    1005979                        ),
    1006980                        'nosnippet'    => array(
    … …  
    1009983                                'label' => __( 'Set as nosnippet', 'native-aeo-pack' ),
    1010984                                /* translators: %s: post type label. */
    1011                                 'note'  => __( 'All %s are set to nosnippet in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
     985                                'note'  => __( 'All %s are set to <code>nosnippet</code> in the plugin settings. Unchecking this excludes this specific entry from that rule.', 'native-aeo-pack' ),
    1012986                        ),
    1013987                );
    … …  
    10391013                                        </label>
    10401014                                        <?php if ( $states[ $directive ]['is_type'] ) : ?>
    1041                                                 <p class="description"><?php echo esc_html( sprintf( $texts['note'], $post_type_label ) ); ?></p>
     1015                                                <p class="description"><?php echo wp_kses( sprintf( $texts['note'], esc_html( $post_type_label ) ), array( 'code' => array() ) ); ?></p>
    10421016                                        <?php endif; ?>
    10431017                                </div>
    … …  
    10551029
    10561030                <p class="description">
    1057                         <?php esc_html_e( 'noimageindex and nosnippet both leave indexing alone. noimageindex keeps its images out of image search. nosnippet: Google shows no snippet and does not use the text as direct input for AI Overviews and AI Mode. With Respect nosnippet on, Visibility also keeps the text out of llms.txt, llms-full.txt and FAQPage, and serves no Markdown version.', 'native-aeo-pack' ); ?>
     1031                        <?php echo wp_kses( __( 'Neither blocks indexing. <code>noimageindex</code> hides this entry\'s images from image search. <code>nosnippet</code> stops Google snippets and AI Overviews using the text. With “Respect nosnippet” on, the text also leaves <code>llms.txt</code>, <code>llms-full.txt</code>, <code>FAQPage</code> and Markdown.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    10581032                </p>
    10591033
    … …  
    10811055                                        <?php esc_html_e( 'Out of llms.txt', 'native-aeo-pack' ); ?>
    10821056                                </label>
    1083                                 <p class="description"><?php esc_html_e( 'Keeps this entry out of llms.txt and llms-full.txt, and Visibility serves no Markdown version of it. Search engines are not affected.', 'native-aeo-pack' ); ?></p>
     1057                                <p class="description"><?php echo wp_kses( __( 'Keeps this entry out of <code>llms.txt</code> and <code>llms-full.txt</code>, and Visibility serves no Markdown version of it. Search engines are not affected.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    10841058                                <input type="hidden" name="native_aeo_pack_llms_present" value="1" />
    10851059                        </div>
  • native-aeo-pack/trunk/includes/class-preview.php

    r3702795 r3830593  
    135135                        'aiBadge'    => __( 'AI Overview', 'native-aeo-pack' ),
    136136                        'aiCited'    => __( 'Your page, cited as a source:', 'native-aeo-pack' ),
    137                         'help'       => __( 'How this entry can look on a Google result, a shared social card and an AI answer citing your page. Built from the title and description above; the final rendering always varies by platform.', 'native-aeo-pack' ),
     137                        'help'       => __( 'How this entry may look on Google, as a social card and in an AI answer. Built from the title and description above.', 'native-aeo-pack' ),
    138138                );
    139139        }
  • native-aeo-pack/trunk/includes/class-quick-edit.php

    r3824861 r3830593  
    515515                        ? array()
    516516                        : (array) Native_AEO_Pack_Settings::get( 'noindex', $settings_key, array() );
    517                 $count      = 0;
     517                $count         = 0;
     518                $shared_groups = array();
    518519
    519520                foreach ( $post_ids as $post_id ) {
    … …  
    542543                                }
    543544                        }
    544                         // To every translation, with WPML (3.2.0).
    545                         Native_AEO_Pack_Post_Meta::share_with_translations( $post_id, array( $individual_key, $excluded_key ) );
     545                        // To every translation, with WPML (3.2.0): only the key this action
     546                        // wrote (3.4.1). Sharing both overwrote the translation's own value
     547                        // of the other one, such as an exclusion from the per-type rule.
     548                        // Once per translation group: every entry of a group ends with the
     549                        // same value, so a second entry of the group has nothing to add.
     550                        $written = $is_type_bulk ? $excluded_key : $individual_key;
     551                        $trid    = (int) apply_filters( 'wpml_element_trid', null, $post_id, 'post_' . $post_type ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WPML's public filter; used, not declared here.
     552                        if ( ! $trid || ! isset( $shared_groups[ $trid ] ) ) {
     553                                Native_AEO_Pack_Post_Meta::share_with_translations( $post_id, array( $written ) );
     554                                if ( $trid ) {
     555                                        $shared_groups[ $trid ] = true;
     556                                }
     557                        }
    546558                        ++$count;
    547559                }
    … …  
    580592                        case 'native_aeo_pack_set_noindex':
    581593                                /* translators: %d: number of items. */
    582                                 $message = sprintf( _n( '%d item set as noindex.', '%d items set as noindex.', $count, 'native-aeo-pack' ), $count );
     594                                $message = sprintf( _n( '%d item set as <code>noindex</code>.', '%d items set as <code>noindex</code>.', $count, 'native-aeo-pack' ), $count );
    583595                                break;
    584596                        case 'native_aeo_pack_unset_noindex':
    … …  
    588600                        case 'native_aeo_pack_set_nofollow':
    589601                                /* translators: %d: number of items. */
    590                                 $message = sprintf( _n( '%d item set as nofollow.', '%d items set as nofollow.', $count, 'native-aeo-pack' ), $count );
     602                                $message = sprintf( _n( '%d item set as <code>nofollow</code>.', '%d items set as <code>nofollow</code>.', $count, 'native-aeo-pack' ), $count );
    591603                                break;
    592604                        case 'native_aeo_pack_unset_nofollow':
    … …  
    614626                }
    615627
    616                 printf( '<div class="notice notice-success is-dismissible"><p>%s</p></div>', esc_html( $message ) );
     628                printf( '<div class="notice notice-success is-dismissible"><p>%s</p></div>', wp_kses( $message, array( 'code' => array() ) ) );
    617629        }
    618630}
  • native-aeo-pack/trunk/includes/class-redirects.php

    r3827553 r3830593  
    859859                }
    860860
    861                 return $base . '/' . $old_slug;
     861                // In the shape the map keys have (3.4.1): WordPress stores a slug with
     862                // accents percent-encoded (`caf%c3%a9`), and the map keeps it decoded
     863                // (`/café`), so a raw source missed a redirect already managed there and
     864                // moving the native one replaced it.
     865                return self::canonical_path( $base . '/' . $old_slug );
    862866        }
    863867
    … …  
    9991003
    10001004                wp_send_json_success( array( 'count' => $count ) );
     1005        }
     1006
     1007        /**
     1008         * AJAX: move several native slug redirects to Visibility in one go (3.4.1).
     1009         * Receives the same parallel `post_ids[]` and `old_slugs[]` as the bulk
     1010         * removal, and does to each entry what ajax_convert_native() does to one:
     1011         * a managed 301 from the old address to the current one, then the
     1012         * `_wp_old_slug` meta goes. An entry is skipped when the user may not edit
     1013         * it, when its old address already has a redirect of Visibility (never
     1014         * overwritten here) or when save() turns it down; it stays where it was.
     1015         */
     1016        public static function ajax_bulk_convert_native() {
     1017                check_ajax_referer( self::NONCE, 'security' );
     1018                self::require_caps();
     1019
     1020                $post_ids  = isset( $_POST['post_ids'] ) && is_array( $_POST['post_ids'] )
     1021                        ? array_map( 'absint', wp_unslash( $_POST['post_ids'] ) )
     1022                        : array();
     1023                $old_slugs = isset( $_POST['old_slugs'] ) && is_array( $_POST['old_slugs'] )
     1024                        ? self::bulk_paths( array_map( 'wp_strip_all_tags', wp_unslash( $_POST['old_slugs'] ) ) )
     1025                        : array();
     1026
     1027                $moved   = array();
     1028                $skipped = 0;
     1029                foreach ( $post_ids as $i => $post_id ) {
     1030                        $old_slug = isset( $old_slugs[ $i ] ) ? $old_slugs[ $i ] : '';
     1031                        $post     = $post_id ? get_post( $post_id ) : null;
     1032                        if ( ! $post instanceof WP_Post || '' === $old_slug || ! current_user_can( 'edit_post', $post_id ) ) {
     1033                                ++$skipped;
     1034                                continue;
     1035                        }
     1036
     1037                        $source = self::reconstruct_old_url( $post, $old_slug );
     1038                        $map    = self::get_map();
     1039                        if ( '' === $source || isset( $map[ $source ] ) ) {
     1040                                ++$skipped;
     1041                                continue;
     1042                        }
     1043
     1044                        $result = self::save( $source, (string) wp_make_link_relative( get_permalink( $post ) ), 301 );
     1045                        if ( ! empty( $result['errors'] ) ) {
     1046                                ++$skipped;
     1047                                continue;
     1048                        }
     1049
     1050                        delete_post_meta( $post_id, '_wp_old_slug', $old_slug );
     1051                        $moved[] = array_merge(
     1052                                self::shape_row( $result['source'], $result['target'], $result['type'] ),
     1053                                array(
     1054                                        'post_id'  => (int) $post_id,
     1055                                        'old_slug' => $old_slug,
     1056                                )
     1057                        );
     1058                }
     1059
     1060                wp_send_json_success(
     1061                        array(
     1062                                'moved'   => $moved,
     1063                                'skipped' => $skipped,
     1064                                'hops'    => (object) self::two_hop_sources(),
     1065                        )
     1066                );
    10011067        }
    10021068
    … …  
    12411307                add_action( 'wp_ajax_native_aeo_pack_redirect_bulk_dismiss',       array( __CLASS__, 'ajax_bulk_dismiss' ) );
    12421308                add_action( 'wp_ajax_native_aeo_pack_redirect_bulk_remove_native', array( __CLASS__, 'ajax_bulk_remove_native' ) );
     1309                add_action( 'wp_ajax_native_aeo_pack_redirect_bulk_convert_native', array( __CLASS__, 'ajax_bulk_convert_native' ) );
    12431310
    12441311                add_action( 'admin_post_native_aeo_pack_redirect_export', array( __CLASS__, 'handle_export' ) );
  • native-aeo-pack/trunk/includes/class-schema-entities.php

    r3827553 r3830593  
    777777
    778778                        case 'short':
    779                                 return self::cut( trim( sanitize_text_field( $value ) ), 40 );
     779                                return self::cut( trim( self::plain_text( $value ) ), 40 );
    780780
    781781                        default:
    782                                 return self::cut( trim( sanitize_text_field( $value ) ), 200 );
    783                 }
     782                                return self::cut( trim( self::plain_text( $value ) ), 200 );
     783                }
     784        }
     785
     786        /**
     787         * sanitize_text_field(), or sanitize_textarea_field() with `$multiline`,
     788         * without its last step: it deletes every `%XX` octet
     789         * (`_sanitize_text_fields()`, wp-includes/formatting.php:5734 in 7.1.5), so
     790         * "20%OFF" became "20OFF" and a name with "%E2" lost three characters
     791         * (3.4.1). The `%` are set aside in a private-use character before and put
     792         * back after, so tags, line breaks and invalid UTF-8 go exactly as before.
     793         *
     794         * @param string $value     Raw text.
     795         * @param bool   $multiline Keep line breaks.
     796         * @return string
     797         */
     798        private static function plain_text( $value, $multiline = false ) {
     799                $mark  = "\u{E000}";
     800                $value = str_replace( '%', $mark, str_replace( $mark, '', (string) $value ) );
     801                $clean = $multiline ? sanitize_textarea_field( $value ) : sanitize_text_field( $value );
     802                return str_replace( $mark, '%', $clean );
    784803        }
    785804
    … …  
    794813        private static function clean_lines( $value, $max, $chars ) {
    795814                $lines = array();
    796                 foreach ( preg_split( '/\r\n|\r|\n/', sanitize_textarea_field( $value ) ) as $line ) {
     815                foreach ( preg_split( '/\r\n|\r|\n/', self::plain_text( $value, true ) ) as $line ) {
    797816                        $line = self::cut( trim( $line ), $chars );
    798817                        if ( '' !== $line && ! in_array( $line, $lines, true ) && count( $lines ) < $max ) {
    … …  
    22892308
    22902309                if ( ! Native_AEO_Pack_Settings::get( 'meta_tags', 'schema_article', true ) ) {
    2291                         $out['messages'][] = self::message( 'warning', __( 'The entry schema is switched off on the Discover tab, so nothing is written.', 'native-aeo-pack' ) );
     2310                        $out['messages'][] = self::message( 'warning', __( 'The entry schema is switched off on the “Discover” tab, so nothing is written.', 'native-aeo-pack' ) );
    22922311                        return $out;
    22932312                }
    22942313                if ( Native_AEO_Pack_Settings::SCHEMA_TYPE_NONE === $resolved_page ) {
    2295                         $out['messages'][] = self::message( 'warning', __( 'This entry writes no structured data (its Schema type is None), so nothing is written about it either.', 'native-aeo-pack' ) );
     2314                        $out['messages'][] = self::message( 'warning', __( 'This entry writes no structured data (its “Schema type” is “None”), so nothing is written about it either.', 'native-aeo-pack' ) );
    22962315                        return $out;
    22972316                }
    … …  
    23082327                }
    23092328                if ( $closed ) {
    2310                         $out['messages'][] = self::message( 'warning', __( 'This entry is not open to everyone (private, with a password or for members), so nothing is written about it: it would show visitors what only some can read.', 'native-aeo-pack' ) );
     2329                        $out['messages'][] = self::message( 'warning', __( 'This entry is private, password-protected or members-only, so no structured data is written for it.', 'native-aeo-pack' ) );
    23112330                        return $out;
    23122331                }
    … …  
    24152434                        'online_url'          => __( 'An online event needs the address where it is followed. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    24162435                        'start'               => __( 'Google needs the date and time the event starts. Until it has them, nothing is written for this event.', 'native-aeo-pack' ),
    2417                         'identity_address'    => __( 'The Site Identity has no street address and town or city, so the event has no place. Add them on the Discover tab, or pick another address. Until then, nothing is written for this event.', 'native-aeo-pack' ),
    2418                         'image'               => __( 'Google needs an image of the dish: the featured image or the Open Graph image. Until it has one, nothing is written for this recipe.', 'native-aeo-pack' ),
     2436                        'identity_address'    => __( 'The “Site Identity” has no street address and city, so the event has no place and nothing is written. Add them on the “Discover” tab or pick another address.', 'native-aeo-pack' ),
     2437                        'image'               => __( 'Google needs an image of the dish: the featured image or the Open Graph image. Without one, nothing is written.', 'native-aeo-pack' ),
    24192438                        'authors'             => __( 'A book needs its author. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    24202439                        'by_artist'           => __( 'A recording needs its artist. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    … …  
    24222441                        'thumbnail'           => __( 'Google needs a thumbnail for a video: the featured image or the Open Graph image. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    24232442                        'upload_date'         => __( 'Google needs the date the video was published. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    2424                         'dataset_description' => __( 'Google needs a description of at least 50 characters for a dataset: the meta description of the entry. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
     2443                        'dataset_description' => __( 'A dataset needs a meta description of at least 50 characters. Without it, nothing is written.', 'native-aeo-pack' ),
    24252444                        'description'         => __( 'A course needs a description: the meta description of the entry. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    24262445                        'provider'            => __( 'A course needs who provides it. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    2427                         'job_description'     => __( 'Google needs the description of the job, which is the text of the entry. An entry behind a login or a payment, or set to nosnippet, has none to give, so nothing is written for it.', 'native-aeo-pack' ),
     2446                        'job_description'     => __( 'A job needs the text of the entry as its description. Entries behind a login or payment, or set to nosnippet, have none, so nothing is written.', 'native-aeo-pack' ),
    24282447                        'date_posted'         => __( 'Google needs the date the job was posted. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    24292448                        'hiring'              => __( 'Google needs who is hiring. Until it has one, nothing is written for this job.', 'native-aeo-pack' ),
    24302449                        'job_location'        => __( 'Google needs where the job is: at least the country. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    2431                         'forum_author'        => __( 'A forum thread needs its author, and the author of this entry is not one Visibility describes. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
     2450                        'forum_author'        => __( 'A forum thread needs an author Visibility can describe, and this entry\'s author is not one. Nothing is written.', 'native-aeo-pack' ),
    24322451                        'applicant_country'   => __( 'A remote job needs the country it hires from. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    2433                         'forum_text'          => __( 'A forum thread needs the text of its post, which is the text of the entry. An entry behind a login or a payment, or set to nosnippet, has none to give, so nothing is written for it.', 'native-aeo-pack' ),
     2452                        'forum_text'          => __( 'A forum thread needs the text of the entry. Entries behind a login or payment, or set to nosnippet, have none, so nothing is written.', 'native-aeo-pack' ),
    24342453                        'steps'               => __( 'A how-to needs its steps. Until it has them, nothing is written for it.', 'native-aeo-pack' ),
    24352454                        'app_rating'          => __( 'Google needs your visitors’ ratings or your own review for an app. Until it has one of them, nothing is written for it.', 'native-aeo-pack' ),
    2436                         'product_offer'       => __( 'Google needs a price, your visitors’ ratings or your own review for a product. Until it has one of them, nothing is written for it.', 'native-aeo-pack' ),
     2455                        'product_offer'       => __( 'A product needs a price, visitor ratings or your own review. Without one, nothing is written.', 'native-aeo-pack' ),
    24372456                        'claim'               => __( 'A fact check needs the claim it checks. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    24382457                        'verdict'             => __( 'A fact check needs your verdict, such as False or Misleading. Until it has one, nothing is written for it.', 'native-aeo-pack' ),
    … …  
    24492468                }
    24502469                if ( $has( 'price' ) || $has( 'currency' ) ) {
    2451                         $lines[] = self::message( 'warning', __( 'A price needs its currency, and an app needs both: write the price as a number such as 120 or 120.50 (0 if it is free). Until then, nothing is written for it.', 'native-aeo-pack' ) );
     2470                        $lines[] = self::message( 'warning', __( 'A price needs a currency (an app needs both). Write the price as a number, such as 120 or 120.50, or 0 if free. Without them, nothing is written.', 'native-aeo-pack' ) );
    24522471                }
    24532472                if ( ! empty( $missing ) ) {
    … …  
    24612480                $written = array(
    24622481                        /* translators: %s: schema.org type of the business, such as Restaurant. */
    2463                         'ReviewedBusiness'       => __( 'Written as %s with your review, linked to this page. It is not linked to your Site Identity.', 'native-aeo-pack' ),
     2482                        'ReviewedBusiness'       => __( 'Written as %s with your review, linked to this page. It is not linked to your “Site Identity”.', 'native-aeo-pack' ),
    24642483                        'Person'                 => $no_rich,
    24652484                        'Service'                => $no_rich,
    … …  
    24722491                        'Recipe'                 => $plain,
    24732492                        /* translators: %s: the schema.org type Book. */
    2474                         'Book'                   => __( 'Written as %s, linked to this page. Google shows no rich result for a book on its own: as a review, it can show stars.', 'native-aeo-pack' ),
     2493                        'Book'                   => __( 'Written as %s and linked to this page. A book alone gets no Google rich result; as a review it can show stars.', 'native-aeo-pack' ),
    24752494                        'Movie'                  => $plain,
    24762495                        'MusicRecording'         => $no_rich,
    … …  
    24912510                                $result['parent']
    24922511                                        /* translators: %s: schema.org type of the business, such as Dentist. */
    2493                                         ? __( 'Written as %s, linked to this page and to your Site Identity as its parent organization.', 'native-aeo-pack' )
     2512                                        ? __( 'Written as %s, linked to this page and to your “Site Identity” as its parent organization.', 'native-aeo-pack' )
    24942513                                        : $plain,
    24952514                                $node_type
    … …  
    32513270                                'OutOfStock'                  => __( 'Out of stock', 'native-aeo-pack' ),
    32523271                                'PreOrder'                    => __( 'Pre-order', 'native-aeo-pack' ),
    3253                                 'identity'                    => __( 'At the Site Identity address', 'native-aeo-pack' ),
     3272                                'identity'                    => __( 'At the “Site Identity” address', 'native-aeo-pack' ),
    32543273                                'online'                      => __( 'Online', 'native-aeo-pack' ),
    32553274                                'other'                       => __( 'Another address', 'native-aeo-pack' ),
    … …  
    32763295                                'BrowserApplication'          => __( 'Browser', 'native-aeo-pack' ),
    32773296                                'CommunicationApplication'    => __( 'Communication', 'native-aeo-pack' ),
    3278                                 'HomeApplication'             => __( 'Home', 'native-aeo-pack' ),
     3297                                'HomeApplication'             => _x( 'Home', 'app category, schema.org HomeApplication', 'native-aeo-pack' ),
    32793298                                'FULL_TIME'                   => __( 'Full time', 'native-aeo-pack' ),
    32803299                                'PART_TIME'                   => __( 'Part time', 'native-aeo-pack' ),
    … …  
    33413360                                return __( 'Holidays and closures. Each one stops being written once its last day has passed.', 'native-aeo-pack' );
    33423361                        case 'venue':
    3343                                 return __( 'Left empty, the address, or the Site Identity name.', 'native-aeo-pack' );
     3362                                return __( 'Left empty, the address, or the “Site Identity” name.', 'native-aeo-pack' );
    33443363                        case 'prep_time':
    33453364                        case 'cook_time':
  • native-aeo-pack/trunk/includes/class-settings.php

    r3824861 r3830593  
    10371037         * The order here is the order the block is written to robots.txt.
    10381038         *
     1039         * 3.4.1 adds, after the ones there were, in alphabetical order: the training
     1040         * crawlers of the `__usage_ai-training` group of www.google.com/robots.txt
     1041         * that were missing (read on 27 Nov 2026), except ExaSearchBot, which Exa
     1042         * documents as a search index and goes with the search crawlers, and
     1043         * bedrockbot, which crawls on request of an AWS customer under a name with a
     1044         * suffix of its own; and the search and on-request crawlers that Anthropic,
     1045         * Mistral, Kimi and SB Intuitions document next to their training ones.
     1046         * Sources per name: recursos/bots-entrenamiento-2026-11-27/propuesta.md.
     1047         * `anthropic-ai`, `cohere-ai` and `Claude-Web` are no longer in their makers'
     1048         * pages, and they stay: saved selections hold them, and what leaves the
     1049         * catalogue leaves robots.txt without a word ({@see get_robots_ai_agents()}).
     1050         *
     1051         * A training crawler added here also goes to the sites that had every
     1052         * training crawler ticked: {@see extend_ai_agents_selection()}.
     1053         *
    10391054         * @return array<string,array<int,string>>
    10401055         */
    … …  
    10551070                                'ImagesiftBot',
    10561071                                'Omgilibot',
     1072                                'AI2Bot',
     1073                                'Ai2Bot-Dolma',
     1074                                'ChatGLM-Spider',
     1075                                'cohere-training-data-crawler',
     1076                                'Cotoyogi',
     1077                                'DeepSeekBot',
     1078                                'ElevenlabsCrawler',
     1079                                'FacebookBot',
     1080                                'FriendlyCrawler',
     1081                                'Grok',
     1082                                'HySpider',
     1083                                'ICC-Crawler',
     1084                                'img2dataset',
     1085                                'KimiBot',
     1086                                'LCC',
     1087                                'MistralAI-Training',
     1088                                'MistralBot',
     1089                                'MoonshotBot',
     1090                                'NagetBot',
     1091                                'omgili',
     1092                                'QwenBot',
     1093                                'recraft-image-dataset',
     1094                                'Reflectionbot',
     1095                                'SBIntuitionsBot',
     1096                                'Timpibot',
     1097                                'VelenPublicWebCrawler',
     1098                                'web-image-collection-research',
     1099                                'Webzio-extended',
     1100                                'YiBot',
    10571101                        ),
    10581102                        'search'   => array(
    … …  
    10621106                                'PerplexityBot',
    10631107                                'YouBot',
     1108                                'Claude-SearchBot',
     1109                                'Claude-User',
     1110                                'ExaSearchBot',
     1111                                'Kimi-SearchBot',
     1112                                'Kimi-User',
     1113                                'MistralAI-Index',
     1114                                'MistralAI-User',
     1115                                'SBIntuitions-SearchBot',
    10641116                        ),
    10651117                );
     1118        }
     1119
     1120        /**
     1121         * The training crawlers the catalogue had until 3.4.0. A saved selection that
     1122         * holds every one of them said "block every training crawler".
     1123         *
     1124         * @return array<int,string>
     1125         */
     1126        public static function ai_training_agents_until_340() {
     1127                return array(
     1128                        'GPTBot',
     1129                        'ClaudeBot',
     1130                        'anthropic-ai',
     1131                        'CCBot',
     1132                        'Google-Extended',
     1133                        'Amazonbot',
     1134                        'Applebot-Extended',
     1135                        'Bytespider',
     1136                        'meta-externalagent',
     1137                        'cohere-ai',
     1138                        'Diffbot',
     1139                        'ImagesiftBot',
     1140                        'Omgilibot',
     1141                );
     1142        }
     1143
     1144        /**
     1145         * On the update that grows the catalogue (3.4.1): a saved selection that held
     1146         * every training crawler of 3.4.0 gets the new training crawlers ticked too,
     1147         * so "block every training crawler" stays true. Any other selection is left as
     1148         * it is, and no search crawler is ever added: blocking one can drop the site
     1149         * from AI answers, and that is not for an update to decide.
     1150         *
     1151         * Called once, from native_aeo_pack_maybe_upgrade(): run again, it would tick
     1152         * once more what someone unticked on purpose. A site that never saved the
     1153         * selection has no key stored, already blocks the whole catalogue by default
     1154         * and is left alone. Writes through store(), not through the form sanitizer;
     1155         * the physical robots.txt follows on its own, through `update_option_`.
     1156         *
     1157         * @return bool Whether the selection changed.
     1158         */
     1159        public static function extend_ai_agents_selection() {
     1160                // Read raw, not through get_option(): what comes back from there has
     1161                // passed the `option_` filters (WPML String Translation translates keys
     1162                // of this option, and any plugin may change it for the request), and this
     1163                // writes the whole array back. Measured on 27 Nov 2026: read through a
     1164                // filter that switched llms.txt off, it stored llms.txt off.
     1165                global $wpdb;
     1166                $raw = $wpdb->get_var( $wpdb->prepare( "SELECT option_value FROM {$wpdb->options} WHERE option_name = %s", self::OPTION_KEY ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- one read per upgrade; the cached and filtered value is the one to avoid.
     1167                $stored = null === $raw ? null : maybe_unserialize( $raw );
     1168                if ( ! is_array( $stored ) || ! isset( $stored['noindex'] ) || ! is_array( $stored['noindex'] ) ) {
     1169                        return false;
     1170                }
     1171                if ( ! isset( $stored['noindex']['robots_ai_agents'] ) || ! is_array( $stored['noindex']['robots_ai_agents'] ) ) {
     1172                        return false;
     1173                }
     1174
     1175                $selected = array_values( $stored['noindex']['robots_ai_agents'] );
     1176                if ( array_diff( self::ai_training_agents_until_340(), $selected ) ) {
     1177                        return false;
     1178                }
     1179
     1180                $tokens = self::ai_agent_tokens();
     1181                $added  = array_values( array_diff( $tokens['training'], $selected ) );
     1182                if ( ! $added ) {
     1183                        return false;
     1184                }
     1185
     1186                $stored['noindex']['robots_ai_agents'] = array_merge( $selected, $added );
     1187                return self::store( $stored );
    10661188        }
    10671189
    … …  
    10821204                        'training' => array(
    10831205                                'label'       => __( 'Model training crawlers', 'native-aeo-pack' ),
    1084                                 'description' => __( 'Collect content to train AI models. Blocking them keeps your content out of training datasets. Some also decide whether AI assistants can use your pages in their answers, so blocking them can cost you citations.', 'native-aeo-pack' ),
     1206                                'description' => __( 'Collect content to train AI models. Blocking keeps your content out of training, but some also feed AI answers, so blocking can cost you citations.', 'native-aeo-pack' ),
    10851207                        ),
    10861208                        'search'   => array(
  • native-aeo-pack/trunk/includes/class-sitemap.php

    r3824861 r3830593  
    661661         */
    662662        public static function column_icon( $post_id ) {
    663                 $excluded = self::is_post_excluded( $post_id );
     663                $reason = self::post_exclusion_reason( $post_id );
    664664
    665665                return array(
    666666                        'icon'    => 'dashicons-networking',
    667                         'blocked' => $excluded,
    668                         'title'   => $excluded ? __( 'out of the sitemap', 'native-aeo-pack' ) : __( 'in the sitemap', 'native-aeo-pack' ),
     667                        'blocked' => '' !== $reason,
     668                        'title'   => '' !== $reason ? self::reason_title( $reason ) : __( 'in the sitemap', 'native-aeo-pack' ),
    669669                );
     670        }
     671
     672        /**
     673         * The title of the icon of an entry or a term kept out of the sitemap,
     674         * with the reason (3.4.1). Plain text, for a `title` attribute.
     675         *
     676         * @param string $reason A key of post_exclusion_reason() or term_exclusion_reason().
     677         * @return string
     678         */
     679        private static function reason_title( $reason ) {
     680                switch ( $reason ) {
     681                        case 'entry':
     682                                return __( 'out of the sitemap: ticked in this entry', 'native-aeo-pack' );
     683                        case 'term':
     684                                return __( 'out of the sitemap: ticked in this term', 'native-aeo-pack' );
     685                        case 'noindex':
     686                                return __( 'out of the sitemap: it is set to noindex', 'native-aeo-pack' );
     687                        case 'content_type':
     688                                return __( 'out of the sitemap: its content type is out', 'native-aeo-pack' );
     689                        case 'taxonomy':
     690                                return __( 'out of the sitemap: its taxonomy is out', 'native-aeo-pack' );
     691                        case 'id':
     692                                return __( 'out of the sitemap: its ID is on the “Sitemaps” tab', 'native-aeo-pack' );
     693                        case 'slug':
     694                                return __( 'out of the sitemap: its slug matches a pattern on the “Sitemaps” tab', 'native-aeo-pack' );
     695                        case 'canonical':
     696                                return __( 'out of the sitemap: its canonical URL is another address', 'native-aeo-pack' );
     697                }
     698                return __( 'out of the sitemap', 'native-aeo-pack' );
    670699        }
    671700
    … …  
    746775        /**
    747776         * Whether an entry is left out of the sitemap, for any of the reasons the
    748          * sitemap query applies: the per-entry flag, its content type excluded,
    749          * its ID or slug on the exclusion lists, or a noindex while the link with
    750          * the Indexing module is on. Mirrors `filter_posts_query()` so the column
    751          * icon says what the sitemap does, without running a query per row.
     777         * sitemap query applies (see post_exclusion_reason()).
    752778         *
    753779         * @param int $post_id Post ID.
    … …  
    755781         */
    756782        public static function is_post_excluded( $post_id ) {
     783                return '' !== self::post_exclusion_reason( $post_id );
     784        }
     785
     786        /**
     787         * Why an entry is left out of the sitemap, or '' when it is not: the
     788         * per-entry flag (`entry`), a noindex while the link with the Indexing
     789         * module is on (`noindex`), its content type excluded (`content_type`), its
     790         * ID or slug on the exclusion lists (`id`, `slug`) or a Canonical URL that
     791         * names another address (`canonical`). Mirrors `filter_posts_query()`, so
     792         * the column icon says what the sitemap does, without running a query per
     793         * row. The first reason that applies wins, in that order: the ones a user
     794         * set on the entry itself come first. Since 3.4.1 the icon names it, and
     795         * the `check-indexability` ability reads it too.
     796         *
     797         * @param int $post_id Post ID.
     798         * @return string
     799         */
     800        public static function post_exclusion_reason( $post_id ) {
    757801                $post_id = absint( $post_id );
    758802                if ( $post_id < 1 ) {
    759                         return false;
     803                        return '';
    760804                }
    761805
    762806                if ( '1' === (string) get_post_meta( $post_id, Native_AEO_Pack_Post_Meta::SITEMAP_EXCLUDED, true ) ) {
    763                         return true;
     807                        return 'entry';
     808                }
     809
     810                if ( (bool) Native_AEO_Pack_Settings::get( 'sitemap', 'exclude_seo_noindex', true )
     811                        && Native_AEO_Pack_Settings::is_module_enabled( 'noindex' )
     812                ) {
     813                        if ( ! class_exists( 'Native_AEO_Pack_Frontend_Robots', false ) ) {
     814                                require_once NATIVE_AEO_PACK_DIR . 'includes/class-frontend-robots.php';
     815                        }
     816                        if ( Native_AEO_Pack_Frontend_Robots::is_noindex( $post_id ) ) {
     817                                return 'noindex';
     818                        }
    764819                }
    765820
    … …  
    767822                $excluded_types = (array) Native_AEO_Pack_Settings::get( 'sitemap', 'excluded_post_types', array() );
    768823                if ( in_array( $post_type, $excluded_types, true ) ) {
    769                         return true;
     824                        return 'content_type';
    770825                }
    771826
    … …  
    774829                        $ids = array_map( 'absint', array_filter( array_map( 'trim', explode( "\n", $ids_setting ) ), 'is_numeric' ) );
    775830                        if ( in_array( $post_id, $ids, true ) ) {
    776                                 return true;
     831                                return 'id';
    777832                        }
    778833                }
    … …  
    786841                                $pattern = sanitize_title( $pattern );
    787842                                if ( '' !== $slug && '' !== $pattern && false !== strpos( $slug, $pattern ) ) {
    788                                         return true;
     843                                        return 'slug';
    789844                                }
    790                         }
    791                 }
    792 
    793                 if ( (bool) Native_AEO_Pack_Settings::get( 'sitemap', 'exclude_seo_noindex', true )
    794                         && Native_AEO_Pack_Settings::is_module_enabled( 'noindex' )
    795                 ) {
    796                         if ( ! class_exists( 'Native_AEO_Pack_Frontend_Robots', false ) ) {
    797                                 require_once NATIVE_AEO_PACK_DIR . 'includes/class-frontend-robots.php';
    798                         }
    799                         if ( Native_AEO_Pack_Frontend_Robots::is_noindex( $post_id ) ) {
    800                                 return true;
    801845                        }
    802846                }
    … …  
    806850                        $custom = (string) get_post_meta( $post_id, Native_AEO_Pack_Post_Meta::CANONICAL, true );
    807851                        if ( '' !== $custom && Native_AEO_Pack_Frontend_Canonical::points_elsewhere( $custom, get_permalink( $post_id ) ) ) {
    808                                 return true;
    809                         }
    810                 }
    811 
    812                 return false;
     852                                return 'canonical';
     853                        }
     854                }
     855
     856                return '';
    813857        }
    814858
    … …  
    12431287         */
    12441288        public static function is_term_excluded( $term_id, $taxonomy ) {
     1289                return '' !== self::term_exclusion_reason( $term_id, $taxonomy );
     1290        }
     1291
     1292        /**
     1293         * Why the archive of a term is left out of the sitemap, or '' when it is
     1294         * not: `term` (its own flag), `noindex`, `taxonomy`, `id`, `slug` or
     1295         * `canonical`, in that order, like post_exclusion_reason().
     1296         *
     1297         * @param int    $term_id  Term ID.
     1298         * @param string $taxonomy Taxonomy.
     1299         * @return string
     1300         */
     1301        public static function term_exclusion_reason( $term_id, $taxonomy ) {
    12451302                $term_id = absint( $term_id );
    12461303                if ( $term_id < 1 ) {
    1247                         return false;
     1304                        return '';
    12481305                }
    12491306
    12501307                if ( '1' === (string) get_term_meta( $term_id, Native_AEO_Pack_Term_Meta::SITEMAP_EXCLUDED, true ) ) {
    1251                         return true;
     1308                        return 'term';
     1309                }
     1310
     1311                if ( (bool) Native_AEO_Pack_Settings::get( 'sitemap', 'exclude_seo_noindex', true )
     1312                        && Native_AEO_Pack_Settings::is_module_enabled( 'noindex' )
     1313                ) {
     1314                        if ( ! class_exists( 'Native_AEO_Pack_Frontend_Robots', false ) ) {
     1315                                require_once NATIVE_AEO_PACK_DIR . 'includes/class-frontend-robots.php';
     1316                        }
     1317                        if ( Native_AEO_Pack_Frontend_Robots::is_term_noindex( $term_id, $taxonomy ) ) {
     1318                                return 'noindex';
     1319                        }
    12521320                }
    12531321
    12541322                if ( in_array( $taxonomy, (array) Native_AEO_Pack_Settings::get( 'sitemap', 'excluded_taxonomies', array() ), true ) ) {
    1255                         return true;
     1323                        return 'taxonomy';
    12561324                }
    12571325
    … …  
    12601328                        $ids = array_map( 'absint', array_filter( array_map( 'trim', explode( "\n", $ids_setting ) ), 'is_numeric' ) );
    12611329                        if ( in_array( $term_id, $ids, true ) ) {
    1262                                 return true;
     1330                                return 'id';
    12631331                        }
    12641332                }
    … …  
    12721340                                $pattern = sanitize_title( $pattern );
    12731341                                if ( '' !== $slug && '' !== $pattern && false !== strpos( $slug, $pattern ) ) {
    1274                                         return true;
     1342                                        return 'slug';
    12751343                                }
    1276                         }
    1277                 }
    1278 
    1279                 if ( (bool) Native_AEO_Pack_Settings::get( 'sitemap', 'exclude_seo_noindex', true )
    1280                         && Native_AEO_Pack_Settings::is_module_enabled( 'noindex' )
    1281                 ) {
    1282                         if ( ! class_exists( 'Native_AEO_Pack_Frontend_Robots', false ) ) {
    1283                                 require_once NATIVE_AEO_PACK_DIR . 'includes/class-frontend-robots.php';
    1284                         }
    1285                         if ( Native_AEO_Pack_Frontend_Robots::is_term_noindex( $term_id, $taxonomy ) ) {
    1286                                 return true;
    12871344                        }
    12881345                }
    … …  
    12931350                        $link   = '' !== $custom ? get_term_link( $term_id, $taxonomy ) : '';
    12941351                        if ( is_string( $link ) && '' !== $link && Native_AEO_Pack_Frontend_Canonical::points_elsewhere( $custom, $link ) ) {
    1295                                 return true;
    1296                         }
    1297                 }
    1298 
    1299                 return false;
     1352                                return 'canonical';
     1353                        }
     1354                }
     1355
     1356                return '';
    13001357        }
    13011358
    … …  
    13081365         */
    13091366        public static function term_column_icon( $term_id, $taxonomy ) {
    1310                 $excluded = self::is_term_excluded( $term_id, $taxonomy );
     1367                $reason = self::term_exclusion_reason( $term_id, $taxonomy );
    13111368
    13121369                return array(
    13131370                        'icon'    => 'dashicons-networking',
    1314                         'blocked' => $excluded,
    1315                         'title'   => $excluded ? __( 'out of the sitemap', 'native-aeo-pack' ) : __( 'in the sitemap', 'native-aeo-pack' ),
     1371                        'blocked' => '' !== $reason,
     1372                        'title'   => '' !== $reason ? self::reason_title( $reason ) : __( 'in the sitemap', 'native-aeo-pack' ),
    13161373                );
    13171374        }
  • native-aeo-pack/trunk/includes/class-static-sitemap-detector.php

    r3670061 r3830593  
    155155                                <p>
    156156                                        <strong><?php esc_html_e( 'Static sitemap file detected in site root.', 'native-aeo-pack' ); ?></strong>
    157                                         <?php esc_html_e( 'A physical file in your WordPress root is intercepting requests to the sitemap. Search engines never see the dynamic sitemap WordPress generates, so the configuration on this page has no effect on what they actually crawl.', 'native-aeo-pack' ); ?>
     157                                        <?php esc_html_e( 'A physical file in your WordPress root is answering sitemap requests, so search engines never see the WordPress sitemap and these settings have no effect.', 'native-aeo-pack' ); ?>
    158158                                </p>
    159159                                <table class="native-aeo-pack-static-files-table">
    … …  
    182182                                <?php if ( $can ) : ?>
    183183                                        <p class="description">
    184                                                 <?php esc_html_e( 'These files are usually leftovers from old SEO or sitemap plugins. Removing them restores the native WordPress sitemap immediately. If you prefer to delete the files manually via FTP, that works too.', 'native-aeo-pack' ); ?>
     184                                                <?php esc_html_e( 'Usually leftovers from old SEO or sitemap plugins. Deleting them restores the WordPress sitemap at once. You can also delete them over FTP.', 'native-aeo-pack' ); ?>
    185185                                        </p>
    186186                                <?php else : ?>
    187187                                        <p class="description">
    188                                                 <?php esc_html_e( 'These files are usually leftovers from old SEO or sitemap plugins, and removing them restores the native WordPress sitemap immediately.', 'native-aeo-pack' ); ?>
    189                                         </p>
    190                                         <p class="description">
    191                                                 <?php esc_html_e( 'Only a network administrator can delete them, because they sit in the root of the whole install and answer for every site in the network, not only for this one. Ask whoever administers the network, or have them removed over FTP.', 'native-aeo-pack' ); ?>
     188                                                <?php esc_html_e( 'Usually leftovers from old SEO or sitemap plugins. Only a network administrator can delete them, as they serve every site. Ask them, or use FTP.', 'native-aeo-pack' ); ?>
    192189                                        </p>
    193190                                <?php endif; ?>
  • native-aeo-pack/trunk/includes/class-term-editor.php

    r3824861 r3830593  
    174174                                        placeholder="<?php esc_attr_e( 'Leave empty to use the term name.', 'native-aeo-pack' ); ?>"
    175175                                />
     176                                <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-term-title', 'title', 'term' ); ?>
    176177                                <p class="description">
    177                                         <?php esc_html_e( 'Replaces the document <title>, og:title and twitter:title on this term archive. Max 120 characters.', 'native-aeo-pack' ); ?>
    178                                         <?php
    179                                         echo wp_kses(
    180                                                 sprintf(
    181                                                         /* translators: 1: %%title%%, 2: %%sep%%, 3: %%sitename%%, 4: %%page%%, 5: %%tagline%% (literal placeholders, do not translate them). */
    182                                                         esc_html__( 'Left empty, the archive follows the taxonomy or general template set on the Discover tab. You can also type a template for this term, with %1$s (the term name), %2$s, %3$s, %4$s and %5$s; anything else is used exactly as typed.', 'native-aeo-pack' ),
    183                                                         Native_AEO_Pack_Title_Template::tag_button( '%%title%%', 'native-aeo-pack-term-title' ),
    184                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sep%%', 'native-aeo-pack-term-title' ),
    185                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sitename%%', 'native-aeo-pack-term-title' ),
    186                                                         Native_AEO_Pack_Title_Template::tag_button( '%%page%%', 'native-aeo-pack-term-title' ),
    187                                                         Native_AEO_Pack_Title_Template::tag_button( '%%tagline%%', 'native-aeo-pack-term-title' )
    188                                                 ),
    189                                                 Native_AEO_Pack_Title_Template::tag_allowed_html()
    190                                         );
    191                                         ?>
     178                                        <?php echo wp_kses( __( 'Replaces the document <code>&lt;title&gt;</code>, <code>og:title</code> and <code>twitter:title</code> on this term archive. Max 120 characters.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
     179                                        <?php esc_html_e( 'Empty, it uses the taxonomy or general template.', 'native-aeo-pack' ); ?>
    192180                                </p>
    193181                        </td>
    … …  
    205193                                        placeholder="<?php esc_attr_e( 'Leave empty to use the term description.', 'native-aeo-pack' ); ?>"
    206194                                ><?php echo esc_textarea( $description ); ?></textarea>
     195                                <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-term-description', 'description', 'term' ); ?>
    207196                                <p class="description">
    208                                         <?php esc_html_e( 'Overrides the meta description and og:description on this term archive, or the description template set on the Discover tab. Max 200 characters.', 'native-aeo-pack' ); ?>
    209                                         <?php
    210                                         echo wp_kses(
    211                                                 sprintf(
    212                                                         /* translators: 1: %%excerpt%%, 2: %%title%%, 3: %%sitename%%, 4: %%tagline%% (literal placeholders, do not translate them). */
    213                                                         esc_html__( 'You can also type a template, with %1$s (the term description), %2$s (the term name), %3$s and %4$s; anything else is used exactly as typed.', 'native-aeo-pack' ),
    214                                                         Native_AEO_Pack_Title_Template::tag_button( '%%excerpt%%', 'native-aeo-pack-term-description' ),
    215                                                         Native_AEO_Pack_Title_Template::tag_button( '%%title%%', 'native-aeo-pack-term-description' ),
    216                                                         Native_AEO_Pack_Title_Template::tag_button( '%%sitename%%', 'native-aeo-pack-term-description' ),
    217                                                         Native_AEO_Pack_Title_Template::tag_button( '%%tagline%%', 'native-aeo-pack-term-description' )
    218                                                 ),
    219                                                 Native_AEO_Pack_Title_Template::tag_allowed_html()
    220                                         );
    221                                         ?>
     197                                        <?php echo wp_kses( __( 'Overrides the meta description and <code>og:description</code> on this term archive, or the description template set on the “Discover” tab. Max 200 characters.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    222198                                </p>
    223199                        </td>
    … …  
    235211                                        placeholder="<?php esc_attr_e( 'Leave empty to use the address of this archive.', 'native-aeo-pack' ); ?>"
    236212                                />
    237                                 <p class="description"><?php esc_html_e( 'Replaces rel=canonical and og:url on every page of this archive, page 2 and beyond included, so set it only when this archive duplicates another URL that should receive the ranking signals. Left empty, each page of the archive points to itself.', 'native-aeo-pack' ); ?> <?php esc_html_e( 'An archive whose Canonical URL names another address is left out of the sitemap.', 'native-aeo-pack' ); ?></p>
     213                                <p class="description"><?php echo wp_kses( __( 'Replaces <code>rel=canonical</code> and <code>og:url</code> on every page of this archive. Use it only if the archive duplicates another URL; it then leaves the sitemap.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?></p>
    238214                        </td>
    239215                </tr>
    … …  
    266242                                        <p class="description">
    267243                                                <?php
    268                                                 printf(
    269                                                         /* translators: %s: taxonomy label. */
    270                                                         esc_html__( 'All %s archives are set to noindex in the plugin settings. Unchecking this excludes this specific term from that rule.', 'native-aeo-pack' ),
    271                                                         esc_html( $tax_label )
     244                                                echo wp_kses(
     245                                                        sprintf(
     246                                                                /* translators: %s: taxonomy label. */
     247                                                                __( 'All %s archives are set to <code>noindex</code> in the plugin settings. Unchecking this excludes this specific term from that rule.', 'native-aeo-pack' ),
     248                                                                esc_html( $tax_label )
     249                                                        ),
     250                                                        array( 'code' => array() )
    272251                                                );
    273252                                                ?>
    … …  
    284263                                        <p class="description">
    285264                                                <?php
    286                                                 printf(
    287                                                         /* translators: %s: taxonomy label. */
    288                                                         esc_html__( 'All %s archives are set to nofollow in the plugin settings. Unchecking this excludes this specific term from that rule.', 'native-aeo-pack' ),
    289                                                         esc_html( $tax_label )
     265                                                echo wp_kses(
     266                                                        sprintf(
     267                                                                /* translators: %s: taxonomy label. */
     268                                                                __( 'All %s archives are set to <code>nofollow</code> in the plugin settings. Unchecking this excludes this specific term from that rule.', 'native-aeo-pack' ),
     269                                                                esc_html( $tax_label )
     270                                                        ),
     271                                                        array( 'code' => array() )
    290272                                                );
    291273                                                ?>
    … …  
    310292                                </p>
    311293                                <p class="description">
    312                                         <?php esc_html_e( 'Both leave indexing alone. noimageindex keeps its images out of image search. nosnippet: Google shows no snippet and does not use the text as direct input for AI Overviews and AI Mode. With Respect nosnippet on, Visibility also serves no Markdown version of the archive.', 'native-aeo-pack' ); ?>
     294                                        <?php echo wp_kses( __( 'Neither blocks indexing. <code>noimageindex</code> hides this archive\'s images from image search. <code>nosnippet</code> stops Google snippets and AI Overviews using the text; with “Respect nosnippet” on, no Markdown version is served.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    313295                                </p>
    314296
  • native-aeo-pack/trunk/includes/class-title-template.php

    r3824861 r3830593  
    230230
    231231        /**
    232          * A placeholder as it is named in a help text (3.3.0): the same `code`, as
    233          * a button that puts it where the cursor is in its field
    234          * (`assets/js/template-tags.js`). The field is `$field_id`, or the last one
    235          * focused of those that share its list (`data-nap-tags="$field_id"`).
    236          *
    237          * The help text is escaped with esc_html__() and the buttons are put in it
    238          * with sprintf(); the whole goes out through wp_kses() with this list, which
    239          * lets through those buttons and nothing else.
    240          *
    241          * @return array
    242          */
    243         public static function tag_allowed_html() {
    244                 return array(
    245                         'button' => array(
    246                                 'type'             => true,
    247                                 'class'            => true,
    248                                 'data-nap-tag'     => true,
    249                                 'data-nap-tag-for' => true,
    250                                 'title'            => true,
     232         * The placeholders offered under a field, in the order of its row (3.4.1).
     233         *
     234         * Terms and the front page leave out `%%taxonomy%%`, which on a term
     235         * archive is the term again and on the front page has nothing to name.
     236         * Descriptions leave out `%%page%%`, as the help texts did until 3.4.0;
     237         * the sanitizer still accepts it if typed.
     238         *
     239         * @param string $kind    'title' | 'description'.
     240         * @param string $context 'post' (entries and the Discover templates) | 'term' | 'home'.
     241         * @return array<int,string>
     242         */
     243        public static function row_tags( $kind = 'title', $context = 'post' ) {
     244                if ( 'description' === $kind ) {
     245                        $tags = array( 'excerpt', 'title', 'sep', 'sitename', 'tagline', 'taxonomy' );
     246                } else {
     247                        $tags = array( 'title', 'sep', 'sitename', 'page', 'tagline', 'taxonomy' );
     248                }
     249                if ( 'post' !== $context ) {
     250                        $tags = array_values( array_diff( $tags, array( 'taxonomy' ) ) );
     251                }
     252                return array_map(
     253                        static function ( $name ) {
     254                                return '%%' . $name . '%%';
     255                        },
     256                        $tags
     257                );
     258        }
     259
     260        /**
     261         * What a placeholder adds, for the tooltip of its button (3.4.1). The
     262         * button shows the placeholder itself, which is never translated, so the
     263         * row keeps its width in every language.
     264         *
     265         * @param string $tag     The placeholder, `%%title%%`.
     266         * @param string $context 'post' | 'term' | 'home'.
     267         * @return string
     268         */
     269        public static function tag_label( $tag, $context = 'post' ) {
     270                if ( 'term' === $context && '%%title%%' === $tag ) {
     271                        return __( 'Term name', 'native-aeo-pack' );
     272                }
     273                if ( 'term' === $context && '%%excerpt%%' === $tag ) {
     274                        return __( 'Term description', 'native-aeo-pack' );
     275                }
     276                switch ( $tag ) {
     277                        case '%%title%%':
     278                                return __( 'Title', 'native-aeo-pack' );
     279                        case '%%sep%%':
     280                                return __( 'Separator', 'native-aeo-pack' );
     281                        case '%%sitename%%':
     282                                return __( 'Site name', 'native-aeo-pack' );
     283                        case '%%page%%':
     284                                return __( 'Page number', 'native-aeo-pack' );
     285                        case '%%tagline%%':
     286                                return __( 'Tagline', 'native-aeo-pack' );
     287                        case '%%taxonomy%%':
     288                                return __( 'First category or term', 'native-aeo-pack' );
     289                        case '%%excerpt%%':
     290                                return __( 'Automatic description', 'native-aeo-pack' );
     291                }
     292                return '';
     293        }
     294
     295        /**
     296         * The row of buttons under a field that takes placeholders (3.4.1), laid
     297         * out like "Available tags" on Settings > Permalinks. A click puts the
     298         * placeholder where the cursor is in `$field_id`
     299         * (`assets/js/template-tags.js`). Until 3.4.0 the placeholders were
     300         * buttons inside the help text, and nothing said they could be clicked.
     301         *
     302         * Hidden without JavaScript (`hide-if-no-js`), where the buttons would do
     303         * nothing. With `$on_focus` the row shows once its field has been used:
     304         * the Discover tab has one field per content type and per taxonomy, and a
     305         * row under each of them at rest would fill the screen. The field and the
     306         * row then go inside a `.native-aeo-pack-tpl-field`.
     307         *
     308         * @param string $field_id Id of the field the buttons write into.
     309         * @param string $kind     'title' | 'description'.
     310         * @param string $context  'post' | 'term' | 'home'.
     311         * @param bool   $on_focus Show the row only once the field is used.
     312         */
     313        public static function print_tags_row( $field_id, $kind = 'title', $context = 'post', $on_focus = false ) {
     314                $buttons = '';
     315                foreach ( self::row_tags( $kind, $context ) as $tag ) {
     316                        $buttons .= sprintf(
     317                                '<button type="button" class="button button-secondary button-small native-aeo-pack-tag" data-nap-tag="%1$s" data-nap-tag-for="%2$s" title="%3$s">%4$s</button>',
     318                                esc_attr( $tag ),
     319                                esc_attr( $field_id ),
     320                                esc_attr( self::tag_label( $tag, $context ) ),
     321                                esc_html( $tag )
     322                        );
     323                }
     324
     325                echo wp_kses(
     326                        sprintf(
     327                                '<span class="native-aeo-pack-tags hide-if-no-js%1$s" role="group" aria-labelledby="%2$s"><span class="native-aeo-pack-tags-legend" id="%2$s">%3$s</span><span class="native-aeo-pack-tags-list">%4$s</span></span>',
     328                                $on_focus ? ' native-aeo-pack-tags--focus' : '',
     329                                esc_attr( $field_id . '-tags' ),
     330                                esc_html__( 'Add to the field:', 'native-aeo-pack' ),
     331                                $buttons
    251332                        ),
    252                         'code'   => array(),
    253                 );
    254         }
    255 
    256         /**
    257          * The button of a placeholder (see tag_allowed_html() for how it is printed).
    258          *
    259          * @param string $tag      The placeholder, `%%title%%`.
    260          * @param string $field_id Id of the field it goes into.
    261          * @return string HTML, escaped.
    262          */
    263         public static function tag_button( $tag, $field_id ) {
    264                 return sprintf(
    265                         '<button type="button" class="native-aeo-pack-tag" data-nap-tag="%1$s" data-nap-tag-for="%2$s" title="%3$s"><code>%4$s</code></button>',
    266                         esc_attr( $tag ),
    267                         esc_attr( $field_id ),
    268                         esc_attr__( 'Insert into the field', 'native-aeo-pack' ),
    269                         esc_html( $tag )
     333                        array(
     334                                'span'   => array(
     335                                        'class'           => true,
     336                                        'id'              => true,
     337                                        'role'            => true,
     338                                        'aria-labelledby' => true,
     339                                ),
     340                                'button' => array(
     341                                        'type'             => true,
     342                                        'class'            => true,
     343                                        'data-nap-tag'     => true,
     344                                        'data-nap-tag-for' => true,
     345                                        'title'            => true,
     346                                ),
     347                        )
    270348                );
    271349        }
  • native-aeo-pack/trunk/includes/class-user-profile.php

    r3791627 r3830593  
    301301                </h2>
    302302                <p class="description">
    303                         <?php esc_html_e( 'Added to the Person structured data of your author page as jobTitle, knowsAbout and hasCredential. Keep them factual: what you do and the topics you actually write about. Google asks that structured data describe what readers can see, so show them on the page with the Author details block or the [visibility_author_details] shortcode. Leave any field empty to omit it.', 'native-aeo-pack' ); ?>
     303                        <?php echo wp_kses( __( 'Added to your author page\'s <code>Person</code> data as <code>jobTitle</code>, <code>knowsAbout</code> and <code>hasCredential</code>. Google expects readers to see them too: use the “Author details” block or <code>[visibility_author_details]</code>.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    304304                </p>
    305305                <?php
    … …  
    311311                                <p>
    312312                                        <strong><?php esc_html_e( 'Not seen on the page in the last 30 days.', 'native-aeo-pack' ); ?></strong>
    313                                         <?php esc_html_e( 'Visibility has not seen the Author details block or shortcode show these fields on the author archive or on the profile page. Google asks that structured data describe what readers can see: place the block on either page.', 'native-aeo-pack' ); ?>
     313                                        <?php esc_html_e( 'Google expects readers to see these fields: add the “Author details” block to your author archive or profile page.', 'native-aeo-pack' ); ?>
    314314                                        <?php if ( current_user_can( 'manage_options' ) ) : ?>
    315                                                 <?php esc_html_e( 'Or turn on Author details on profile pages in Visibility, Discover.', 'native-aeo-pack' ); ?>
     315                                                <?php esc_html_e( 'Or turn on “Author details on profile pages” in “Visibility, Discover”.', 'native-aeo-pack' ); ?>
    316316                                        <?php endif; ?>
    317317                                </p>
    … …  
    372372                                                <p class="description">
    373373                                                        <?php
    374                                                         printf(
    375                                                                 /* translators: %d: maximum number of entries kept. */
    376                                                                 esc_html__( 'One credential per line, up to %d: a degree, certification or licence. Each becomes an EducationalOccupationalCredential node.', 'native-aeo-pack' ),
    377                                                                 (int) self::MAX_EXPERTISE_ENTRIES
     374                                                        echo wp_kses(
     375                                                                sprintf(
     376                                                                        /* translators: %d: maximum number of entries kept. */
     377                                                                        __( 'One credential per line, up to %d: a degree, certification or licence. Each becomes an <code>EducationalOccupationalCredential</code> node.', 'native-aeo-pack' ),
     378                                                                        (int) self::MAX_EXPERTISE_ENTRIES
     379                                                                ),
     380                                                                array( 'code' => array() )
    378381                                                        );
    379382                                                        ?>
    … …  
    389392                </h2>
    390393                <p class="description">
    391                         <?php esc_html_e( 'Added as sameAs to the Person structured data of your author page, which is your profile page if you have picked one. Full URLs only. Leave empty the networks you do not use — only filled fields are included. The WordPress.org profile is worth filling in if you contribute to the project: it exposes your contributor résumé, which is a verifiable credential a generic social profile is not. The Website field under Contact Info goes in too, unless it is an address of this site.', 'native-aeo-pack' ); ?>
     394                        <?php echo wp_kses( __( 'Added as <code>sameAs</code> to your author page\'s <code>Person</code> data. Full URLs only; empty ones are skipped. A WordPress.org profile adds a verifiable contributor résumé.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    392395                </p>
    393396                <table class="form-table" role="presentation">
    … …  
    789792                </h2>
    790793                <p class="description">
    791                         <?php esc_html_e( 'Pick the page that presents you, such as your About page. In the structured data, it becomes the address of you as a person and as the author of your entries, and Visibility describes it as a ProfilePage whose main entity is you. It has to be a published page that you can edit, and a page can be the profile of one user only. Leave it on None to use your author archive.', 'native-aeo-pack' ); ?>
     794                        <?php echo wp_kses( __( 'The page that presents you, such as About. It becomes your address in structured data, as a <code>ProfilePage</code>. “None” uses your author archive.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?>
    792795                </p>
    793796                <table class="form-table" role="presentation">
  • native-aeo-pack/trunk/native-aeo-pack.php

    r3827553 r3830593  
    44 * Plugin URI:        https://visibility.quest
    55 * Description:       Lightweight SEO for WordPress: meta tags, Open Graph, JSON-LD schema, robots directives, redirects and native sitemap control. No bloat, no Pro upsell, no tracking — the clean metadata search engines and AI assistants read.
    6  * Version:           3.4.0
     6 * Version:           3.4.1
    77 * Requires at least: 6.1
    88 * Requires PHP:      7.4
    … …  
    2121}
    2222
    23 define( 'NATIVE_AEO_PACK_VERSION', '3.4.0' );
     23define( 'NATIVE_AEO_PACK_VERSION', '3.4.1' );
    2424define( 'NATIVE_AEO_PACK_SLUG', 'native-aeo-pack' );
    2525define( 'NATIVE_AEO_PACK_FILE', __FILE__ );
    … …  
    759759        }
    760760
     761        // The catalogue of AI crawlers grew in 3.4.1: a saved selection that held
     762        // every training crawler gets the new ones as well. Also with no version
     763        // stored, as sites coming from 2.7.0 or earlier have it (the robots.txt
     764        // editor is from 1.7.0); on a fresh install nothing is saved yet and it
     765        // does nothing. Once only: run again, it would tick what someone unticked.
     766        if ( ( '' === $from || version_compare( $from, '3.4.1', '<' ) ) && is_callable( array( 'Native_AEO_Pack_Settings', 'extend_ai_agents_selection' ) ) ) {
     767                Native_AEO_Pack_Settings::extend_ai_agents_selection();
     768        }
     769
    761770        // When the dates of the Author details seen on the page began to be kept
    762771        // (3.2.4): the profile waits a whole period from here before saying the
  • native-aeo-pack/trunk/readme.txt

    r3828380 r3830593  
    33Tags: ai seo, redirects, noindex, schema, sitemap
    44Requires at least: 6.1
    5 Tested up to: 7.1
     5Tested up to: 7.2
    66Requires PHP: 7.4
    7 Stable tag: 3.4.0
     7Stable tag: 3.4.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    1313== Description ==
    1414
    15 **Visibility** is the SEO essentials in one light plugin: meta tags, canonical URLs, Open Graph, schema, robots rules, redirects, a robots.txt editor, llms.txt, Markdown for AI agents and control of the native XML sitemap, in about 690 KB.
     15**Visibility** is the SEO essentials in one light plugin: meta tags, canonical URLs, Open Graph, schema, robots rules, redirects, a `robots.txt` editor, `llms.txt`, Markdown for AI agents and control of the native XML sitemap, in about 690 KB.
    1616
    1717* **Free, all of it.** No Pro version, no upsell banners, no account.
    … …  
    1919* **Light.** Built on WordPress core APIs, with no database tables of its own and no cron jobs.
    2020* **Easy to switch to.** One-click import from Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework, Slim SEO and SureRank.
    21 * **Ready for AI search (AEO and GEO).** Clean metadata, llms.txt and a Markdown version of every page, for ChatGPT, Perplexity, Gemini and other AI assistants to read and cite.
     21* **Ready for AI search (AEO and GEO).** Clean metadata, `llms.txt` and a Markdown version of every page, for ChatGPT, Perplexity, Gemini and other AI assistants to read and cite.
    2222
    2323= Four modules, switch on only what you need =
    … …  
    2828* Canonical URLs on entries and on every listing.
    2929* Open Graph and Twitter Cards.
    30 * JSON-LD schema: Article, BreadcrumbList, Person, ProfilePage, FAQPage and Site Identity (Organization, LocalBusiness or Person). Choose the type per content type, or None to leave it to another plugin.
     30* JSON-LD schema: `Article`, `BreadcrumbList`, `Person`, `ProfilePage`, `FAQPage` and Site Identity (`Organization`, `LocalBusiness` or `Person`). Choose the type per content type, or None to leave it to another plugin.
    3131* What each entry is about, in its own Schema tab: a local business, a product, a service, an event, a recipe, a book, a course, a job posting, a how-to and ten more types, with an optional review. A template per content type fills it from the entry, a custom field or the Site Identity, and it is written only with what Google requires.
    3232* Author details (job title, topics and credentials), shown with the Author details block or the `[visibility_author_details]` shortcode. Each author can pick a page as their profile page.
    33 * AI discovery: llms.txt, llms-full.txt, a Markdown version of each page and a robots.txt editor with AI crawler rules.
    34 * Respect nosnippet: content set to nosnippet stays out of the llms.txt summaries, llms-full.txt, Markdown and FAQPage.
     33* AI discovery: `llms.txt`, `llms-full.txt`, a Markdown version of each page and a `robots.txt` editor with AI crawler rules.
     34* Respect nosnippet: content set to `nosnippet` stays out of the `llms.txt` summaries, `llms-full.txt`, Markdown and `FAQPage`.
    3535* A filter for content that has not been updated in a while.
    3636
    3737**Indexing: noindex and clean URLs**
    3838
    39 * noindex, nofollow, noimageindex and nosnippet, in bulk by content type and taxonomy or one by one.
     39* `noindex`, `nofollow`, `noimageindex` and `nosnippet`, in bulk by content type and taxonomy or one by one.
    4040* Rules for search results, 404, date, paginated, attachment and author archives, and for RSS feeds.
    4141* Keep part of a page out of Google's snippets with `data-nosnippet`, from the block editor or the classic editor.
    … …  
    4848* Exclude post types, taxonomies, users, posts and terms. Noindexed content stays out automatically, and so does content whose canonical URL points to another address.
    4949* Add URLs of pages served outside WordPress.
    50 * lastmod dates, and 301 redirects from the sitemap URLs of your previous SEO plugin.
     50* `lastmod` dates, and 301 redirects from the sitemap URLs of your previous SEO plugin.
    5151* Keeps `/wp-sitemap.xml` answering 200 on a site with no blog posts, which older WordPress versions got wrong.
    5252
    5353**Redirects: 301, 302, 307 and 410**
    5454
    55 * Managed from the admin: no .htaccess editing, no custom table, no 404 log.
     55* Managed from the admin: no `.htaccess` editing, no custom table, no 404 log.
    5656* CSV import and export.
    5757* A suggested redirect when you delete a post.
    … …  
    6363* Per-post controls live in the Visibility box below the content, in the block editor and in the classic editor, with a live preview of your Google result, your social card and an AI answer.
    6464* The **Tools** tab groups the importers and exports your configuration as JSON for another site.
    65 * AI agents can audit and edit the SEO of your site through the WordPress Abilities API, with the WordPress MCP Adapter, Novamira or any other client: an SEO inventory, why an address is or is not indexed, the text of entries, the SEO of many entries at once, redirects and noindex rules. EMCP Tools exposes the same fields over MCP while you edit a page in Elementor.
     65* AI agents can audit and edit the SEO of your site through the WordPress Abilities API, with the WordPress MCP Adapter, Novamira or any other client: an SEO inventory, why an address is or is not indexed, the text of entries, the SEO of many entries at once, redirects and `noindex` rules. EMCP Tools exposes the same fields over MCP while you edit a page in Elementor.
    6666* Multilingual: works with WPML and Polylang, with a folder or a domain per language.
    6767* Visibility replaces a full SEO plugin instead of running next to one, and warns you if another one is active.
    … …  
    8585== External services ==
    8686
    87 This plugin connects to **Gravatar** (operated by Automattic Inc.) to check whether an author has a public avatar, so it can be used in Open Graph (`og:image`) and in Person schema (`image`).
     87This plugin connects to **Gravatar** (operated by Automattic Inc.) to check whether an author has a public avatar, so it can be used in Open Graph (`og:image`) and in `Person` schema (`image`).
    8888
    8989* **What is sent:** an MD5 hash of the author email, in a HEAD request to `https://www.gravatar.com/avatar/{hash}?d=404`. The email address itself is never sent.
    90 * **When:** on a single post or page with Open Graph on and no other image available (social image, featured image, WooCommerce gallery image or image in the content), and on an author archive with Person schema on.
     90* **When:** on a single post or page with Open Graph on and no other image available (social image, featured image, WooCommerce gallery image or image in the content), and on an author archive with `Person` schema on.
    9191* **How often:** the result is cached for 24 hours, so later page loads do not contact Gravatar again.
    9292
    … …  
    180180
    181181* **Freshness:** a filter and a Last updated column for content that has gone stale.
    182 * **Authorship:** author details in Person schema and on the page.
    183 * **Questions and answers:** FAQPage from the Q&A you have published.
     182* **Authorship:** author details in `Person` schema and on the page.
     183* **Questions and answers:** `FAQPage` from the Q&A you have published.
    184184
    185185No plugin can promise you a citation.
    … …  
    190190
    191191* Site Identity schema: who is behind the site.
    192 * llms.txt and llms-full.txt: a Markdown index of your content.
     192* `llms.txt` and `llms-full.txt`: a Markdown index of your content.
    193193* A Markdown version of every page at its `.md` URL.
    194 * A robots.txt editor to allow or block AI crawlers by name.
     194* A `robots.txt` editor to allow or block AI crawlers by name.
    195195
    196196The companion plugin VigIA shows which AI crawlers actually visit.
    … …  
    234234Both files are kept in `wp-content/uploads/native-aeo-pack/`, one per language, and rebuilt on the first request after a change. With the physical file option on, your server has to pass `/llms.txt` to WordPress when the file is missing.
    235235
    236 Keep expectations realistic: llms.txt is a proposed convention, not a standard. Google has said it ignores it and no major AI vendor has confirmed support.
     236Keep expectations realistic: `llms.txt` is a proposed convention, not a standard. Google has said it ignores it and no major AI vendor has confirmed support.
    237237
    238238= Does Visibility add schema markup and structured data? =
    … …  
    240240Yes, as a single JSON-LD graph, with per-post and per-term overrides:
    241241
    242 * Article, with the type chosen per content type (BlogPosting, NewsArticle and others), or a page type such as FAQPage or QAPage.
     242* `Article`, with the type chosen per content type (`BlogPosting`, `NewsArticle` and others), or a page type such as `FAQPage` or `QAPage`.
    243243* What each entry is about: a local business (yours or one you review), a person, a service, a product, an event, a software app, a course, a job posting, a recipe, a book, a film, music, a podcast episode, a video, a dataset, a fact check, a forum thread or a how-to.
    244 * BreadcrumbList.
    245 * Person and ProfilePage for authors.
    246 * FAQPage from Details and Accordion blocks.
    247 * WebSite on the home page, with the site name.
    248 * Site Identity (Organization, LocalBusiness or Person).
    249 
    250 On WooCommerce products, WooCommerce writes the Product and Visibility adds nothing about them.
     244* `BreadcrumbList`.
     245* `Person` and `ProfilePage` for authors.
     246* `FAQPage` from Details and Accordion blocks.
     247* `WebSite` on the home page, with the site name.
     248* Site Identity (`Organization`, `LocalBusiness` or `Person`).
     249
     250On WooCommerce products, WooCommerce writes the `Product` and Visibility adds nothing about them.
    251251
    252252= How do I add a recipe, an event or a product to an entry? =
    … …  
    265265Yes. In **Discover > Site Identity** pick **Local business** as the entity type:
    266266
    267 * Business type: Restaurant, Dentist, Store and many more, or the generic LocalBusiness.
     267* Business type: `Restaurant`, `Dentist`, `Store` and many more, or the generic `LocalBusiness`.
    268268* Address and coordinates.
    269269* Phone and email.
    … …  
    301301`
    302302
    303 Google asks for each location to be a LocalBusiness of its own, with the address of its page in `url`.
     303Google asks for each location to be a `LocalBusiness` of its own, with the address of its page in `url`.
    304304
    305305= How do I tell Google the name of my site? =
    … …  
    310310* **Alternate names**: an acronym or a shorter name, one per line.
    311311
    312 They go in the WebSite markup of the home page, which is where Google reads the site name from, and in `og:site_name`. The WebSite is written with Site Identity off too.
     312They go in the `WebSite` markup of the home page, which is where Google reads the site name from, and in `og:site_name`. The `WebSite` is written with Site Identity off too.
    313313
    314314Google decides which name to show. Keep the site title, or the title of your home page, consistent with it.
    … …  
    328328* **One entry:** pick **None** in its Schema type field.
    329329
    330 None adds no Article, BreadcrumbList or FAQPage to that content. Site Identity is a separate setting and keeps working. Developers can also use the `native_aeo_pack_schema_graph` filter.
     330None adds no `Article`, `BreadcrumbList` or `FAQPage` to that content. Site Identity is a separate setting and keeps working. Developers can also use the `native_aeo_pack_schema_graph` filter.
    331331
    332332= Does Visibility mark up author pages as ProfilePage? =
    333333
    334 Yes. The author archive of anyone with at least one published post gets a ProfilePage with their Person: job title, topics, credentials and profiles.
    335 
    336 An author can also pick a page, such as About me, as their profile page, and that page becomes their ProfilePage. The Author details block or the `[visibility_author_details]` shortcode shows those fields on the page, or **Author details on profile pages**, in Discover, adds them at the end of it.
     334Yes. The author archive of anyone with at least one published post gets a `ProfilePage` with their `Person`: job title, topics, credentials and profiles.
     335
     336An author can also pick a page, such as About me, as their profile page, and that page becomes their `ProfilePage`. The Author details block or the `[visibility_author_details]` shortcode shows those fields on the page, or **Author details on profile pages**, in Discover, adds them at the end of it.
    337337
    338338An author is anyone who can write posts or pages, or has a published post.
    … …  
    380380* Content whose Canonical URL points to another address stays out too. Google asks not to list one address in the sitemap and declare another as canonical.
    381381* Add URLs of pages that are not WordPress content.
    382 * Set lastmod dates and the number of URLs per sitemap.
     382* Set `lastmod` dates and the number of URLs per sitemap.
    383383* The sitemap URLs of your previous SEO plugin (`sitemap.xml`, `post-sitemap.xml`) are 301-redirected to the native one.
    384384
    … …  
    422422Yes. The Visibility box shows below the content, in the block editor and on the classic editing screen a builder uses when it replaces the block editor.
    423423
    424 With Elementor, the Markdown version of a page is built from the Elementor layout, so AI agents get the real text. With Divi, Avada, WPBakery and other builders that keep the text in shortcodes or in blocks of their own, llms-full.txt carries it too.
     424With Elementor, the Markdown version of a page is built from the Elementor layout, so AI agents get the real text. With Divi, Avada, WPBakery and other builders that keep the text in shortcodes or in blocks of their own, `llms-full.txt` carries it too.
    425425
    426426= Does Visibility work with WooCommerce? =
    … …  
    430430* Products, categories, tags and attributes get titles, descriptions, social tags, schema and robots rules like any other content.
    431431* The product gallery image is a fallback for `og:image`.
    432 * llms.txt is WooCommerce-aware.
     432* `llms.txt` is WooCommerce-aware.
    433433* Cleaner product and category URLs: see "Can I clean up my WooCommerce URLs?".
    434434
    435 It does not add Product schema: WooCommerce already does, with price, stock and reviews.
     435It does not add `Product` schema: WooCommerce already does, with price, stock and reviews.
    436436
    437437= Does it work with custom post types and custom taxonomies? =
    … …  
    465465= How do I set noindex on a single post? =
    466466
    467 Open the **Visibility** box below the content and tick noindex. In the block editor, the eye button in the top bar shows and hides it.
     467Open the **Visibility** box below the content and tick `noindex`. In the block editor, the eye button in the top bar shows and hides it.
    468468
    469469You can also use Quick Edit or Bulk Actions in the post list, and in the category, tag and taxonomy lists.
    … …  
    474474* **Classic editor:** use the button of the same name in the Visual toolbar, or `nosnippet` in the Text tab.
    475475
    476 Visibility also leaves that text out of the descriptions and summaries it generates. The Markdown version and llms-full.txt keep the whole page.
     476Visibility also leaves that text out of the descriptions and summaries it generates. The Markdown version and `llms-full.txt` keep the whole page.
    477477
    478478The mark on a Group stops applying if you deactivate Visibility. The one on words stays in the content.
    … …  
    480480= What does Respect nosnippet do? =
    481481
    482 nosnippet tells Google to show no snippet and not to use the text in AI Overviews and AI Mode. Respect nosnippet (Discover tab) applies the same to the files Visibility generates. With it on, an entry set to nosnippet:
    483 
    484 * is listed in llms.txt by title and link only,
    485 * has no text in llms-full.txt,
     482`nosnippet` tells Google to show no snippet and not to use the text in AI Overviews and AI Mode. Respect nosnippet (Discover tab) applies the same to the files Visibility generates. With it on, an entry set to `nosnippet`:
     483
     484* is listed in `llms.txt` by title and link only,
     485* has no text in `llms-full.txt`,
    486486* has no Markdown version,
    487 * gets no FAQPage.
     487* gets no `FAQPage`.
    488488
    489489It is on in new installs. On an update it turns on only if that changes nothing your site already serves.
    … …  
    512512
    513513* The Meta title, Meta description and social title and description of each entry are translated with the entry.
    514 * Robots, sitemap and llms.txt choices are the same in every language: set one on any translation and it applies to all of them. The Canonical URL is not shared, so each translation keeps its own address.
     514* Robots, sitemap and `llms.txt` choices are the same in every language: set one on any translation and it applies to all of them. The Canonical URL is not shared, so each translation keeps its own address.
    515515* With WPML, choices that already differ between languages stay as they are until you change one. Polylang makes them equal whenever an entry is saved.
    516516* Title templates, the home page description and the Site Identity texts are translated in WPML > String Translation or Polylang > Languages > Translations. Save the Visibility settings once so they show up there.
    517 * The site description in llms.txt and in the schema is the Site Identity description or, if that is empty, the WordPress tagline. Translate the one you use.
     517* The site description in `llms.txt` and in the schema is the Site Identity description or, if that is empty, the WordPress tagline. Translate the one you use.
    518518* Categories and tags: fill in their SEO fields on each translation.
    519 * Each language gets its own `og:locale`, llms.txt, llms-full.txt and Markdown versions.
     519* Each language gets its own `og:locale`, `llms.txt`, `llms-full.txt` and Markdown versions.
    520520* A redirect applies to the exact path written in it. With a folder per language, add one per language (`/old-page` and `/en/old-page`).
    521521
    … …  
    524524* A redirect holds for every domain, because it matches a path. A relative target (`/new-page/`) goes to the domain asked for. It cannot send the same old path to a different page in each language.
    525525* Leave Site Identity > URL empty: each domain then uses its own.
    526 * Use the virtual llms.txt and robots.txt. A physical file in the site root is the same for every domain, so it lists the addresses of one of them.
     526* Use the virtual `llms.txt` and `robots.txt`. A physical file in the site root is the same for every domain, so it lists the addresses of one of them.
    527527* A physical `.txt` file with broken accents is sent by your server without a charset: set UTF-8 for `.txt` files in the server, or use the virtual files, which Visibility always sends as UTF-8.
    528528
    529529= Does the sitemap include every language? =
    530530
    531 * WPML with a folder per language: the sitemap of the default language lists the sub-sitemaps of every language, so the one in robots.txt covers them all.
    532 * Polylang does the same itself. Exclusions, noindex and lastmod work in each language.
    533 * One domain per language: each domain has its own sitemap and robots.txt. Submit each one in Search Console.
    534 * There is no hreflang in the sitemap. WPML and Polylang add it to every page, and Google needs only one method.
     531* WPML with a folder per language: the sitemap of the default language lists the sub-sitemaps of every language, so the one in `robots.txt` covers them all.
     532* Polylang does the same itself. Exclusions, `noindex` and `lastmod` work in each language.
     533* One domain per language: each domain has its own sitemap and `robots.txt`. Submit each one in Search Console.
     534* There is no `hreflang` in the sitemap. WPML and Polylang add it to every page, and Google needs only one method.
    535535
    536536= Where does Visibility store per-post overrides? =
    … …  
    566566* A page or a term that already uses a path keeps it.
    567567* Removing a base adds rewrite rules for every term. The settings screen tells you how many before you save.
    568 * If you use Premmerce Permalink Manager, import its structure from the Tools tab (everything except the URL ending, such as .html), check your URLs and deactivate it.
     568* If you use Premmerce Permalink Manager, import its structure from the Tools tab (everything except the URL ending, such as `.html`), check your URLs and deactivate it.
    569569
    570570= Does Visibility generate FAQ structured data? =
    … …  
    586586Change what is printed, with eight filters:
    587587
    588 * `native_aeo_pack_schema_graph` (`$graph`, `$context`, `$object`): the JSON-LD nodes before they are printed. `$context` is `article`, `person`, `identity` or `website` (the WebSite node on its own, on the home page of a site that prints its identity on another page or has it off). Return an empty array to print nothing.
     588* `native_aeo_pack_schema_graph` (`$graph`, `$context`, `$object`): the JSON-LD nodes before they are printed. `$context` is `article`, `person`, `identity` or `website` (the `WebSite` node on its own, on the home page of a site that prints its identity on another page or has it off). Return an empty array to print nothing.
    589589* `native_aeo_pack_identity_business_types` (`$types`): the schema.org types offered for a local business identity.
    590590* `native_aeo_pack_identity_food_types` (`$types`): the business types that take a cuisine and a menu.
    … …  
    593593* `native_aeo_pack_meta_description` (`$description`): the final description, used in the meta tag, Open Graph, the Twitter card and the schema.
    594594* `native_aeo_pack_og_image` (`$image`, `$post`): the image chosen for a single entry.
    595 * `native_aeo_pack_schema_faq_pairs` (`$pairs`, `$post`): the question and answer pairs before they become FAQPage. Return an empty array to skip it.
     595* `native_aeo_pack_schema_faq_pairs` (`$pairs`, `$post`): the question and answer pairs before they become `FAQPage`. Return an empty array to skip it.
    596596
    597597React to what an AI agent changed through the abilities, with these actions:
    … …  
    617617== Changelog ==
    618618
     619= 3.4.1 =
     620Clearer help texts, template tags as buttons, sponsored and ugc links in both editors, 55 AI crawlers to block, slug redirects moved to Visibility in bulk, and fixes for WPML and for plugins switched off for a while.
     621
     622* Improved: Help texts rewritten so each one says first what happens, at about half the length. Technical terms appear as code, and the buttons, tabs and settings they name go in quotes, so translations can name them properly.
     623* Improved: Template tags such as `%%title%%` and `%%sep%%` appear as a row of buttons under each field that takes them, like the available tags of the Permalinks screen. Hover a button to see what it adds. Under the fields per content type and per taxonomy, the row shows when you click into the field.
     624* Improved: The front page description override offers its template tags too, with `%%tagline%%`, what it uses when empty, as placeholder.
     625* Improved: The notice shown while WordPress has its sitemap switched off says that nothing on the Sitemaps tab applies until it is back on.
     626* Improved: Links can be marked as `sponsored` or `ugc`. In the classic editor, two checkboxes sit next to “Mark as nofollow”. In the block editor, a button next to the link button sets them, and they stay when the link is edited again. Each one adds or removes only its own `rel` value.
     627* Improved: The sitemap icon of the entry and term lists says why one is out of the sitemap: ticked by hand, set to noindex, its content type or taxonomy left out, its ID or slug on the “Sitemaps” tab, or a canonical URL that is another address.
     628* Improved: On the “Redirects” tab, the redirects WordPress keeps when a slug changes can be moved to Visibility in bulk, or one by one with “Move to Visibility”, to edit them as your own. The “Create 301…” and “Create 410” buttons of the suggestions say what they do on hover.
     629* Improved: The AI crawlers you can block in robots.txt go from 18 to 55: the training crawlers Google lists in its own robots.txt, and the search and on-request crawlers of Anthropic, Mistral, Kimi, SB Intuitions and Exa. If you had every training crawler ticked, the new training ones are ticked on update; any other selection stays as it was, and no search crawler is ever ticked for you. Each group shows how many are ticked, with “Select all” and “Deselect all”, and folds its list.
     630* Improved: The ability that finds content with no Meta title or description lists it without loading the custom fields of every entry, which weighed most on sites built with page builders.
     631* Fix: The AIOSEO importer brings over “Remove Category Base Prefix”, so `/category/` no longer comes back in category addresses after migrating.
     632* Fix: Schema texts typed in an entry keep sequences such as `%C3%A9` or `100%AB`, which were deleted on save.
     633* Fix: The Home category for apps shared its translation with the Home breadcrumb, so in some languages it showed the wrong word.
     634* Fix: With WPML, the bulk actions of the entries list, such as “Set as nofollow”, copied both values of the directive to the translations and overwrote a translation's own exclusion from the per-type rule. They copy only the value they change, once per group of translations.
     635* Fix: A content type or taxonomy that is not registered at that moment, because a plugin such as WooCommerce is switched off for a while, no longer drops out of the settings on save or import: the per-type directives, llms.txt, Markdown, the sitemap exclusions, the title and description templates and the schema type.
     636* Fix: Moving to Visibility a WordPress slug redirect whose old address has accents could replace a Visibility redirect already set for that address, such as a 410.
     637
    619638= 3.4.0 =
    620639Ten new abilities for AI agents: an SEO inventory, why an address is or is not indexed, finding entries and reading their text, writing many at once, redirects and noindex rules. Page caches are purged after every change.
    … …  
    633652== Upgrade Notice ==
    634653
    635 = 3.4.0 =
    636 Ten new abilities for AI agents: an SEO inventory, why an address is or is not indexed, finding entries and reading their text, writing many at once, redirects and noindex rules. Page caches are purged after every change.
     654= 3.4.1 =
     655Clearer help texts, template tags as buttons, sponsored and ugc links in both editors, 55 AI crawlers to block, slug redirects moved to Visibility in bulk, and fixes for WPML and for plugins switched off for a while.
    637656
    638657== Support ==
Note: See TracChangeset for help on using the changeset viewer.