Changeset 3830593
- Timestamp:
- 11/27/2026 11:11:33 PM (less than one hour ago)
- Location:
- native-aeo-pack
- Files:
-
- 80 added
- 24 edited
-
tags/3.4.0/readme.txt (modified) (1 diff)
-
tags/3.4.1 (added)
-
tags/3.4.1/assets (added)
-
tags/3.4.1/assets/css (added)
-
tags/3.4.1/assets/css/admin.css (added)
-
tags/3.4.1/assets/css/nosnippet-classic-editor.css (added)
-
tags/3.4.1/assets/css/nosnippet-editor.css (added)
-
tags/3.4.1/assets/js (added)
-
tags/3.4.1/assets/js/admin.js (added)
-
tags/3.4.1/assets/js/author-details-block.js (added)
-
tags/3.4.1/assets/js/link-popup.js (added)
-
tags/3.4.1/assets/js/link-rel-editor.js (added)
-
tags/3.4.1/assets/js/meta-box-editor.js (added)
-
tags/3.4.1/assets/js/nosnippet-editor.js (added)
-
tags/3.4.1/assets/js/nosnippet-quicktags.js (added)
-
tags/3.4.1/assets/js/nosnippet-tinymce.js (added)
-
tags/3.4.1/assets/js/quick-edit-terms.js (added)
-
tags/3.4.1/assets/js/quick-edit.js (added)
-
tags/3.4.1/assets/js/schema-entity.js (added)
-
tags/3.4.1/assets/js/template-tags.js (added)
-
tags/3.4.1/blocks (added)
-
tags/3.4.1/blocks/author-details (added)
-
tags/3.4.1/blocks/author-details/block.json (added)
-
tags/3.4.1/changelog.txt (added)
-
tags/3.4.1/includes (added)
-
tags/3.4.1/includes/class-abilities.php (added)
-
tags/3.4.1/includes/class-admin-freshness.php (added)
-
tags/3.4.1/includes/class-admin-page.php (added)
-
tags/3.4.1/includes/class-ajax-search.php (added)
-
tags/3.4.1/includes/class-author-details.php (added)
-
tags/3.4.1/includes/class-block-editor.php (added)
-
tags/3.4.1/includes/class-conflicts.php (added)
-
tags/3.4.1/includes/class-content-access.php (added)
-
tags/3.4.1/includes/class-frontend-attachment.php (added)
-
tags/3.4.1/includes/class-frontend-canonical.php (added)
-
tags/3.4.1/includes/class-frontend-feeds.php (added)
-
tags/3.4.1/includes/class-frontend-llms.php (added)
-
tags/3.4.1/includes/class-frontend-markdown.php (added)
-
tags/3.4.1/includes/class-frontend-meta-description.php (added)
-
tags/3.4.1/includes/class-frontend-open-graph.php (added)
-
tags/3.4.1/includes/class-frontend-robots.php (added)
-
tags/3.4.1/includes/class-frontend-schema-article.php (added)
-
tags/3.4.1/includes/class-frontend-schema-faq.php (added)
-
tags/3.4.1/includes/class-frontend-schema-identity.php (added)
-
tags/3.4.1/includes/class-frontend-schema-person.php (added)
-
tags/3.4.1/includes/class-frontend-title.php (added)
-
tags/3.4.1/includes/class-frontend-verification.php (added)
-
tags/3.4.1/includes/class-importer.php (added)
-
tags/3.4.1/includes/class-legacy-detector.php (added)
-
tags/3.4.1/includes/class-link-popup.php (added)
-
tags/3.4.1/includes/class-list-column.php (added)
-
tags/3.4.1/includes/class-meta-box.php (added)
-
tags/3.4.1/includes/class-meta-register.php (added)
-
tags/3.4.1/includes/class-nosnippet-classic-editor.php (added)
-
tags/3.4.1/includes/class-nosnippet-editor.php (added)
-
tags/3.4.1/includes/class-permalinks.php (added)
-
tags/3.4.1/includes/class-post-meta.php (added)
-
tags/3.4.1/includes/class-preview.php (added)
-
tags/3.4.1/includes/class-product-permalinks.php (added)
-
tags/3.4.1/includes/class-promo-banner.php (added)
-
tags/3.4.1/includes/class-quick-edit.php (added)
-
tags/3.4.1/includes/class-redirects.php (added)
-
tags/3.4.1/includes/class-robots-txt.php (added)
-
tags/3.4.1/includes/class-schema-entities.php (added)
-
tags/3.4.1/includes/class-settings.php (added)
-
tags/3.4.1/includes/class-sitemap-extra-provider.php (added)
-
tags/3.4.1/includes/class-sitemap-languages-provider.php (added)
-
tags/3.4.1/includes/class-sitemap-redirects.php (added)
-
tags/3.4.1/includes/class-sitemap.php (added)
-
tags/3.4.1/includes/class-static-sitemap-detector.php (added)
-
tags/3.4.1/includes/class-term-editor.php (added)
-
tags/3.4.1/includes/class-term-meta.php (added)
-
tags/3.4.1/includes/class-text.php (added)
-
tags/3.4.1/includes/class-title-template.php (added)
-
tags/3.4.1/includes/class-tools.php (added)
-
tags/3.4.1/includes/class-user-profile.php (added)
-
tags/3.4.1/native-aeo-pack.php (added)
-
tags/3.4.1/readme.txt (added)
-
tags/3.4.1/uninstall.php (added)
-
tags/3.4.1/wpml-config.xml (added)
-
trunk/assets/css/admin.css (modified) (2 diffs)
-
trunk/assets/js/admin.js (modified) (6 diffs)
-
trunk/assets/js/link-popup.js (modified) (6 diffs)
-
trunk/assets/js/link-rel-editor.js (added)
-
trunk/assets/js/template-tags.js (modified) (3 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/class-abilities.php (modified) (3 diffs)
-
trunk/includes/class-admin-freshness.php (modified) (1 diff)
-
trunk/includes/class-admin-page.php (modified) (145 diffs)
-
trunk/includes/class-importer.php (modified) (1 diff)
-
trunk/includes/class-link-popup.php (modified) (3 diffs)
-
trunk/includes/class-meta-box.php (modified) (18 diffs)
-
trunk/includes/class-preview.php (modified) (1 diff)
-
trunk/includes/class-quick-edit.php (modified) (5 diffs)
-
trunk/includes/class-redirects.php (modified) (3 diffs)
-
trunk/includes/class-schema-entities.php (modified) (13 diffs)
-
trunk/includes/class-settings.php (modified) (4 diffs)
-
trunk/includes/class-sitemap.php (modified) (12 diffs)
-
trunk/includes/class-static-sitemap-detector.php (modified) (2 diffs)
-
trunk/includes/class-term-editor.php (modified) (6 diffs)
-
trunk/includes/class-title-template.php (modified) (1 diff)
-
trunk/includes/class-user-profile.php (modified) (5 diffs)
-
trunk/native-aeo-pack.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
native-aeo-pack/tags/3.4.0/readme.txt
r3828380 r3830593 3 3 Tags: ai seo, redirects, noindex, schema, sitemap 4 4 Requires at least: 6.1 5 Tested up to: 7. 15 Tested up to: 7.2 6 6 Requires PHP: 7.4 7 7 Stable tag: 3.4.0 -
native-aeo-pack/trunk/assets/css/admin.css
r3824861 r3830593 1780 1780 min-width: 200px; 1781 1781 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; 1782 1827 } 1783 1828 … … 2878 2923 } 2879 2924 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 990 990 * - data-per-page rows per page (default 20) 991 991 * - 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) 993 994 * - .native-aeo-pack-itable-search the search input 994 995 * - .native-aeo-pack-itable-searchwrap its container (hidden when few) … … 1013 1014 action: 'native_aeo_pack_redirect_bulk_remove_native', 1014 1015 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 1015 1022 } 1016 1023 }; … … 1185 1192 var $btn = $( this ); 1186 1193 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 ]; 1188 1196 if ( ! spec ) { 1189 1197 return; … … 1193 1201 var $rows = $checked.closest( 'tr' ); 1194 1202 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 1200 1207 var data = { action: spec.action, security: l10n.redirectNonce }; 1201 if ( 'remove-native' === mode ) {1208 if ( 'remove-native' === mode || 'convert-native' === mode ) { 1202 1209 data.post_ids = $rows.map( function () { return $( this ).attr( 'data-post-id' ); } ).get(); 1203 1210 data.old_slugs = $rows.map( function () { return $( this ).attr( 'data-old-slug' ); } ).get(); … … 1213 1220 return; 1214 1221 } 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 1215 1249 $rows.remove(); 1216 1250 $wrap.find( '.native-aeo-pack-itable-cball' ).prop( 'checked', false ).prop( 'indeterminate', false ); … … 1303 1337 } ); 1304 1338 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 } ); 1306 1364 $( document ).on( 'input', '.native-aeo-pack-robots-custom', napRobotsBuildPreview ); 1307 1365 -
native-aeo-pack/trunk/assets/js/link-popup.js
r3670045 r3830593 1 1 /** 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. 3 4 * 4 5 * 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. 7 10 * 8 11 * @package Native_AEO_Pack … … 16 19 } 17 20 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 ]; 19 28 20 function relHas Nofollow( rel) {29 function relHas( rel, token ) { 21 30 if ( ! rel ) { 22 31 return false; 23 32 } 24 return /(^|\s)nofollow(\s|$)/i.test( rel );33 return ( ' ' + rel.toLowerCase() + ' ' ).replace( /\s+/g, ' ' ).indexOf( ' ' + token + ' ' ) !== -1; 25 34 } 26 35 27 function toggle Nofollow( rel, addNofollow) {28 var tokens = ( rel || '' ).split( /\s+/ ).filter( function ( t oken) {29 return t oken && token.toLowerCase() !== 'nofollow';36 function toggleToken( rel, token, add ) { 37 var tokens = ( rel || '' ).split( /\s+/ ).filter( function ( t ) { 38 return t && t.toLowerCase() !== token; 30 39 } ); 31 40 32 if ( add Nofollow) {33 tokens.push( 'nofollow');41 if ( add ) { 42 tokens.push( token ); 34 43 } 35 44 … … 37 46 } 38 47 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() { 56 49 var $options = $( '#link-options' ); 57 50 if ( ! $options.length ) { … … 59 52 } 60 53 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 } ); 69 74 } 70 75 … … 92 97 } 93 98 94 // Sync checkbox stateevery time the modal opens.99 // Sync the checkboxes every time the modal opens. 95 100 $( document ).on( 'wplink-open', function () { 96 injectCheckbox ();101 injectCheckboxes(); 97 102 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 } ); 99 106 } ); 100 107 101 // Hook into wpLink.getAttrs so the rel attribute reflects the checkbox .108 // Hook into wpLink.getAttrs so the rel attribute reflects the checkboxes. 102 109 if ( typeof wpLink.getAttrs === 'function' ) { 103 110 var originalGetAttrs = wpLink.getAttrs; … … 105 112 wpLink.getAttrs = function () { 106 113 var attrs = originalGetAttrs.apply( this, arguments ); 107 var $checkbox = $( '#' + CHECKBOX_ID );108 114 109 if ( ! $ checkbox.length ) {115 if ( ! $( '#' + TOKENS[ 0 ].id ).length ) { 110 116 return attrs; 111 117 } 112 118 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 } ); 115 126 116 if ( newRel ) {117 attrs.rel = newRel;127 if ( rel ) { 128 attrs.rel = rel; 118 129 } else if ( attrs.rel ) { 119 130 attrs.rel = ''; -
native-aeo-pack/trunk/assets/js/template-tags.js
r3824861 r3830593 1 1 /** 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. 7 11 * 8 12 * Only text goes into the field, through its value. The `input` and `change` … … 16 20 document.addEventListener( 'focusin', function ( event ) { 17 21 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' ); 20 36 } 21 37 } ); … … 29 45 30 46 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' ) || '' ); 33 48 if ( ! tag || ! field || field.disabled || field.readOnly ) { 34 49 return; -
native-aeo-pack/trunk/changelog.txt
r3827553 r3830593 3 3 For each release, see the entries below. The latest version is always at the top. 4 4 The 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. 5 22 6 23 = 3.4.0 = -
native-aeo-pack/trunk/includes/class-abilities.php
r3827553 r3830593 1281 1281 } 1282 1282 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. 1283 1287 $query = new WP_Query( 1284 1288 $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. 1286 1293 ) 1287 1294 ); 1288 1295 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 1289 1311 $items = array(); 1290 foreach ( $ query->posts as $post ) {1312 foreach ( $posts as $post ) { 1291 1313 // The content type was checked as a whole; an entry of someone else in 1292 1314 // it may still be out of reach for this user. … … 2402 2424 } elseif ( ! in_array( $post->post_type, $types, true ) ) { 2403 2425 $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 ) { 2407 2431 $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 ) { 2409 2433 $why = 'noindex'; 2434 } elseif ( '' !== $reason ) { 2435 $why = 'excluded'; 2410 2436 } 2411 2437 } … … 2434 2460 // Core lists the terms that have entries (`hide_empty`). 2435 2461 $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 } 2438 2467 } 2439 2468 -
native-aeo-pack/trunk/includes/class-admin-freshness.php
r3721297 r3830593 292 292 $label = esc_html__( 'Last updated', 'native-aeo-pack' ) 293 293 . ' <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 emitsas 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' ) 295 295 . '"></i>'; 296 296 -
native-aeo-pack/trunk/includes/class-admin-page.php
r3827553 r3830593 237 237 ); 238 238 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). 240 240 wp_enqueue_script( 'native-aeo-pack-template-tags', NATIVE_AEO_PACK_URL . 'assets/js/template-tags.js', array(), NATIVE_AEO_PACK_VERSION, true ); 241 241 … … 281 281 /* translators: %d: number of selected old URLs. */ 282 282 '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' ), 283 287 /* translators: 1: first row number shown, 2: last row number shown, 3: total rows. */ 284 288 'paginationOf' => __( '%1$d–%2$d of %3$d', 'native-aeo-pack' ), … … 389 393 <div class="notice notice-info is-dismissible" id="native-aeo-pack-woo-notice"> 390 394 <p> 391 <strong><?php e sc_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> 392 396 <?php 393 397 printf( … … 503 507 <div class="notice notice-info is-dismissible" id="native-aeo-pack-nosnippet-notice"> 504 508 <p> 505 <strong><?php e sc_html_e( 'Visibility can now leave nosnippet content out of what it generates.', 'native-aeo-pack'); ?></strong>506 <?php e sc_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() ) ); ?> 507 511 </p> 508 512 <p> … … 569 573 570 574 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' ); 572 576 break; 573 577 574 578 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' ); 576 580 break; 577 581 578 582 case 'indexing': 579 e sc_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() ) ); 580 584 break; 581 585 582 586 case 'sitemaps': 583 e sc_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() ) ); 584 588 break; 585 589 case 'overview': 586 590 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' ); 588 592 break; 589 593 } … … 916 920 sprintf( 917 921 /* translators: %s: comma-separated list of post type names. */ 918 __( 'Not offered here: %s. Th ose 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' ), 919 923 implode( ', ', $labels ) 920 924 ) … … 945 949 sprintf( 946 950 /* translators: %s: module name. */ 947 esc_html__( 'The %smodule 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' ), 948 952 '<strong>' . esc_html( $name ) . '</strong>' 949 953 ) … … 1023 1027 ?> 1024 1028 <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' ); ?> 1026 1030 </p> 1027 1031 <?php … … 1114 1118 <?php if ( ! $folded ) : ?> 1115 1119 <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' ); ?> 1117 1121 </p> 1118 1122 <?php endif; ?> … … 1145 1149 </p> 1146 1150 <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' ); ?> 1148 1152 </p> 1149 1153 <?php self::render_import_table( $found['rows'] ); ?> … … 1183 1187 </p> 1184 1188 <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' ); ?> 1186 1190 </p> 1187 1191 <?php self::render_seo_import_table( $found['rows'] ); ?> … … 1190 1194 <summary><?php esc_html_e( 'What gets imported', 'native-aeo-pack' ); ?></summary> 1191 1195 <ul class="ul-disc"> 1192 <li><?php e sc_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 e sc_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> 1194 1198 <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 Redirectstab, 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> 1197 1201 </ul> 1198 1202 </details> … … 1226 1230 <p class="native-aeo-pack-import-detail"> 1227 1231 <?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() ) ) 1232 1239 ); 1233 1240 ?> … … 1342 1349 ?> 1343 1350 <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' ); ?> 1345 1352 </p> 1346 1353 <?php … … 1453 1460 $parts[] = sprintf( 1454 1461 /* translators: %s: number of items. */ 1455 _n( ' noarchive on %s item', 'noarchiveon %s items', $n, 'native-aeo-pack' ),1462 _n( '<code>noarchive</code> on %s item', '<code>noarchive</code> on %s items', $n, 'native-aeo-pack' ), 1456 1463 number_format_i18n( $n ) 1457 1464 ); … … 1461 1468 $parts[] = sprintf( 1462 1469 /* translators: %s: number of items. */ 1463 _n( ' max-snippet limit on %s item', 'max-snippetlimit 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' ), 1464 1471 number_format_i18n( $n ) 1465 1472 ); … … 1469 1476 $parts[] = sprintf( 1470 1477 /* translators: %s: number of items. */ 1471 _n( ' max-image-preview below large on %s item', 'max-image-previewbelow 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' ), 1472 1479 number_format_i18n( $n ) 1473 1480 ); … … 1477 1484 $parts[] = sprintf( 1478 1485 /* translators: %s: number of items. */ 1479 _n( ' max-video-preview limit on %s item', 'max-video-previewlimit 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' ), 1480 1487 number_format_i18n( $n ) 1481 1488 ); … … 1487 1494 $parts[] = sprintf( 1488 1495 /* translators: 1: number of entries, 2: schema.org type. */ 1489 _n( 'its %2$s schema on %1$s entry', 'its %2$sschema 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' ), 1490 1497 number_format_i18n( (int) $n ), 1491 (string) $type1498 esc_html( (string) $type ) 1492 1499 ); 1493 1500 } … … 1529 1536 <p class="native-aeo-pack-section-desc native-aeo-pack-import-note-line"> 1530 1537 <strong><?php echo esc_html( $row['name'] ); ?></strong> 1531 <?php echo esc_html( $text); ?>1538 <?php echo wp_kses( $text, array( 'code' => array() ) ); ?> 1532 1539 </p> 1533 1540 <?php … … 1543 1550 printf( 1544 1551 /* 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' ), 1546 1553 esc_html( $row['site_name_left'] ) 1547 1554 ); … … 1565 1572 'meta_tags' => array( 1566 1573 '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.txteditor.', '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' ), 1568 1575 ), 1569 1576 'noindex' => array( 1570 1577 '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' ), 1572 1579 ), 1573 1580 'sitemap' => array( 1574 1581 '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' ), 1576 1583 ), 1577 1584 'redirects' => array( 1578 1585 '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' ), 1580 1587 ), 1581 1588 ); … … 1604 1611 </label> 1605 1612 </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> 1607 1614 </div> 1608 1615 <?php endforeach; ?> … … 1652 1659 <?php endif; ?> 1653 1660 <p class="description"> 1654 <?php e sc_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() ) ); ?> 1655 1662 </p> 1656 1663 </td> … … 1681 1688 </label> 1682 1689 <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' ); ?> 1684 1691 </p> 1685 1692 </td> … … 1877 1884 </table> 1878 1885 <p class="native-aeo-pack-section-desc"> 1879 <?php esc_html_e( 'Visibility does not need the m 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 loadingthe 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' ); ?> 1880 1887 </p> 1881 1888 </div> … … 1944 1951 <p><strong><?php esc_html_e( 'Import the URL structure from Premmerce Permalink Manager', 'native-aeo-pack' ); ?></strong></p> 1945 1952 <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' ); ?> 1947 1954 </p> 1948 1955 <p><strong><?php esc_html_e( 'Until you import, your store does not serve the URLs Premmerce served.', 'native-aeo-pack' ); ?></strong></p> … … 1954 1961 </ul> 1955 1962 <?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 Redirectstab:', '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> 1957 1964 <ul class="ul-disc"> 1958 1965 <?php foreach ( $missing as $line ) : ?> … … 1993 2000 <h2><?php esc_html_e( 'Migration from another SEO plugin', 'native-aeo-pack' ); ?></h2> 1994 2001 <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' ); ?> 1996 2003 </p> 1997 2004 <?php self::render_seo_unmapped_lines( $suites['rows'] ); ?> … … 2067 2074 <?php if ( ! empty( $summary['posts_missing'] ) || ! empty( $summary['terms_missing'] ) ) : ?> 2068 2075 <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' ); ?> 2070 2077 </p> 2071 2078 <?php endif; ?> … … 2083 2090 <h2><?php esc_html_e( 'Copy this configuration to another site', 'native-aeo-pack' ); ?></h2> 2084 2091 <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' ); ?> 2086 2093 </p> 2087 2094 <p class="native-aeo-pack-section-desc"> … … 2090 2097 sprintf( 2091 2098 /* 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' ), 2093 2100 esc_url( $redirects_url ) 2094 2101 ), … … 2128 2135 </p> 2129 2136 <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' ); ?> 2131 2138 </p> 2132 2139 <button type="submit" class="button button-primary"> … … 2188 2195 sprintf( 2189 2196 /* 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' ), 2191 2198 '#native-aeo-pack-redirect-tools', 2192 2199 esc_url( admin_url( 'admin.php?page=' . NATIVE_AEO_PACK_SLUG . '&tab=tools' ) ) … … 2250 2257 <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' : ''; ?>> 2251 2258 <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> 2253 2260 </div> 2254 2261 <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' : ''; ?>> 2255 2262 <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> 2257 2264 </div> 2258 2265 <?php self::render_itable_open( 'delete', __( 'Delete selected', 'native-aeo-pack' ), __( 'Search redirects…', 'native-aeo-pack' ) ); ?> … … 2289 2296 <div class="native-aeo-pack-section native-aeo-pack-redirect-tools" id="native-aeo-pack-redirect-tools"> 2290 2297 <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-runningnever 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> 2292 2299 <div class="native-aeo-pack-redirect-tools-actions"> 2293 2300 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> … … 2314 2321 * prints the <table> next, then closes with render_itable_close(). 2315 2322 * 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() ) { 2321 2330 ?> 2322 2331 <div class="native-aeo-pack-itable" data-bulk="<?php echo esc_attr( $bulk ); ?>" data-per-page="10" data-search-min="8"> … … 2327 2336 </div> 2328 2337 <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; ?> 2329 2341 <button type="button" class="button native-aeo-pack-itable-bulk-btn" disabled><?php echo esc_html( $bulk_label ); ?></button> 2330 2342 <span class="native-aeo-pack-itable-count" aria-live="polite"></span> … … 2424 2436 </h2> 2425 2437 <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 applieduntil 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' ); ?> 2427 2439 </p> 2428 2440 <?php self::render_itable_open( 'dismiss', __( 'Dismiss selected', 'native-aeo-pack' ), __( 'Search suggestions…', 'native-aeo-pack' ) ); ?> … … 2463 2475 <td class="native-aeo-pack-suggestion-col-title"><?php echo esc_html( $title ); ?></td> 2464 2476 <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> 2467 2479 <button type="button" class="button-link native-aeo-pack-suggestion-dismiss"><?php esc_html_e( 'Dismiss', 'native-aeo-pack' ); ?></button> 2468 2480 </td> … … 2473 2485 /** 2474 2486 * 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. 2477 2490 * 2478 2491 * @param array<int,array{post_id:int,old_slug:string,source:string,target:string,title:string}> $native Entries. … … 2489 2502 </h2> 2490 2503 <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' ); ?> 2492 2505 </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' ) ) ); ?> 2494 2507 <table class="native-aeo-pack-redirect-table widefat striped"> 2495 2508 <thead> … … 2531 2544 <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> 2532 2545 <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( 'M anage', '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> 2534 2547 <button type="button" class="button-link native-aeo-pack-native-remove"><?php esc_html_e( 'Remove', 'native-aeo-pack' ); ?></button> 2535 2548 </td> … … 2605 2618 'schema_page_author' => array( 2606 2619 __( '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' ), 2608 2621 ), 2609 2622 'schema_person' => array( 2610 2623 __( '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' ), 2612 2625 ), 2613 2626 'author_details_auto' => array( 2614 2627 __( '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' ), 2616 2629 ), 2617 2630 'schema_faq' => array( 2618 2631 __( 'JSON-LD: FAQPage from Q&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&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&A. Needs the “JSON-LD: Article and BreadcrumbList” toggle above.', 'native-aeo-pack' ), 2620 2633 ), 2621 2634 ); … … 2660 2673 name="<?php echo esc_attr( $opt ); ?>[meta_tags][home_description_override]" 2661 2674 rows="2" 2662 class="large-text" 2675 class="large-text code" 2676 placeholder="%%tagline%%" 2663 2677 ><?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> 2665 2680 </td> 2666 2681 </tr> … … 2723 2738 </th> 2724 2739 <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> 2744 2744 </td> 2745 2745 </tr> … … 2749 2749 </th> 2750 2750 <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> 2753 2754 </td> 2754 2755 </tr> … … 2765 2766 $native_aeo_pack_field_id = 'native-aeo-pack-title-template-pt-' . $native_aeo_pack_pt_obj->name; 2766 2767 ?> 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> 2771 2775 <?php endforeach; ?> 2772 2776 </td> … … 2775 2779 <th scope="row"><?php esc_html_e( 'Per taxonomy', 'native-aeo-pack' ); ?></th> 2776 2780 <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> 2778 2782 <?php 2779 2783 foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $native_aeo_pack_tax_obj ) : … … 2783 2787 $native_aeo_pack_field_id = 'native-aeo-pack-title-template-tax-' . $native_aeo_pack_tax_obj->name; 2784 2788 ?> 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> 2797 2804 <?php endforeach; ?> 2798 2805 </td> … … 2805 2812 <h2><?php esc_html_e( 'Meta description templates', 'native-aeo-pack' ); ?></h2> 2806 2813 <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' ); ?> 2808 2815 </p> 2809 2816 … … 2820 2827 </th> 2821 2828 <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' ); ?> 2840 2831 </td> 2841 2832 </tr> … … 2851 2842 $native_aeo_pack_field_id = 'native-aeo-pack-description-template-pt-' . $native_aeo_pack_pt_obj->name; 2852 2843 ?> 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> 2857 2851 <?php endforeach; ?> 2858 2852 </td> … … 2861 2855 <th scope="row"><?php esc_html_e( 'Per taxonomy', 'native-aeo-pack' ); ?></th> 2862 2856 <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> 2864 2858 <?php 2865 2859 foreach ( get_taxonomies( array( 'public' => true ), 'objects' ) as $native_aeo_pack_tax_obj ) : … … 2869 2863 $native_aeo_pack_field_id = 'native-aeo-pack-description-template-tax-' . $native_aeo_pack_tax_obj->name; 2870 2864 ?> 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> 2883 2880 <?php endforeach; ?> 2884 2881 </td> … … 2891 2888 <h2><?php esc_html_e( 'Site verification', 'native-aeo-pack' ); ?></h2> 2892 2889 <p class="native-aeo-pack-section-desc"> 2893 <?php e sc_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><meta></code> tag also works.', 'native-aeo-pack' ), array( 'code' => array() ) ); ?> 2894 2891 </p> 2895 2892 … … 2964 2961 <h2><?php esc_html_e( 'Open Graph and Twitter', 'native-aeo-pack' ); ?></h2> 2965 2962 <p class="native-aeo-pack-section-desc"> 2966 <?php e sc_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() ) ); ?> 2967 2964 </p> 2968 2965 … … 2982 2979 placeholder="<?php esc_attr_e( 'yourhandle', 'native-aeo-pack' ); ?>" 2983 2980 /> 2984 <p class="description"><?php e sc_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> 2985 2982 </td> 2986 2983 </tr> … … 2997 2994 class="regular-text" 2998 2995 /> 2999 <p class="description"><?php e sc_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> 3000 2997 </td> 3001 2998 </tr> … … 3008 3005 <h2><?php esc_html_e( 'Site name (WebSite)', 'native-aeo-pack' ); ?></h2> 3009 3006 <p class="native-aeo-pack-section-desc"> 3010 <?php e sc_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() ) ); ?> 3011 3008 </p> 3012 3009 … … 3023 3020 <span class="dashicons dashicons-share-alt2" aria-hidden="true"></span> 3024 3021 <p> 3025 <strong><?php e sc_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> 3026 3023 <?php 3027 3024 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' ); 3029 3026 } 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' ); 3031 3028 } 3032 3029 ?> … … 3045 3042 <?php esc_html_e( 'Write the WebSite JSON-LD on the home page.', 'native-aeo-pack' ); ?> 3046 3043 </label> 3047 <p class="description"><?php esc_html_e( 'Also w ith 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> 3048 3045 </td> 3049 3046 </tr> … … 3052 3049 <td> 3053 3050 <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> 3055 3052 </td> 3056 3053 </tr> … … 3059 3056 <td> 3060 3057 <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> 3062 3059 </td> 3063 3060 </tr> … … 3079 3076 <h2><?php esc_html_e( 'Site Identity (Organization / Local business / Person)', 'native-aeo-pack' ); ?></h2> 3080 3077 <p class="native-aeo-pack-section-desc"> 3081 <?php e sc_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() ) ); ?> 3082 3079 </p> 3083 3080 … … 3090 3087 <span class="dashicons dashicons-share-alt2" aria-hidden="true"></span> 3091 3088 <p> 3092 <strong><?php esc_html_e( 'VigIA also has Site Identityactive.', 'native-aeo-pack' ); ?></strong>3093 <?php esc_html_e( 'Visibility takes priority and writes th e 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' ); ?> 3094 3091 </p> 3095 3092 </div> … … 3120 3117 <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> 3121 3118 </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> 3123 3120 </td> 3124 3121 </tr> … … 3131 3128 <?php endforeach; ?> 3132 3129 </select> 3133 <p class="description"><?php e sc_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> 3134 3131 </td> 3135 3132 </tr> … … 3156 3153 <td> 3157 3154 <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 e sc_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> 3159 3156 </td> 3160 3157 </tr> … … 3171 3168 <td> 3172 3169 <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> 3174 3171 </td> 3175 3172 </tr> … … 3184 3181 <?php endforeach; ?> 3185 3182 </select> 3186 <p class="description"><?php e sc_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> 3187 3184 </td> 3188 3185 </tr> … … 3196 3193 <h2><?php esc_html_e( 'Schema per content type', 'native-aeo-pack' ); ?></h2> 3197 3194 <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' ); ?> 3199 3196 </p> 3200 3197 <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' ); ?> 3202 3199 </p> 3203 3200 … … 3255 3252 <h2><?php esc_html_e( 'Content freshness', 'native-aeo-pack' ); ?></h2> 3256 3253 <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' ); ?> 3258 3255 </p> 3259 3256 … … 3277 3274 <?php esc_html_e( 'days', 'native-aeo-pack' ); ?> 3278 3275 <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' ); ?> 3280 3277 </p> 3281 3278 </td> … … 3307 3304 <h2><?php esc_html_e( 'llms.txt for AI agents', 'native-aeo-pack' ); ?></h2> 3308 3305 <p class="native-aeo-pack-section-desc"> 3309 <?php e sc_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() ) ); ?> 3310 3307 </p> 3311 3308 … … 3316 3313 <span class="dashicons dashicons-warning" aria-hidden="true"></span> 3317 3314 <p> 3318 <strong><?php e sc_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' ); ?> 3320 3317 </p> 3321 3318 </div> … … 3325 3322 <p> 3326 3323 <?php if ( Native_AEO_Pack_Frontend_LLMS::foreign_file_present() ) : ?> 3327 <strong><?php e sc_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' ); ?> 3329 3326 <?php else : ?> 3330 <strong><?php e sc_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' ); ?> 3332 3329 <?php endif; ?> 3333 3330 </p> … … 3375 3372 'all_checked' => ! empty( $meta['llms_all_types'] ), 3376 3373 'all_label' => __( 'All content types', 'native-aeo-pack' ), 3377 'all_note' => __( 'Includ ing 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' ), 3378 3375 ) 3379 3376 ); … … 3395 3392 ); 3396 3393 ?> 3397 <p class="description"><?php e sc_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> 3398 3395 </td> 3399 3396 </tr> … … 3414 3411 <?php esc_html_e( 'Keep content marked nosnippet out of llms.txt, llms-full.txt, the Markdown versions and the FAQPage.', 'native-aeo-pack' ); ?> 3415 3412 </label> 3416 <p class="description"><?php e sc_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> 3417 3414 </td> 3418 3415 </tr> … … 3423 3420 <label> 3424 3421 <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' ); ?> 3426 3423 </label> 3427 3424 <?php if ( Native_AEO_Pack_Robots_Txt::root_toggle_locked() ) : ?> … … 3431 3428 <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> 3432 3429 <?php elseif ( Native_AEO_Pack_Frontend_LLMS::foreign_file_present() ) : ?> 3433 <p class="description"><?php e sc_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> 3434 3431 <?php endif; ?> 3435 3432 <?php self::render_llms_charset_notice(); ?> 3436 3433 <?php elseif ( is_subdomain_install() ) : ?> 3437 <p class="description"><?php e sc_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> 3438 3435 <?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> 3440 3437 <?php else : ?> 3441 <p class="description"><?php e sc_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> 3442 3439 <?php endif; ?> 3443 3440 </td> … … 3448 3445 <h3 class="native-aeo-pack-subhead"><?php esc_html_e( 'Content filters', 'native-aeo-pack' ); ?></h3> 3449 3446 <p class="native-aeo-pack-section-desc"> 3450 <?php e sc_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() ) ); ?> 3451 3448 </p> 3452 3449 3453 3450 <div class="native-aeo-pack-subsection"> 3454 3451 <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 listeverything.', '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> 3456 3453 <?php 3457 3454 self::render_search_subsection( … … 3467 3464 <div class="native-aeo-pack-subsection"> 3468 3465 <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> 3470 3467 <?php 3471 3468 self::render_picker( … … 3495 3492 <div class="native-aeo-pack-subsection"> 3496 3493 <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 afilter 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> 3498 3495 <?php 3499 3496 self::render_search_subsection( … … 3513 3510 <td> 3514 3511 <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/* */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> 3516 3513 </td> 3517 3514 </tr> … … 3523 3520 <h2><?php esc_html_e( 'Markdown for AI agents', 'native-aeo-pack' ); ?></h2> 3524 3521 <p class="native-aeo-pack-section-desc"> 3525 <?php e sc_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() ) ); ?> 3526 3523 </p> 3527 3524 … … 3531 3528 <p> 3532 3529 <strong><?php esc_html_e( 'VigIA also serves Markdown.', 'native-aeo-pack' ); ?></strong> 3533 <?php e sc_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() ) ); ?> 3534 3531 </p> 3535 3532 </div> … … 3559 3556 'all_checked' => ! empty( $meta['markdown_all_types'] ), 3560 3557 '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' ), 3562 3559 ) 3563 3560 ); … … 3579 3576 ); 3580 3577 ?> 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 itsdescription, 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> 3582 3579 </td> 3583 3580 </tr> … … 3598 3595 <h2><?php esc_html_e( 'robots.txt', 'native-aeo-pack' ); ?></h2> 3599 3596 <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' ); ?> 3601 3598 </p> 3602 3599 … … 3610 3607 <span class="dashicons dashicons-info" aria-hidden="true"></span> 3611 3608 <p> 3612 <strong><?php e sc_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' ); ?> 3614 3611 </p> 3615 3612 </div> … … 3619 3616 <p> 3620 3617 <?php if ( Native_AEO_Pack_Robots_Txt::foreign_file_present() ) : ?> 3621 <strong><?php e sc_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' ); ?> 3623 3620 <?php else : ?> 3624 <strong><?php e sc_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' ); ?> 3626 3623 <?php endif; ?> 3627 3624 </p> … … 3658 3655 <legend><?php echo esc_html( $native_aeo_pack_ag_group['label'] ); ?></legend> 3659 3656 <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> 3666 3689 </fieldset> 3667 3690 <?php endforeach; ?> … … 3682 3705 <pre class="native-aeo-pack-robots-preview" aria-live="polite"><?php echo esc_html( self::robots_preview_text() ); ?></pre> 3683 3706 <p class="description"> 3684 <?php e sc_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() ) ); ?> 3685 3708 <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> 3686 3709 </p> … … 3693 3716 <label> 3694 3717 <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' ); ?> 3696 3719 </label> 3697 3720 <?php if ( Native_AEO_Pack_Robots_Txt::root_toggle_locked() && ! $native_aeo_pack_robots_rules_locked ) : ?> … … 3699 3722 <?php endif; ?> 3700 3723 <?php if ( ! Native_AEO_Pack_Robots_Txt::root_writable() ) : ?> 3701 <p class="description"><?php e sc_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> 3702 3725 <?php endif; ?> 3703 3726 <?php elseif ( is_subdomain_install() ) : ?> 3704 <p class="description"><?php e sc_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> 3705 3728 <?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> 3707 3730 <?php else : ?> 3708 <p class="description"><?php e sc_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> 3709 3732 <?php endif; ?> 3710 3733 </td> … … 3756 3779 <h2><?php esc_html_e( 'Serve this site its own robots.txt', 'native-aeo-pack' ); ?></h2> 3757 3780 <p class="native-aeo-pack-section-desc"> 3758 <?php e sc_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() ) ); ?> 3759 3782 </p> 3760 3783 3761 3784 <?php if ( 'added' === $result ) : ?> 3762 <div class="notice notice-success is-dismissible"><p><?php e sc_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> 3763 3786 <?php elseif ( 'added_unverified' === $result ) : ?> 3764 3787 <div class="notice notice-warning is-dismissible"> 3765 3788 <p> 3766 3789 <strong><?php esc_html_e( 'The rewrite was added, but it could not be checked from here.', 'native-aeo-pack' ); ?></strong> 3767 <?php e sc_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() ) ); ?> 3768 3791 <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> 3769 3792 </p> … … 3773 3796 <p> 3774 3797 <strong><?php esc_html_e( 'The rewrite was removed again: your server did not accept it.', 'native-aeo-pack' ); ?></strong> 3775 <?php e sc_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() ) ); ?> 3776 3799 </p> 3777 3800 </div> … … 3780 3803 <p> 3781 3804 <strong><?php esc_html_e( 'The rewrite was removed again: it makes no difference on this server.', 'native-aeo-pack' ); ?></strong> 3782 <?php e sc_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() ) ); ?> 3783 3806 </p> 3784 3807 </div> 3785 3808 <?php elseif ( 'removed' === $result ) : ?> 3786 <div class="notice notice-success is-dismissible"><p><?php e sc_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> 3787 3810 <?php elseif ( 'add_failed' === $result ) : ?> 3788 <div class="notice notice-error is-dismissible"><p><?php e sc_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> 3789 3812 <?php elseif ( 'remove_failed' === $result ) : ?> 3790 <div class="notice notice-error is-dismissible"><p><?php e sc_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> 3791 3814 <?php endif; ?> 3792 3815 … … 3796 3819 <div class="native-aeo-pack-notice-body"> 3797 3820 <p> 3798 <strong><?php e sc_html_e( 'Requests for /robots.txt are going to WordPress.', 'native-aeo-pack'); ?></strong>3799 <?php e sc_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() ) ); ?> 3800 3823 <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> 3801 3824 </p> … … 3810 3833 </form> 3811 3834 <?php else : ?> 3812 <p class="description"><?php e sc_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> 3813 3836 <?php endif; ?> 3814 3837 </div> … … 3820 3843 <p> 3821 3844 <strong><?php esc_html_e( 'This server is nginx, so there is nothing the plugin can do here.', 'native-aeo-pack' ); ?></strong> 3822 <?php e sc_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() ) ); ?> 3823 3846 </p> 3824 3847 <pre class="native-aeo-pack-robots-preview">location = /robots.txt { rewrite ^ /index.php?robots=1 last; }</pre> 3825 <p class="description"><?php e sc_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> 3826 3849 </div> 3827 3850 </div> … … 3831 3854 <div class="native-aeo-pack-notice-body"> 3832 3855 <p> 3833 <?php e sc_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() ) ); ?> 3834 3857 </p> 3835 3858 <pre class="native-aeo-pack-robots-preview"><?php echo esc_html( Native_AEO_Pack_Robots_Txt::htaccess_block_text() ); ?></pre> … … 3846 3869 </div> 3847 3870 <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' ); ?> 3849 3872 </p> 3850 3873 <p class="description"> 3851 <?php e sc_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() ) ); ?> 3852 3875 </p> 3853 3876 <?php if ( ! $can ) : ?> 3854 <p class="description"><?php e sc_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> 3855 3878 <?php elseif ( ! $writable ) : ?> 3856 <p class="description"><?php e sc_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> 3857 3880 <?php else : ?> 3858 3881 <form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" class="native-aeo-pack-htaccess-form"> … … 3860 3883 <input type="hidden" name="action" value="<?php echo esc_attr( Native_AEO_Pack_Robots_Txt::HT_ACTION ); ?>"> 3861 3884 <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' ); ?>"> 3863 3886 <?php esc_html_e( 'Add the rewrite to .htaccess', 'native-aeo-pack' ); ?> 3864 3887 </button> … … 3925 3948 <?php esc_html_e( 'Redirect attachment pages (301) to their parent post.', 'native-aeo-pack' ); ?> 3926 3949 </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> 3928 3951 </td> 3929 3952 </tr> … … 3939 3962 <h2><?php esc_html_e( 'Content types', 'native-aeo-pack' ); ?></h2> 3940 3963 <p class="native-aeo-pack-section-desc"> 3941 <?php e sc_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() ) ); ?> 3942 3965 </p> 3943 <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php e sc_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> 3944 3967 3945 3968 <?php self::render_directive_table_post_types( $post_types, $noindex, $opt ); ?> … … 3948 3971 <h3><?php esc_html_e( 'Exclude posts from bulk noindex', 'native-aeo-pack' ); ?></h3> 3949 3972 <p class="native-aeo-pack-section-desc"> 3950 <?php e sc_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() ) ); ?> 3951 3974 </p> 3952 3975 <?php … … 3964 3987 <h3><?php esc_html_e( 'Set individual posts as noindex', 'native-aeo-pack' ); ?></h3> 3965 3988 <p class="native-aeo-pack-section-desc"> 3966 <?php e sc_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() ) ); ?> 3967 3990 </p> 3968 3991 <?php … … 3980 4003 <h3><?php esc_html_e( 'Exclude posts from bulk nofollow', 'native-aeo-pack' ); ?></h3> 3981 4004 <p class="native-aeo-pack-section-desc"> 3982 <?php e sc_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() ) ); ?> 3983 4006 </p> 3984 4007 <?php … … 3996 4019 <h3><?php esc_html_e( 'Set individual posts as nofollow', 'native-aeo-pack' ); ?></h3> 3997 4020 <p class="native-aeo-pack-section-desc"> 3998 <?php e sc_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() ) ); ?> 3999 4022 </p> 4000 4023 <?php … … 4017 4040 <h2><?php esc_html_e( 'Taxonomy archives', 'native-aeo-pack' ); ?></h2> 4018 4041 <p class="native-aeo-pack-section-desc"> 4019 <?php e sc_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() ) ); ?> 4020 4043 </p> 4021 <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php e sc_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> 4022 4045 4023 4046 <?php self::render_directive_table_taxonomies( $taxonomies, $noindex, $opt ); ?> … … 4028 4051 <h3><?php esc_html_e( 'Exclude terms from bulk noindex', 'native-aeo-pack' ); ?></h3> 4029 4052 <p class="native-aeo-pack-section-desc"> 4030 <?php e sc_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() ) ); ?> 4031 4054 </p> 4032 4055 <?php … … 4044 4067 <h3><?php esc_html_e( 'Set individual terms as noindex', 'native-aeo-pack' ); ?></h3> 4045 4068 <p class="native-aeo-pack-section-desc"> 4046 <?php e sc_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() ) ); ?> 4047 4070 </p> 4048 4071 <?php … … 4060 4083 <h3><?php esc_html_e( 'Exclude terms from bulk nofollow', 'native-aeo-pack' ); ?></h3> 4061 4084 <p class="native-aeo-pack-section-desc"> 4062 <?php e sc_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() ) ); ?> 4063 4086 </p> 4064 4087 <?php … … 4076 4099 <h3><?php esc_html_e( 'Set individual terms as nofollow', 'native-aeo-pack' ); ?></h3> 4077 4100 <p class="native-aeo-pack-section-desc"> 4078 <?php e sc_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() ) ); ?> 4079 4102 </p> 4080 4103 <?php … … 4099 4122 <?php esc_html_e( 'Robots directives for special archive contexts not covered by content types or taxonomies.', 'native-aeo-pack' ); ?> 4100 4123 </p> 4101 <div class="native-aeo-pack-notice native-aeo-pack-notice--warning"><span class="dashicons dashicons-warning" aria-hidden="true"></span><p><?php e sc_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> 4102 4125 4103 4126 <table class="form-table" role="presentation"> … … 4146 4169 <h2><?php esc_html_e( 'RSS feeds', 'native-aeo-pack' ); ?></h2> 4147 4170 <p class="native-aeo-pack-section-desc"> 4148 <?php e sc_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() ) ); ?> 4149 4172 </p> 4150 4173 … … 4500 4523 <p> 4501 4524 <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' ); ?> 4503 4526 </p> 4504 4527 <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' ); ?> 4506 4529 <?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' ); ?> 4508 4531 <?php endif; ?> 4509 4532 </p> … … 4543 4566 '' => array( 4544 4567 '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' ), 4546 4569 ), 4547 4570 'slug' => array( … … 4580 4603 </fieldset> 4581 4604 <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' ); ?> 4583 4606 </p> 4584 4607 <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' ); ?> 4586 4609 </p> 4587 4610 </td> … … 4653 4676 <p><strong><?php esc_html_e( 'WooCommerce store', 'native-aeo-pack' ); ?></strong></p> 4654 4677 <p> 4655 <?php e sc_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() ) ); ?> 4656 4679 </p> 4657 4680 <?php if ( ! empty( $defaults ) ) : ?> 4658 4681 <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() ) ); ?> 4663 4683 </p> 4664 4684 <?php if ( ! empty( $indexable ) ) : ?> … … 4700 4720 <p> 4701 4721 <?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() ) 4706 4729 ); 4707 4730 ?> … … 4714 4737 <div class="native-aeo-pack-notice native-aeo-pack-notice--info"> 4715 4738 <span class="dashicons dashicons-info" aria-hidden="true"></span> 4716 <p><?php e sc_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> 4717 4740 </div> 4718 4741 <?php … … 4794 4817 <p> 4795 4818 <strong><?php esc_html_e( 'WordPress is not publishing a sitemap on this site.', 'native-aeo-pack' ); ?></strong> 4796 <?php e sc_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() ) ); ?> 4797 4820 <a href="<?php echo esc_url( admin_url( 'options-reading.php' ) ); ?>"><?php esc_html_e( 'Change it in Settings > Reading', 'native-aeo-pack' ); ?></a> 4798 4821 </p> … … 4800 4823 <p> 4801 4824 <strong><?php esc_html_e( 'Something on this site is switching the WordPress sitemap off.', 'native-aeo-pack' ); ?></strong> 4802 <?php e sc_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() ) ); ?> 4803 4826 </p> 4804 4827 <?php if ( ! empty( $sources ) ) : ?> 4805 4828 <p> 4806 <?php esc_html_e( ' The filter is registered from:', 'native-aeo-pack' ); ?>4829 <?php esc_html_e( 'Registered from:', 'native-aeo-pack' ); ?> 4807 4830 <?php foreach ( $sources as $native_aeo_pack_src ) : ?> 4808 4831 <code><?php echo esc_html( $native_aeo_pack_src ); ?></code> … … 4812 4835 <?php endif; ?> 4813 4836 <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' ); ?> 4815 4838 </p> 4816 4839 </div> … … 4875 4898 <strong><?php esc_html_e( 'Another sitemap plugin is active:', 'native-aeo-pack' ); ?></strong> 4876 4899 <?php echo esc_html( implode( ', ', $sitemap_plugins ) ); ?>. 4877 <?php e sc_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() ) ); ?> 4878 4901 </p> 4879 4902 </div> … … 4988 5011 <h2><?php esc_html_e( 'Additional URLs', 'native-aeo-pack' ); ?></h2> 4989 5012 <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' ); ?> 4991 5014 </p> 4992 5015 … … 4999 5022 <td> 5000 5023 <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 e sc_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 e sc_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> 5003 5026 </td> 5004 5027 </tr> … … 5010 5033 <h2><?php esc_html_e( 'Behavior', 'native-aeo-pack' ); ?></h2> 5011 5034 <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 Indexingmodule.', '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' ); ?> 5013 5036 </p> 5014 5037 … … 5038 5061 <label> 5039 5062 <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 Indexingmodule.', 'native-aeo-pack' ); ?>5063 <?php esc_html_e( 'Automatically exclude any content flagged as noindex by the “Indexing” module.', 'native-aeo-pack' ); ?> 5041 5064 </label> 5042 5065 </td> … … 5047 5070 <label> 5048 5071 <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' ); ?> 5050 5073 </label> 5051 5074 </td> … … 5063 5086 // need it keep the translation they already have. 5064 5087 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' ); 5066 5089 } 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' ); 5068 5091 } 5069 5092 ?> … … 5108 5131 <?php if ( $no_address ) : ?> 5109 5132 <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' ); ?> 5111 5134 <?php endif; ?> 5112 5135 <?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' ); ?> 5114 5137 <?php endif; ?> 5115 5138 </p> … … 5152 5175 <div class="native-aeo-pack-subsection"> 5153 5176 <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> 5155 5178 <table class="form-table" role="presentation"> 5156 5179 <tbody> … … 5332 5355 </tbody> 5333 5356 </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 clockuse 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> 5335 5358 </td> 5336 5359 </tr> … … 5486 5509 </table> 5487 5510 <?php if ( 'LocalBusiness' === $type ) : ?> 5488 <p class="description"><?php esc_html_e( 'Each location is linked to the Site Identityas 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> 5489 5512 <?php elseif ( ! empty( $types[ $type ]['review'] ) ) : ?> 5490 5513 <p class="description"><?php esc_html_e( 'The review is set in each entry.', 'native-aeo-pack' ); ?></p> … … 5645 5668 <strong><?php esc_html_e( 'Search engines are being blocked site-wide.', 'native-aeo-pack' ); ?></strong> 5646 5669 <?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( 5648 5673 sprintf( 5649 5674 /* 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 thisoff.', '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' ), 5651 5676 '<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() ), 5652 5682 ) 5653 5683 ); … … 5688 5718 sprintf( 5689 5719 /* 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' ), 5691 5721 $names 5692 5722 ) … … 5698 5728 sprintf( 5699 5729 /* translators: %s: link to the Overview tab. */ 5700 esc_html__( 'Before deactivating it, you can bring its per-post SEO data overfrom the %s.', 'native-aeo-pack' ),5730 esc_html__( 'Before deactivating it, import its per-post SEO data from the %s.', 'native-aeo-pack' ), 5701 5731 '<a href="' . esc_url( admin_url( 'admin.php?page=' . NATIVE_AEO_PACK_SLUG ) ) . '">' . esc_html__( 'Overview tab', 'native-aeo-pack' ) . '</a>' 5702 5732 ) … … 5728 5758 sprintf( 5729 5759 /* 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' ), 5731 5761 $names 5732 5762 ) … … 6204 6234 } 6205 6235 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 6206 6336 // A save with "Respect nosnippet" on, switched on just now or on already, 6207 6337 // leaves the notice that says it is off with nothing true to say. … … 6285 6415 */ 6286 6416 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; 6290 6434 } 6291 6435 } -
native-aeo-pack/trunk/includes/class-importer.php
r3824861 r3830593 2645 2645 $out['redirect_attachment'] = ( '' !== $mode && 'disabled' !== $mode ); 2646 2646 } 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 } 2647 2654 } 2648 2655 // Default social image (stored as a URL) under social.facebook. -
native-aeo-pack/trunk/includes/class-link-popup.php
r3572180 r3830593 1 1 <?php 2 2 /** 3 * Visibility — `rel ="nofollow"` checkboxfor the Classic Editor `wpLink` modal.3 * Visibility — `rel` checkboxes for the Classic Editor `wpLink` modal. 4 4 * 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()`. 9 11 * 10 12 * @package Native_AEO_Pack … … 30 32 public static function init() { 31 33 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' ); 32 59 } 33 60 … … 54 81 'nativeAeoPackLinkPopup', 55 82 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' ), 57 86 ) 58 87 ); -
native-aeo-pack/trunk/includes/class-meta-box.php
r3825053 r3830593 128 128 ); 129 129 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). 131 131 wp_enqueue_script( 'native-aeo-pack-template-tags', NATIVE_AEO_PACK_URL . 'assets/js/template-tags.js', array(), NATIVE_AEO_PACK_VERSION, true ); 132 132 … … 303 303 data-auto-title-format="<?php echo esc_attr( $preview_ctx['titleFormat'] ); ?>" 304 304 /> 305 <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-mb-title', 'title' ); ?> 305 306 <span class="description"> 306 307 <?php 307 308 if ( $has_template ) { 308 e sc_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><title></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() ) ); 309 310 } else { 310 e sc_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><title></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() ) ); 311 312 } 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 );326 313 ?> 327 314 <?php self::render_char_count( 'native-aeo-pack-mb-title', $title ); ?> … … 340 327 placeholder="<?php esc_attr_e( 'Leave empty to auto-generate from the excerpt or content.', 'native-aeo-pack' ); ?>" 341 328 ><?php echo esc_textarea( $description ); ?></textarea> 329 <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-mb-description', 'description' ); ?> 342 330 <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' ); ?> 358 332 <?php self::render_char_count( 'native-aeo-pack-mb-description', $description ); ?> 359 333 </span> … … 377 351 placeholder="<?php esc_attr_e( 'Leave empty to use the permalink.', 'native-aeo-pack' ); ?>" 378 352 /> 379 <span class="description"><?php e sc_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> 380 354 </p> 381 355 … … 397 371 placeholder="<?php esc_attr_e( 'Leave empty to use the meta title.', 'native-aeo-pack' ); ?>" 398 372 /> 399 <span class="description"><?php e sc_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> 400 374 </p> 401 375 … … 411 385 placeholder="<?php esc_attr_e( 'Leave empty to use the meta description.', 'native-aeo-pack' ); ?>" 412 386 ><?php echo esc_textarea( $og_description ); ?></textarea> 413 <span class="description"><?php e sc_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> 414 388 </p> 415 389 … … 423 397 </button> 424 398 </div> 425 <p class="description"><?php e sc_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> 426 400 </div><!-- .native-aeo-pack-mb-pane social --> 427 401 … … 482 456 <?php endforeach; ?> 483 457 </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> 485 459 <?php 486 460 // Profile pages (2.8.0): whose profile this page is, or whose profile … … 539 513 <?php endforeach; ?> 540 514 </select> 541 <span class="description"><?php esc_html_e( 'What this entry is about, linked to its schema type. Default follows the Discovertab.', '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> 542 516 </p> 543 517 … … 718 692 <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> 719 693 <?php elseif ( 'JobPosting' === $type || 'DiscussionForumPosting' === $type ) : ?> 720 <p class="description"><?php e sc_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> 721 695 <?php endif; ?> 722 696 </div> … … 874 848 <p><strong><?php esc_html_e( 'Opening hours', 'native-aeo-pack' ); ?></strong> 875 849 <?php if ( $inherited ) : ?> 876 <span class="description"><?php esc_html_e( 'With no day ticked, the Site Identityhours.', 'native-aeo-pack' ); ?></span>850 <span class="description"><?php esc_html_e( 'With no day ticked, the “Site Identity” hours.', 'native-aeo-pack' ); ?></span> 877 851 <?php endif; ?> 878 852 </p> … … 988 962 'label' => __( 'Set as noindex', 'native-aeo-pack' ), 989 963 /* translators: %s: post type label. */ 990 'note' => __( 'All %s are set to noindexin 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' ), 991 965 ), 992 966 'nofollow' => array( … … 995 969 'label' => __( 'Set as nofollow', 'native-aeo-pack' ), 996 970 /* translators: %s: post type label. */ 997 'note' => __( 'All %s are set to nofollowin 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' ), 998 972 ), 999 973 'noimageindex' => array( … … 1002 976 'label' => __( 'Set as noimageindex', 'native-aeo-pack' ), 1003 977 /* translators: %s: post type label. */ 1004 'note' => __( 'All %s are set to noimageindexin 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' ), 1005 979 ), 1006 980 'nosnippet' => array( … … 1009 983 'label' => __( 'Set as nosnippet', 'native-aeo-pack' ), 1010 984 /* translators: %s: post type label. */ 1011 'note' => __( 'All %s are set to nosnippetin 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' ), 1012 986 ), 1013 987 ); … … 1039 1013 </label> 1040 1014 <?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> 1042 1016 <?php endif; ?> 1043 1017 </div> … … 1055 1029 1056 1030 <p class="description"> 1057 <?php e sc_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() ) ); ?> 1058 1032 </p> 1059 1033 … … 1081 1055 <?php esc_html_e( 'Out of llms.txt', 'native-aeo-pack' ); ?> 1082 1056 </label> 1083 <p class="description"><?php e sc_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> 1084 1058 <input type="hidden" name="native_aeo_pack_llms_present" value="1" /> 1085 1059 </div> -
native-aeo-pack/trunk/includes/class-preview.php
r3702795 r3830593 135 135 'aiBadge' => __( 'AI Overview', 'native-aeo-pack' ), 136 136 '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' ), 138 138 ); 139 139 } -
native-aeo-pack/trunk/includes/class-quick-edit.php
r3824861 r3830593 515 515 ? array() 516 516 : (array) Native_AEO_Pack_Settings::get( 'noindex', $settings_key, array() ); 517 $count = 0; 517 $count = 0; 518 $shared_groups = array(); 518 519 519 520 foreach ( $post_ids as $post_id ) { … … 542 543 } 543 544 } 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 } 546 558 ++$count; 547 559 } … … 580 592 case 'native_aeo_pack_set_noindex': 581 593 /* 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 ); 583 595 break; 584 596 case 'native_aeo_pack_unset_noindex': … … 588 600 case 'native_aeo_pack_set_nofollow': 589 601 /* 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 ); 591 603 break; 592 604 case 'native_aeo_pack_unset_nofollow': … … 614 626 } 615 627 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() ) ) ); 617 629 } 618 630 } -
native-aeo-pack/trunk/includes/class-redirects.php
r3827553 r3830593 859 859 } 860 860 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 ); 862 866 } 863 867 … … 999 1003 1000 1004 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 ); 1001 1067 } 1002 1068 … … 1241 1307 add_action( 'wp_ajax_native_aeo_pack_redirect_bulk_dismiss', array( __CLASS__, 'ajax_bulk_dismiss' ) ); 1242 1308 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' ) ); 1243 1310 1244 1311 add_action( 'admin_post_native_aeo_pack_redirect_export', array( __CLASS__, 'handle_export' ) ); -
native-aeo-pack/trunk/includes/class-schema-entities.php
r3827553 r3830593 777 777 778 778 case 'short': 779 return self::cut( trim( s anitize_text_field( $value ) ), 40 );779 return self::cut( trim( self::plain_text( $value ) ), 40 ); 780 780 781 781 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 ); 784 803 } 785 804 … … 794 813 private static function clean_lines( $value, $max, $chars ) { 795 814 $lines = array(); 796 foreach ( preg_split( '/\r\n|\r|\n/', s anitize_textarea_field( $value ) ) as $line ) {815 foreach ( preg_split( '/\r\n|\r|\n/', self::plain_text( $value, true ) ) as $line ) { 797 816 $line = self::cut( trim( $line ), $chars ); 798 817 if ( '' !== $line && ! in_array( $line, $lines, true ) && count( $lines ) < $max ) { … … 2289 2308 2290 2309 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 Discovertab, 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' ) ); 2292 2311 return $out; 2293 2312 } 2294 2313 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' ) ); 2296 2315 return $out; 2297 2316 } … … 2308 2327 } 2309 2328 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' ) ); 2311 2330 return $out; 2312 2331 } … … 2415 2434 'online_url' => __( 'An online event needs the address where it is followed. Until it has one, nothing is written for it.', 'native-aeo-pack' ), 2416 2435 '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' ), 2419 2438 'authors' => __( 'A book needs its author. Until it has one, nothing is written for it.', 'native-aeo-pack' ), 2420 2439 'by_artist' => __( 'A recording needs its artist. Until it has one, nothing is written for it.', 'native-aeo-pack' ), … … 2422 2441 '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' ), 2423 2442 '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' ), 2425 2444 'description' => __( 'A course needs a description: the meta description of the entry. Until it has one, nothing is written for it.', 'native-aeo-pack' ), 2426 2445 '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' ), 2428 2447 'date_posted' => __( 'Google needs the date the job was posted. Until it has one, nothing is written for it.', 'native-aeo-pack' ), 2429 2448 'hiring' => __( 'Google needs who is hiring. Until it has one, nothing is written for this job.', 'native-aeo-pack' ), 2430 2449 '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' ), 2432 2451 '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' ), 2434 2453 'steps' => __( 'A how-to needs its steps. Until it has them, nothing is written for it.', 'native-aeo-pack' ), 2435 2454 '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' ), 2437 2456 'claim' => __( 'A fact check needs the claim it checks. Until it has one, nothing is written for it.', 'native-aeo-pack' ), 2438 2457 'verdict' => __( 'A fact check needs your verdict, such as False or Misleading. Until it has one, nothing is written for it.', 'native-aeo-pack' ), … … 2449 2468 } 2450 2469 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' ) ); 2452 2471 } 2453 2472 if ( ! empty( $missing ) ) { … … 2461 2480 $written = array( 2462 2481 /* 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' ), 2464 2483 'Person' => $no_rich, 2465 2484 'Service' => $no_rich, … … 2472 2491 'Recipe' => $plain, 2473 2492 /* 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' ), 2475 2494 'Movie' => $plain, 2476 2495 'MusicRecording' => $no_rich, … … 2491 2510 $result['parent'] 2492 2511 /* translators: %s: schema.org type of the business, such as Dentist. */ 2493 ? __( 'Written as %s, linked to this page and to your Site Identityas 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' ) 2494 2513 : $plain, 2495 2514 $node_type … … 3251 3270 'OutOfStock' => __( 'Out of stock', 'native-aeo-pack' ), 3252 3271 'PreOrder' => __( 'Pre-order', 'native-aeo-pack' ), 3253 'identity' => __( 'At the Site Identityaddress', 'native-aeo-pack' ),3272 'identity' => __( 'At the “Site Identity” address', 'native-aeo-pack' ), 3254 3273 'online' => __( 'Online', 'native-aeo-pack' ), 3255 3274 'other' => __( 'Another address', 'native-aeo-pack' ), … … 3276 3295 'BrowserApplication' => __( 'Browser', 'native-aeo-pack' ), 3277 3296 'CommunicationApplication' => __( 'Communication', 'native-aeo-pack' ), 3278 'HomeApplication' => _ _( 'Home', 'native-aeo-pack' ),3297 'HomeApplication' => _x( 'Home', 'app category, schema.org HomeApplication', 'native-aeo-pack' ), 3279 3298 'FULL_TIME' => __( 'Full time', 'native-aeo-pack' ), 3280 3299 'PART_TIME' => __( 'Part time', 'native-aeo-pack' ), … … 3341 3360 return __( 'Holidays and closures. Each one stops being written once its last day has passed.', 'native-aeo-pack' ); 3342 3361 case 'venue': 3343 return __( 'Left empty, the address, or the Site Identityname.', 'native-aeo-pack' );3362 return __( 'Left empty, the address, or the “Site Identity” name.', 'native-aeo-pack' ); 3344 3363 case 'prep_time': 3345 3364 case 'cook_time': -
native-aeo-pack/trunk/includes/class-settings.php
r3824861 r3830593 1037 1037 * The order here is the order the block is written to robots.txt. 1038 1038 * 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 * 1039 1054 * @return array<string,array<int,string>> 1040 1055 */ … … 1055 1070 'ImagesiftBot', 1056 1071 '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', 1057 1101 ), 1058 1102 'search' => array( … … 1062 1106 'PerplexityBot', 1063 1107 'YouBot', 1108 'Claude-SearchBot', 1109 'Claude-User', 1110 'ExaSearchBot', 1111 'Kimi-SearchBot', 1112 'Kimi-User', 1113 'MistralAI-Index', 1114 'MistralAI-User', 1115 'SBIntuitions-SearchBot', 1064 1116 ), 1065 1117 ); 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 ); 1066 1188 } 1067 1189 … … 1082 1204 'training' => array( 1083 1205 '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 themcan 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' ), 1085 1207 ), 1086 1208 'search' => array( -
native-aeo-pack/trunk/includes/class-sitemap.php
r3824861 r3830593 661 661 */ 662 662 public static function column_icon( $post_id ) { 663 $ excluded = self::is_post_excluded( $post_id );663 $reason = self::post_exclusion_reason( $post_id ); 664 664 665 665 return array( 666 666 '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' ), 669 669 ); 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' ); 670 699 } 671 700 … … 746 775 /** 747 776 * 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()). 752 778 * 753 779 * @param int $post_id Post ID. … … 755 781 */ 756 782 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 ) { 757 801 $post_id = absint( $post_id ); 758 802 if ( $post_id < 1 ) { 759 return false;803 return ''; 760 804 } 761 805 762 806 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 } 764 819 } 765 820 … … 767 822 $excluded_types = (array) Native_AEO_Pack_Settings::get( 'sitemap', 'excluded_post_types', array() ); 768 823 if ( in_array( $post_type, $excluded_types, true ) ) { 769 return true;824 return 'content_type'; 770 825 } 771 826 … … 774 829 $ids = array_map( 'absint', array_filter( array_map( 'trim', explode( "\n", $ids_setting ) ), 'is_numeric' ) ); 775 830 if ( in_array( $post_id, $ids, true ) ) { 776 return true;831 return 'id'; 777 832 } 778 833 } … … 786 841 $pattern = sanitize_title( $pattern ); 787 842 if ( '' !== $slug && '' !== $pattern && false !== strpos( $slug, $pattern ) ) { 788 return true;843 return 'slug'; 789 844 } 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;801 845 } 802 846 } … … 806 850 $custom = (string) get_post_meta( $post_id, Native_AEO_Pack_Post_Meta::CANONICAL, true ); 807 851 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 ''; 813 857 } 814 858 … … 1243 1287 */ 1244 1288 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 ) { 1245 1302 $term_id = absint( $term_id ); 1246 1303 if ( $term_id < 1 ) { 1247 return false;1304 return ''; 1248 1305 } 1249 1306 1250 1307 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 } 1252 1320 } 1253 1321 1254 1322 if ( in_array( $taxonomy, (array) Native_AEO_Pack_Settings::get( 'sitemap', 'excluded_taxonomies', array() ), true ) ) { 1255 return true;1323 return 'taxonomy'; 1256 1324 } 1257 1325 … … 1260 1328 $ids = array_map( 'absint', array_filter( array_map( 'trim', explode( "\n", $ids_setting ) ), 'is_numeric' ) ); 1261 1329 if ( in_array( $term_id, $ids, true ) ) { 1262 return true;1330 return 'id'; 1263 1331 } 1264 1332 } … … 1272 1340 $pattern = sanitize_title( $pattern ); 1273 1341 if ( '' !== $slug && '' !== $pattern && false !== strpos( $slug, $pattern ) ) { 1274 return true;1342 return 'slug'; 1275 1343 } 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;1287 1344 } 1288 1345 } … … 1293 1350 $link = '' !== $custom ? get_term_link( $term_id, $taxonomy ) : ''; 1294 1351 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 ''; 1300 1357 } 1301 1358 … … 1308 1365 */ 1309 1366 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 ); 1311 1368 1312 1369 return array( 1313 1370 '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' ), 1316 1373 ); 1317 1374 } -
native-aeo-pack/trunk/includes/class-static-sitemap-detector.php
r3670061 r3830593 155 155 <p> 156 156 <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' ); ?> 158 158 </p> 159 159 <table class="native-aeo-pack-static-files-table"> … … 182 182 <?php if ( $can ) : ?> 183 183 <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' ); ?> 185 185 </p> 186 186 <?php else : ?> 187 187 <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' ); ?> 192 189 </p> 193 190 <?php endif; ?> -
native-aeo-pack/trunk/includes/class-term-editor.php
r3824861 r3830593 174 174 placeholder="<?php esc_attr_e( 'Leave empty to use the term name.', 'native-aeo-pack' ); ?>" 175 175 /> 176 <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-term-title', 'title', 'term' ); ?> 176 177 <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><title></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' ); ?> 192 180 </p> 193 181 </td> … … 205 193 placeholder="<?php esc_attr_e( 'Leave empty to use the term description.', 'native-aeo-pack' ); ?>" 206 194 ><?php echo esc_textarea( $description ); ?></textarea> 195 <?php Native_AEO_Pack_Title_Template::print_tags_row( 'native-aeo-pack-term-description', 'description', 'term' ); ?> 207 196 <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() ) ); ?> 222 198 </p> 223 199 </td> … … 235 211 placeholder="<?php esc_attr_e( 'Leave empty to use the address of this archive.', 'native-aeo-pack' ); ?>" 236 212 /> 237 <p class="description"><?php e sc_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> 238 214 </td> 239 215 </tr> … … 266 242 <p class="description"> 267 243 <?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() ) 272 251 ); 273 252 ?> … … 284 263 <p class="description"> 285 264 <?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() ) 290 272 ); 291 273 ?> … … 310 292 </p> 311 293 <p class="description"> 312 <?php e sc_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() ) ); ?> 313 295 </p> 314 296 -
native-aeo-pack/trunk/includes/class-title-template.php
r3824861 r3830593 230 230 231 231 /** 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 251 332 ), 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 ) 270 348 ); 271 349 } -
native-aeo-pack/trunk/includes/class-user-profile.php
r3791627 r3830593 301 301 </h2> 302 302 <p class="description"> 303 <?php e sc_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() ) ); ?> 304 304 </p> 305 305 <?php … … 311 311 <p> 312 312 <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 eitherpage.', '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' ); ?> 314 314 <?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' ); ?> 316 316 <?php endif; ?> 317 317 </p> … … 372 372 <p class="description"> 373 373 <?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() ) 378 381 ); 379 382 ?> … … 389 392 </h2> 390 393 <p class="description"> 391 <?php e sc_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() ) ); ?> 392 395 </p> 393 396 <table class="form-table" role="presentation"> … … 789 792 </h2> 790 793 <p class="description"> 791 <?php e sc_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() ) ); ?> 792 795 </p> 793 796 <table class="form-table" role="presentation"> -
native-aeo-pack/trunk/native-aeo-pack.php
r3827553 r3830593 4 4 * Plugin URI: https://visibility.quest 5 5 * 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. 06 * Version: 3.4.1 7 7 * Requires at least: 6.1 8 8 * Requires PHP: 7.4 … … 21 21 } 22 22 23 define( 'NATIVE_AEO_PACK_VERSION', '3.4. 0' );23 define( 'NATIVE_AEO_PACK_VERSION', '3.4.1' ); 24 24 define( 'NATIVE_AEO_PACK_SLUG', 'native-aeo-pack' ); 25 25 define( 'NATIVE_AEO_PACK_FILE', __FILE__ ); … … 759 759 } 760 760 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 761 770 // When the dates of the Author details seen on the page began to be kept 762 771 // (3.2.4): the profile waits a whole period from here before saying the -
native-aeo-pack/trunk/readme.txt
r3828380 r3830593 3 3 Tags: ai seo, redirects, noindex, schema, sitemap 4 4 Requires at least: 6.1 5 Tested up to: 7. 15 Tested up to: 7.2 6 6 Requires PHP: 7.4 7 Stable tag: 3.4. 07 Stable tag: 3.4.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 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. 16 16 17 17 * **Free, all of it.** No Pro version, no upsell banners, no account. … … 19 19 * **Light.** Built on WordPress core APIs, with no database tables of its own and no cron jobs. 20 20 * **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.txtand 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. 22 22 23 23 = Four modules, switch on only what you need = … … 28 28 * Canonical URLs on entries and on every listing. 29 29 * 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. 31 31 * 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. 32 32 * 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.txteditor 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`. 35 35 * A filter for content that has not been updated in a while. 36 36 37 37 **Indexing: noindex and clean URLs** 38 38 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. 40 40 * Rules for search results, 404, date, paginated, attachment and author archives, and for RSS feeds. 41 41 * Keep part of a page out of Google's snippets with `data-nosnippet`, from the block editor or the classic editor. … … 48 48 * Exclude post types, taxonomies, users, posts and terms. Noindexed content stays out automatically, and so does content whose canonical URL points to another address. 49 49 * Add URLs of pages served outside WordPress. 50 * lastmoddates, 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. 51 51 * Keeps `/wp-sitemap.xml` answering 200 on a site with no blog posts, which older WordPress versions got wrong. 52 52 53 53 **Redirects: 301, 302, 307 and 410** 54 54 55 * Managed from the admin: no .htaccessediting, no custom table, no 404 log.55 * Managed from the admin: no `.htaccess` editing, no custom table, no 404 log. 56 56 * CSV import and export. 57 57 * A suggested redirect when you delete a post. … … 63 63 * 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. 64 64 * 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 noindexrules. 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. 66 66 * Multilingual: works with WPML and Polylang, with a folder or a domain per language. 67 67 * Visibility replaces a full SEO plugin instead of running next to one, and warns you if another one is active. … … 85 85 == External services == 86 86 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 Personschema (`image`).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`). 88 88 89 89 * **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 Personschema 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. 91 91 * **How often:** the result is cached for 24 hours, so later page loads do not contact Gravatar again. 92 92 … … 180 180 181 181 * **Freshness:** a filter and a Last updated column for content that has gone stale. 182 * **Authorship:** author details in Personschema and on the page.183 * **Questions and answers:** FAQPagefrom 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. 184 184 185 185 No plugin can promise you a citation. … … 190 190 191 191 * 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. 193 193 * A Markdown version of every page at its `.md` URL. 194 * A robots.txteditor to allow or block AI crawlers by name.194 * A `robots.txt` editor to allow or block AI crawlers by name. 195 195 196 196 The companion plugin VigIA shows which AI crawlers actually visit. … … 234 234 Both 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. 235 235 236 Keep expectations realistic: llms.txtis a proposed convention, not a standard. Google has said it ignores it and no major AI vendor has confirmed support.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. 237 237 238 238 = Does Visibility add schema markup and structured data? = … … 240 240 Yes, as a single JSON-LD graph, with per-post and per-term overrides: 241 241 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`. 243 243 * 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 ProfilePagefor authors.246 * FAQPagefrom Details and Accordion blocks.247 * WebSiteon the home page, with the site name.248 * Site Identity ( Organization, LocalBusiness or Person).249 250 On WooCommerce products, WooCommerce writes the Productand 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 250 On WooCommerce products, WooCommerce writes the `Product` and Visibility adds nothing about them. 251 251 252 252 = How do I add a recipe, an event or a product to an entry? = … … 265 265 Yes. In **Discover > Site Identity** pick **Local business** as the entity type: 266 266 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`. 268 268 * Address and coordinates. 269 269 * Phone and email. … … 301 301 ` 302 302 303 Google asks for each location to be a LocalBusinessof its own, with the address of its page in `url`.303 Google asks for each location to be a `LocalBusiness` of its own, with the address of its page in `url`. 304 304 305 305 = How do I tell Google the name of my site? = … … 310 310 * **Alternate names**: an acronym or a shorter name, one per line. 311 311 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 WebSiteis written with Site Identity off too.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. 313 313 314 314 Google decides which name to show. Keep the site title, or the title of your home page, consistent with it. … … 328 328 * **One entry:** pick **None** in its Schema type field. 329 329 330 None adds no Article, BreadcrumbList or FAQPageto that content. Site Identity is a separate setting and keeps working. Developers can also use the `native_aeo_pack_schema_graph` filter.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. 331 331 332 332 = Does Visibility mark up author pages as ProfilePage? = 333 333 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.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. 337 337 338 338 An author is anyone who can write posts or pages, or has a published post. … … 380 380 * 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. 381 381 * Add URLs of pages that are not WordPress content. 382 * Set lastmoddates and the number of URLs per sitemap.382 * Set `lastmod` dates and the number of URLs per sitemap. 383 383 * The sitemap URLs of your previous SEO plugin (`sitemap.xml`, `post-sitemap.xml`) are 301-redirected to the native one. 384 384 … … 422 422 Yes. 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. 423 423 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.txtcarries it too.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. 425 425 426 426 = Does Visibility work with WooCommerce? = … … 430 430 * Products, categories, tags and attributes get titles, descriptions, social tags, schema and robots rules like any other content. 431 431 * The product gallery image is a fallback for `og:image`. 432 * llms.txtis WooCommerce-aware.432 * `llms.txt` is WooCommerce-aware. 433 433 * Cleaner product and category URLs: see "Can I clean up my WooCommerce URLs?". 434 434 435 It does not add Productschema: WooCommerce already does, with price, stock and reviews.435 It does not add `Product` schema: WooCommerce already does, with price, stock and reviews. 436 436 437 437 = Does it work with custom post types and custom taxonomies? = … … 465 465 = How do I set noindex on a single post? = 466 466 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.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. 468 468 469 469 You can also use Quick Edit or Bulk Actions in the post list, and in the category, tag and taxonomy lists. … … 474 474 * **Classic editor:** use the button of the same name in the Visual toolbar, or `nosnippet` in the Text tab. 475 475 476 Visibility also leaves that text out of the descriptions and summaries it generates. The Markdown version and llms-full.txtkeep the whole page.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. 477 477 478 478 The mark on a Group stops applying if you deactivate Visibility. The one on words stays in the content. … … 480 480 = What does Respect nosnippet do? = 481 481 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.txtby 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`, 486 486 * has no Markdown version, 487 * gets no FAQPage.487 * gets no `FAQPage`. 488 488 489 489 It is on in new installs. On an update it turns on only if that changes nothing your site already serves. … … 512 512 513 513 * The Meta title, Meta description and social title and description of each entry are translated with the entry. 514 * Robots, sitemap and llms.txtchoices 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. 515 515 * 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. 516 516 * 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.txtand 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. 518 518 * Categories and tags: fill in their SEO fields on each translation. 519 * Each language gets its own `og:locale`, llms.txt, llms-full.txtand Markdown versions.519 * Each language gets its own `og:locale`, `llms.txt`, `llms-full.txt` and Markdown versions. 520 520 * 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`). 521 521 … … 524 524 * 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. 525 525 * 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. 527 527 * 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. 528 528 529 529 = Does the sitemap include every language? = 530 530 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.txtcovers them all.532 * Polylang does the same itself. Exclusions, noindex and lastmodwork 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 hreflangin 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. 535 535 536 536 = Where does Visibility store per-post overrides? = … … 566 566 * A page or a term that already uses a path keeps it. 567 567 * 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. 569 569 570 570 = Does Visibility generate FAQ structured data? = … … 586 586 Change what is printed, with eight filters: 587 587 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 WebSitenode 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. 589 589 * `native_aeo_pack_identity_business_types` (`$types`): the schema.org types offered for a local business identity. 590 590 * `native_aeo_pack_identity_food_types` (`$types`): the business types that take a cuisine and a menu. … … 593 593 * `native_aeo_pack_meta_description` (`$description`): the final description, used in the meta tag, Open Graph, the Twitter card and the schema. 594 594 * `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. 596 596 597 597 React to what an AI agent changed through the abilities, with these actions: … … 617 617 == Changelog == 618 618 619 = 3.4.1 = 620 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. 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 619 638 = 3.4.0 = 620 639 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. … … 633 652 == Upgrade Notice == 634 653 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 = 655 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. 637 656 638 657 == Support ==
Note:
See TracChangeset
for help on using the changeset viewer.