plugin updates

This commit is contained in:
Tony Volpe
2024-10-24 12:57:16 -04:00
parent 8217f0dbed
commit 5e040c9234
399 changed files with 3377 additions and 46318 deletions

View File

@@ -0,0 +1,37 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"version": "23.0",
"name": "yoast-seo/estimated-reading-time",
"title": "Yoast Estimated Reading Time",
"description": "Shows an estimated reading time based on the content length.",
"category": "yoast-structured-data-blocks",
"icon": "clock",
"keywords": [
"SEO",
"reading time",
"content length"
],
"textdomain": "wordpress-seo-premium",
"attributes": {
"estimatedReadingTime": {
"type": "number",
"default": 0
},
"descriptiveText": {
"type": "string",
"default": "Estimated reading time:"
},
"showDescriptiveText": {
"type": "boolean",
"default": true
},
"showIcon": {
"type": "boolean",
"default": true
}
},
"example": {
"attributes": {}
}
}

View File

@@ -0,0 +1,37 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"version": "23.0",
"name": "yoast-seo/related-links",
"title": "Yoast Related Links",
"description": "Adds a list of links related to this page.",
"category": "yoast-internal-linking-blocks",
"icon": "editor-ul",
"keywords": [
"SEO",
"internal linking",
"site structure",
"related posts",
"related pages"
],
"textdomain": "wordpress-seo-premium",
"attributes": {
"status": {
"type": "string",
"default": "loading"
},
"values": {
"type": "string",
"source": "html",
"selector": "ul",
"multiline": "li",
"default": ""
}
},
"example": {
"attributes": {
"status": "loaded",
"values": "<li><a href='https://example.org'>Related link 1</a></li> <li><a href='https://example.org'>Related link 2</a></li> <li><a href='https://example.org'>Related link 3</a></li>"
}
}
}

View File

@@ -0,0 +1,80 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"version": "23.1",
"name": "yoast-seo/table-of-contents",
"title": "Yoast Table of Contents",
"description": "Adds a table of contents to this page.",
"category": "yoast-internal-linking-blocks",
"icon": "editor-ul",
"keywords": [
"SEO",
"links",
"toc",
"site structure"
],
"textdomain": "wordpress-seo-premium",
"attributes": {
"title": {
"type": "string",
"source": "html",
"selector": "h1,h2,h3,h4,h5,h6",
"default": "Table of contents"
},
"level": {
"type": "number",
"default": 2
},
"maxHeadingLevel": {
"type": "number",
"default": 3
},
"headings": {
"type": "array",
"source": "query",
"selector": "a",
"query": {
"content": {
"type": "string",
"source": "html"
},
"href": {
"type": "string",
"source": "attribute",
"attribute": "href"
},
"level": {
"type": "string",
"source": "attribute",
"attribute": "data-level"
}
}
}
},
"example": {
"attributes": {
"headings": [
{
"content": "Heading 1",
"href": "#heading-1",
"level": "2"
},
{
"content": "Subheading 1",
"href": "#subheading-1",
"level": "3"
},
{
"content": "Subheading 2",
"href": "#subheading-2",
"level": "3"
},
{
"content": "Heading 2",
"href": "#heading-2",
"level": "2"
}
]
}
}
}

View File

@@ -0,0 +1 @@
.yst-diff{border-radius:4px;font-weight:500;margin-right:2px;margin-left:2px;padding:2px 6px}ins.yst-diff{background-color:#dcfce7;border:1px solid #86efac;color:#14532d;text-decoration:none}del.yst-diff{background-color:#fee2e2;border:1px solid #fca5a5;color:#7f1d1d}

View File

@@ -0,0 +1 @@
.yst-diff{border-radius:4px;font-weight:500;margin-left:2px;margin-right:2px;padding:2px 6px}ins.yst-diff{background-color:#dcfce7;border:1px solid #86efac;color:#14532d;text-decoration:none}del.yst-diff{background-color:#fee2e2;border:1px solid #fca5a5;color:#7f1d1d}

View File

@@ -1 +0,0 @@
.yst-root button.yst-replacevar__use-ai-button{align-items:center;background-color:#f7f7f7;border:1px solid #dbdbdb;border-radius:4px;box-shadow:inset 0 -2px 0 0 #0000001a;box-sizing:border-box;color:#303030;cursor:pointer;display:flex;min-height:32px;padding:0 .5em;transition:var(--yoast-transition-default)}.yst-root button.yst-replacevar__use-ai-button:hover{background-color:#fff;border-color:var(--yoast-color-border--default);color:#000}.yst-root .yst-logo-icon{background-color:var(--yoast-color-primary);display:inline-block;mask-image:var(--yoast-svg-icon-yoast);-webkit-mask-image:var(--yoast-svg-icon-yoast);mask-size:100% 100%;-webkit-mask-size:100% 100%}.yst-root .yst-ai-mode .yst-radio-group__options{flex-direction:row;gap:1.5rem}.yst-root .yst-length-progress-bar.yst-score-good .yst-progress-bar__progress{background-color:#7ad03a}.yst-root .yst-length-progress-bar.yst-score-ok .yst-progress-bar__progress{background-color:#ee7c1b}.yst-root .yst-length-progress-bar.yst-score-bad .yst-progress-bar__progress{background-color:#dc3232}.yst-root .yst-suggestions-radio-group .yst-radio-group__options{gap:0}.yst-root .yst-suggestions-radio-group .yst-radio-group__options>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1px*var(--tw-space-y-reverse));margin-top:calc(-1px*(1 - var(--tw-space-y-reverse)))}.yst-root .yst-introduction-modal .yst-modal__close-button{--tw-text-opacity:1;background-color:initial;color:rgb(107 114 128/var(--tw-text-opacity))}.yst-root .yst-introduction-modal .yst-modal__close-button:focus{--tw-ring-offset-width:0px;outline:2px solid #0000;outline-offset:2px}.yst-root .yst-ai-modal .yst-modal__panel{overflow:visible}.yst-root .yst-revoke-button .yst-animate-spin{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.yst-root #facebookPreview,.yst-root #twitterPreview,.yst-root #yoast-snippet-preview-container{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));margin-right:auto;margin-left:auto}.yst-root #yoast-snippet-preview-container{border-bottom:1px hidden #fff;border-radius:8px;box-shadow:0 1px 6px #20212447}.yst-root .desktop #yoast-snippet-preview-container{padding:12px 16px}

View File

@@ -1 +0,0 @@
.yst-root button.yst-replacevar__use-ai-button{align-items:center;background-color:#f7f7f7;border:1px solid #dbdbdb;border-radius:4px;box-shadow:inset 0 -2px 0 0 #0000001a;box-sizing:border-box;color:#303030;cursor:pointer;display:flex;min-height:32px;padding:0 .5em;transition:var(--yoast-transition-default)}.yst-root button.yst-replacevar__use-ai-button:hover{background-color:#fff;border-color:var(--yoast-color-border--default);color:#000}.yst-root .yst-logo-icon{background-color:var(--yoast-color-primary);display:inline-block;mask-image:var(--yoast-svg-icon-yoast);-webkit-mask-image:var(--yoast-svg-icon-yoast);mask-size:100% 100%;-webkit-mask-size:100% 100%}.yst-root .yst-ai-mode .yst-radio-group__options{flex-direction:row;gap:1.5rem}.yst-root .yst-length-progress-bar.yst-score-good .yst-progress-bar__progress{background-color:#7ad03a}.yst-root .yst-length-progress-bar.yst-score-ok .yst-progress-bar__progress{background-color:#ee7c1b}.yst-root .yst-length-progress-bar.yst-score-bad .yst-progress-bar__progress{background-color:#dc3232}.yst-root .yst-suggestions-radio-group .yst-radio-group__options{gap:0}.yst-root .yst-suggestions-radio-group .yst-radio-group__options>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1px*var(--tw-space-y-reverse));margin-top:calc(-1px*(1 - var(--tw-space-y-reverse)))}.yst-root .yst-introduction-modal .yst-modal__close-button{--tw-text-opacity:1;background-color:initial;color:rgb(107 114 128/var(--tw-text-opacity))}.yst-root .yst-introduction-modal .yst-modal__close-button:focus{--tw-ring-offset-width:0px;outline:2px solid #0000;outline-offset:2px}.yst-root .yst-ai-modal .yst-modal__panel{overflow:visible}.yst-root .yst-revoke-button .yst-animate-spin{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.yst-root #facebookPreview,.yst-root #twitterPreview,.yst-root #yoast-snippet-preview-container{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));margin-left:auto;margin-right:auto}.yst-root #yoast-snippet-preview-container{border-bottom:1px hidden #fff;border-radius:8px;box-shadow:0 1px 6px #20212447}.yst-root .desktop #yoast-snippet-preview-container{padding:12px 16px}

View File

@@ -0,0 +1 @@
.yst-root button.yst-replacevar__use-ai-button{align-items:center;background-color:#f7f7f7;border:1px solid #dbdbdb;border-radius:4px;box-shadow:inset 0 -2px 0 0 #0000001a;box-sizing:border-box;color:#303030;cursor:pointer;display:flex;min-height:32px;padding:0 .5em;transition:var(--yoast-transition-default)}.yst-root button.yst-replacevar__use-ai-button:hover{background-color:#fff;border-color:var(--yoast-color-border--default);color:#000}.yst-root button.yst-replacevar__use-ai-button:disabled{cursor:default;opacity:.5}.yst-root .yst-logo-icon{background-color:var(--yoast-color-primary);display:inline-block;mask-image:var(--yoast-svg-icon-yoast);-webkit-mask-image:var(--yoast-svg-icon-yoast);mask-size:100% 100%;-webkit-mask-size:100% 100%}.yst-root .yst-ai-mode .yst-radio-group__options{flex-direction:row;gap:1.5rem}.yst-root .yst-length-progress-bar.yst-score-good .yst-progress-bar__progress{background-color:#7ad03a}.yst-root .yst-length-progress-bar.yst-score-ok .yst-progress-bar__progress{background-color:#ee7c1b}.yst-root .yst-length-progress-bar.yst-score-bad .yst-progress-bar__progress{background-color:#dc3232}.yst-root .yst-suggestions-radio-group .yst-radio-group__options{gap:0}.yst-root .yst-suggestions-radio-group .yst-radio-group__options>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1px*var(--tw-space-y-reverse));margin-top:calc(-1px*(1 - var(--tw-space-y-reverse)))}.yst-root .yst-introduction-modal .yst-modal__close-button{--tw-text-opacity:1;background-color:initial;color:rgb(107 114 128/var(--tw-text-opacity))}.yst-root .yst-introduction-modal .yst-modal__close-button:focus{--tw-ring-offset-width:0px;outline:2px solid #0000;outline-offset:2px}.yst-root .yst-ai-modal .yst-modal__panel{overflow:visible}.yst-root .yst-revoke-button .yst-animate-spin{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.yst-root #facebookPreview,.yst-root #twitterPreview,.yst-root #yoast-snippet-preview-container{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));margin-right:auto;margin-left:auto}.yst-root #yoast-snippet-preview-container{border-bottom:1px hidden #fff;border-radius:8px;box-shadow:0 1px 6px #20212447}.yst-root .yoast-snippet-preview-section{padding:.5rem}.yst-root .yoast-snippet-preview-container__wrapper{background-color:initial}.yst-root .desktop #yoast-snippet-preview-container{padding:12px 16px}.yst-root .desktop.yst-user-agent__mobile .yoast-snippet-preview-section{padding:0}.yst-root .desktop.yst-user-agent__mobile .yoast-snippet-preview-container__wrapper{position:relative}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container{--yst-padding-bottom:12px}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container:has(+div){--yst-padding-bottom:calc(2rem + 22px)}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container{background-color:initial;border-bottom:none;border-radius:0;box-shadow:none;display:grid;padding-bottom:var(--yst-padding-bottom);padding-right:.5rem;padding-left:.5rem;padding-top:.5rem}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container>div:first-child{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom:1px hidden #fff;border-radius:8px;box-shadow:0 1px 6px #20212447;margin-right:auto;margin-left:auto;padding:12px 16px;width:inherit}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container+div{align-items:center;bottom:0;display:flex;height:calc(2rem + 22px);justify-content:center;right:.5rem;margin:0;pointer-events:none;position:absolute;left:.5rem}.yst-root .yst-border-gradient{border-image:linear-gradient(to bottom right,#cd82ab,#a5b4fc) 1;position:relative;z-index:0}.yst-root .yst-border-gradient:before{background:linear-gradient(to bottom left,#cd82ab,#a5b4fc);border-radius:inherit;bottom:0;content:"";right:0;-webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff) border-box;mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff) border-box;-webkit-mask-composite:destination-out;mask-composite:exclude;padding:1px;position:absolute;left:0;top:0;z-index:-1}.yst-root svg.yst-ai-counter-badge__sparkles-icon path{stroke-width:1.3!important}

View File

@@ -0,0 +1 @@
.yst-root button.yst-replacevar__use-ai-button{align-items:center;background-color:#f7f7f7;border:1px solid #dbdbdb;border-radius:4px;box-shadow:inset 0 -2px 0 0 #0000001a;box-sizing:border-box;color:#303030;cursor:pointer;display:flex;min-height:32px;padding:0 .5em;transition:var(--yoast-transition-default)}.yst-root button.yst-replacevar__use-ai-button:hover{background-color:#fff;border-color:var(--yoast-color-border--default);color:#000}.yst-root button.yst-replacevar__use-ai-button:disabled{cursor:default;opacity:.5}.yst-root .yst-logo-icon{background-color:var(--yoast-color-primary);display:inline-block;mask-image:var(--yoast-svg-icon-yoast);-webkit-mask-image:var(--yoast-svg-icon-yoast);mask-size:100% 100%;-webkit-mask-size:100% 100%}.yst-root .yst-ai-mode .yst-radio-group__options{flex-direction:row;gap:1.5rem}.yst-root .yst-length-progress-bar.yst-score-good .yst-progress-bar__progress{background-color:#7ad03a}.yst-root .yst-length-progress-bar.yst-score-ok .yst-progress-bar__progress{background-color:#ee7c1b}.yst-root .yst-length-progress-bar.yst-score-bad .yst-progress-bar__progress{background-color:#dc3232}.yst-root .yst-suggestions-radio-group .yst-radio-group__options{gap:0}.yst-root .yst-suggestions-radio-group .yst-radio-group__options>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(-1px*var(--tw-space-y-reverse));margin-top:calc(-1px*(1 - var(--tw-space-y-reverse)))}.yst-root .yst-introduction-modal .yst-modal__close-button{--tw-text-opacity:1;background-color:initial;color:rgb(107 114 128/var(--tw-text-opacity))}.yst-root .yst-introduction-modal .yst-modal__close-button:focus{--tw-ring-offset-width:0px;outline:2px solid #0000;outline-offset:2px}.yst-root .yst-ai-modal .yst-modal__panel{overflow:visible}.yst-root .yst-revoke-button .yst-animate-spin{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.yst-root #facebookPreview,.yst-root #twitterPreview,.yst-root #yoast-snippet-preview-container{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));margin-left:auto;margin-right:auto}.yst-root #yoast-snippet-preview-container{border-bottom:1px hidden #fff;border-radius:8px;box-shadow:0 1px 6px #20212447}.yst-root .yoast-snippet-preview-section{padding:.5rem}.yst-root .yoast-snippet-preview-container__wrapper{background-color:initial}.yst-root .desktop #yoast-snippet-preview-container{padding:12px 16px}.yst-root .desktop.yst-user-agent__mobile .yoast-snippet-preview-section{padding:0}.yst-root .desktop.yst-user-agent__mobile .yoast-snippet-preview-container__wrapper{position:relative}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container{--yst-padding-bottom:12px}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container:has(+div){--yst-padding-bottom:calc(2rem + 22px)}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container{background-color:initial;border-bottom:none;border-radius:0;box-shadow:none;display:grid;padding-bottom:var(--yst-padding-bottom);padding-left:.5rem;padding-right:.5rem;padding-top:.5rem}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container>div:first-child{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-bottom:1px hidden #fff;border-radius:8px;box-shadow:0 1px 6px #20212447;margin-left:auto;margin-right:auto;padding:12px 16px;width:inherit}.yst-root .desktop.yst-user-agent__mobile #yoast-snippet-preview-container+div{align-items:center;bottom:0;display:flex;height:calc(2rem + 22px);justify-content:center;left:.5rem;margin:0;pointer-events:none;position:absolute;right:.5rem}.yst-root .yst-border-gradient{border-image:linear-gradient(to bottom right,#cd82ab,#a5b4fc) 1;position:relative;z-index:0}.yst-root .yst-border-gradient:before{background:linear-gradient(to bottom right,#cd82ab,#a5b4fc);border-radius:inherit;bottom:0;content:"";left:0;-webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff) border-box;mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff) border-box;-webkit-mask-composite:destination-out;mask-composite:exclude;padding:1px;position:absolute;right:0;top:0;z-index:-1}.yst-root svg.yst-ai-counter-badge__sparkles-icon path{stroke-width:1.3!important}

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +0,0 @@
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var s=e.n(t);const a=window.wp.hooks,r=window.lodash,i=window.yoast.reduxJsToolkit,n="adminUrl",o=(0,i.createSlice)({name:n,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),l=(o.getInitialState,{selectAdminUrl:e=>(0,r.get)(e,n,"")});l.selectAdminLink=(0,i.createSelector)([l.selectAdminUrl,(e,t)=>t],((e,t)=>{try{return new URL(t,e).href}catch(t){return e}})),o.actions,o.reducer;const c=window.wp.apiFetch;var m=e.n(c);const d="hasConsent",u=`${d}/storeConsent`,y=(0,i.createSlice)({name:d,initialState:!1,reducers:{giveAiGeneratorConsent:(e,{payload:t})=>t}}),p=y.getInitialState,w={selectHasAiGeneratorConsent:e=>(0,r.get)(e,d,!1)},g={...y.actions,storeAiGeneratorConsent:function*(e){try{yield{type:u,payload:e}}catch(e){return!1}return yield{type:`${d}/giveAiGeneratorConsent`,payload:e},!0}},h={[u]:({payload:e})=>m()({path:"yoast/v1/ai_generator/consent",method:"POST",data:{consent:e},parse:!1})},v=y.reducer,f="pluginUrl",b=(0,i.createSlice)({name:f,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),E=b.getInitialState,k={selectPluginUrl:e=>(0,r.get)(e,f,"")};k.selectImageLink=(0,i.createSelector)([k.selectPluginUrl,(e,t,s="assets/images")=>s,(e,t)=>t],((e,t,s)=>[(0,r.trimEnd)(e,"/"),(0,r.trim)(t,"/"),(0,r.trimStart)(s,"/")].join("/")));const x=b.actions,S=b.reducer,P=window.wp.url,_="linkParams",N=(0,i.createSlice)({name:_,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),C=(N.getInitialState,{selectLinkParam:(e,t,s={})=>(0,r.get)(e,`${_}.${t}`,s),selectLinkParams:e=>(0,r.get)(e,_,{})});C.selectLink=(0,i.createSelector)([C.selectLinkParams,(e,t)=>t],((e,t)=>(0,P.addQueryArgs)(t,e))),N.actions,N.reducer;const R="loading",L="showPlay",I="askPermission",q="isPlaying",A="wistiaEmbedPermission",$=(0,i.createSlice)({name:A,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/request`,(e=>{e.status=R})),e.addCase(`${A}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${A}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,r.get)(t,"error.code",500),message:(0,r.get)(t,"error.message","Unknown")}}))}}),O=($.getInitialState,$.actions,$.reducer,window.React),U=window.wp.data,B=window.wp.element,G=O.forwardRef((function(e,t){return O.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),O.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),T=window.wp.i18n,M=window.yoast.uiLibrary,j=window.yoast.propTypes;var W=e.n(j);const Y=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:s,termsOfServiceLink:a,thumbnail:r,wistiaEmbedPermission:i})=>{const{onClose:n,initialFocus:o}=(0,M.useModalContext)(),[l,c]=(0,M.useToggleState)(!1),m=(0,B.useCallback)((()=>{n(),e(!0)}),[e,n]),d=(0,B.createInterpolateElement)((0,T.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */ /* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */
(0,T.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo-premium"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,O.createElement)(F,{href:a}),a2:(0,O.createElement)(F,{href:s})});return(0,O.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-p-10"},(0,O.createElement)("div",{className:"yst-relative yst-w-full"},(0,O.createElement)(H,{videoId:"vmrahpfjxp",thumbnail:r,wistiaEmbedPermission:i}),(0,O.createElement)(M.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,O.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium"},(0,O.createElement)("span",{className:"yst-introduction-modal-uppercase"},(0,T.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ /* translators: %1$s expands to Yoast SEO Premium. */
(0,T.__)("New to %1$s","wordpress-seo-premium"),"Yoast SEO Premium"))," ",(0,O.createElement)("span",{className:"yst-uppercase yst-text-slate-700"},"21.0")),(0,O.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,O.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,T.__)("Generate titles & descriptions with Yoast AI!","wordpress-seo-premium")),(0,O.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,B.createInterpolateElement)((0,T.sprintf)(/* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */ /* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */
(0,T.__)("Speed up your workflow with generative AI. Get high-quality title and description suggestions for your search and social appearance. %1$sLearn more%2$s%3$s","wordpress-seo-premium"),"<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,O.createElement)(F,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,O.createElement)(G,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})}))),(0,O.createElement)("div",{className:"yst-flex yst-w-full yst-mt-6"},(0,O.createElement)("hr",{className:"yst-w-full yst-text-gray-200"})),(0,O.createElement)("div",{className:"yst-flex yst-items-start yst-mt-4"},(0,O.createElement)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:l,value:l?"true":"false",onChange:c,className:"yst-checkbox__input",ref:o}),(0,O.createElement)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500"},d)),(0,O.createElement)("div",{className:"yst-w-full yst-flex yst-mt-4"},(0,O.createElement)(M.Button,{as:"button",className:"yst-grow",size:"large",disabled:!l,onClick:m},(0,T.__)("Start generating","wordpress-seo-premium"))),(0,O.createElement)(M.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:n},(0,T.__)("Close","wordpress-seo-premium")))};Y.propTypes={onGiveConsent:W().func.isRequired,learnMoreLink:W().string.isRequired,privacyPolicyLink:W().string.isRequired,termsOfServiceLink:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired};const F=({href:e,children:t,...s})=>(0,O.createElement)(M.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,O.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,T.__)("(Opens in a new browser tab)","wordpress-seo-premium")));F.propTypes={href:W().string.isRequired,children:W().node},F.defaultProps={children:null};const z=window.yoast.reactHelmet,H=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[a,r]=(0,B.useState)(s.value?q:L),i=(0,B.useCallback)((()=>r(q)),[r]),n=(0,B.useCallback)((()=>{s.value?i():r(I)}),[s.value,i,r]),o=(0,B.useCallback)((()=>r(L)),[r]),l=(0,B.useCallback)((()=>{s.set(!0),i()}),[s.set,i]);return(0,O.createElement)(B.Fragment,null,s.value&&(0,O.createElement)(z.Helmet,null,(0,O.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,O.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},a===L&&(0,O.createElement)("button",{className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:n},(0,O.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),a===I&&(0,O.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,O.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===R&&(0,O.createElement)(M.Spinner,null),s.status!==R&&(0,T.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ /* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,T.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo-premium"),"Yoast SEO","Wistia")),(0,O.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,O.createElement)(M.Button,{type:"button",variant:"secondary",onClick:o,disabled:s.status===R},(0,T.__)("Deny","wordpress-seo-premium")),(0,O.createElement)(M.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===R},(0,T.__)("Allow","wordpress-seo-premium")))),s.value&&a===q&&(0,O.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,O.createElement)(M.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,O.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};H.propTypes={videoId:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired};const D="yoast-seo/introductions",V="yoast-seo-premium/introductions",J=()=>{const e=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-generator-learn-more")),[]),t=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-generator-privacy-policy")),[]),s=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-generator-terms-of-service")),[]),{storeAiGeneratorConsent:a}=(0,U.useDispatch)(V),r=(0,U.useSelect)((e=>e(D).selectImageLink("ai-generator-preview.png")),[]),i=(0,B.useMemo)((()=>({src:r,width:"432",height:"244"})),[r]),n=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionValue()),[]),o=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:l}=(0,U.useDispatch)(D),c=(0,B.useMemo)((()=>({value:n,status:o,set:l})),[n,o,l]);return(0,O.createElement)(Y,{onGiveConsent:a,learnMoreLink:e,privacyPolicyLink:t,termsOfServiceLink:s,thumbnail:i,wistiaEmbedPermission:c})},Q=()=>{const e=(0,r.get)(window,"YoastSEO._registerIntroductionComponent",null);null!==e?(((e={})=>{(0,U.register)((e=>(0,U.createReduxStore)(V,{actions:{...g,...x},selectors:{...w,...k},initialState:(0,r.merge)({},{[d]:p(),[f]:E()},e),reducer:(0,U.combineReducers)({[d]:v,[f]:S}),controls:{...h}}))(e))})({[f]:(0,r.get)(window,"wpseoPremiumIntroductions.pluginUrl","")}),e("ai-generate-titles-and-descriptions",J)):console.error("Warning: Premium introductions expected window.YoastSEO._registerIntroductionComponent to exist.")};s()((()=>{(0,a.didAction)("yoast.introductions.ready")?Q():(0,a.addAction)("yoast.introductions.ready","yoast/yoast-seo-premium/initializeIntroductions",Q)}))})();

View File

@@ -0,0 +1,6 @@
(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var s=e.n(t);const a=window.wp.hooks,i=window.lodash,r=window.yoast.reduxJsToolkit,n="adminUrl",o=(0,r.createSlice)({name:n,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),l=(o.getInitialState,{selectAdminUrl:e=>(0,i.get)(e,n,"")});l.selectAdminLink=(0,r.createSelector)([l.selectAdminUrl,(e,t)=>t],((e,t)=>{try{return new URL(t,e).href}catch(t){return e}})),o.actions,o.reducer;const c=window.wp.apiFetch;var d=e.n(c);const u="hasConsent",m=`${u}/storeConsent`,y=(0,r.createSlice)({name:u,initialState:!1,reducers:{giveAiGeneratorConsent:(e,{payload:t})=>t}}),p=y.getInitialState,w={selectHasAiGeneratorConsent:e=>(0,i.get)(e,u,!1)},g={...y.actions,storeAiGeneratorConsent:function*(e){try{yield{type:m,payload:e}}catch(e){return!1}return yield{type:`${u}/giveAiGeneratorConsent`,payload:e},!0}},h={[m]:async({payload:e})=>await d()({path:"yoast/v1/ai_generator/consent",method:"POST",data:{consent:e},parse:!1})},b=y.reducer,f="pluginUrl",v=(0,r.createSlice)({name:f,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),E=v.getInitialState,x={selectPluginUrl:e=>(0,i.get)(e,f,"")};x.selectImageLink=(0,r.createSelector)([x.selectPluginUrl,(e,t,s="assets/images")=>s,(e,t)=>t],((e,t,s)=>[(0,i.trimEnd)(e,"/"),(0,i.trim)(t,"/"),(0,i.trimStart)(s,"/")].join("/")));const R=v.actions,S=v.reducer,k=window.wp.url,q="linkParams",P=(0,r.createSlice)({name:q,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),N=(P.getInitialState,{selectLinkParam:(e,t,s={})=>(0,i.get)(e,`${q}.${t}`,s),selectLinkParams:e=>(0,i.get)(e,q,{})});N.selectLink=(0,r.createSelector)([N.selectLinkParams,(e,t)=>t],((e,t)=>(0,k.addQueryArgs)(t,e))),P.actions,P.reducer;const _="loading",C="showPlay",I="askPermission",L="isPlaying",A="wistiaEmbedPermission",O=(0,r.createSlice)({name:A,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/request`,(e=>{e.status=_})),e.addCase(`${A}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${A}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,i.get)(t,"error.code",500),message:(0,i.get)(t,"error.message","Unknown")}}))}}),$=(O.getInitialState,O.actions,O.reducer,window.React),U=window.wp.data,B=window.wp.element,M=$.forwardRef((function(e,t){return $.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),$.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),z=window.wp.i18n,j=window.yoast.uiLibrary,T=window.yoast.propTypes;var W=e.n(T);W().string.isRequired,W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired;const G=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s})=>{const{onClose:a}=(0,j.useModalContext)();return(0,$.createElement)($.Fragment,null,(0,$.createElement)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center"},(0,$.createElement)("div",{className:"yst-relative yst-w-full"},(0,$.createElement)(H,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:s}),(0,$.createElement)(j.Badge,{className:"yst-absolute yst-right-0 yst-mr-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"}},(0,z.__)("Beta","wordpress-seo-premium"))),(0,$.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center"},(0,$.createElement)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center"},(0,$.createElement)("span",{className:"yst-logo-icon"}),(0,z.sprintf)(/* translators: %s expands to "Yoast SEO Premium" */ /* translators: %s expands to "Yoast SEO Premium" */
(0,z.__)("New to %s","wordpress-seo-premium"),"Yoast SEO Premium")))),(0,$.createElement)("div",{className:"yst-px-10 yst-pb-10 yst-flex yst-flex-col yst-items-center"},(0,$.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,$.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},(0,z.sprintf)(/* translators: %s expands to "Yoast AI" */ /* translators: %s expands to "Yoast AI" */
(0,z.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,$.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,B.createInterpolateElement)((0,z.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */ /* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,z.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button. %1$s%2$sLearn more%3$s%4$s","wordpress-seo-premium"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,$.createElement)(Y,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,$.createElement)(M,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,$.createElement)("br",null)}))),(0,$.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,$.createElement)(j.Button,{as:"button",className:"yst-grow",size:"extra-large",variant:"primary",onClick:a},(0,z.__)("Got it!","wordpress-seo")))))};G.propTypes={learnMoreLink:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired};const Y=({href:e,children:t,...s})=>(0,$.createElement)(j.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e},t,(0,$.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,z.__)("(Opens in a new browser tab)","wordpress-seo-premium")));Y.propTypes={href:W().string.isRequired,children:W().node},Y.defaultProps={children:null};const F=window.yoast.reactHelmet,H=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[a,i]=(0,B.useState)(s.value?L:C),r=(0,B.useCallback)((()=>i(L)),[i]),n=(0,B.useCallback)((()=>{s.value?r():i(I)}),[s.value,r,i]),o=(0,B.useCallback)((()=>i(C)),[i]),l=(0,B.useCallback)((()=>{s.set(!0),r()}),[s.set,r]);return(0,$.createElement)(B.Fragment,null,s.value&&(0,$.createElement)(F.Helmet,null,(0,$.createElement)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})),(0,$.createElement)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white"},a===C&&(0,$.createElement)("button",{className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:n},(0,$.createElement)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})),a===I&&(0,$.createElement)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white"},(0,$.createElement)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center"},s.status===_&&(0,$.createElement)(j.Spinner,null),s.status!==_&&(0,z.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */ /* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,z.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo-premium"),"Yoast SEO","Wistia")),(0,$.createElement)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4"},(0,$.createElement)(j.Button,{type:"button",variant:"secondary",onClick:o,disabled:s.status===_},(0,z.__)("Deny","wordpress-seo-premium")),(0,$.createElement)(j.Button,{type:"button",variant:"primary",onClick:l,disabled:s.status===_},(0,z.__)("Allow","wordpress-seo-premium")))),s.value&&a===L&&(0,$.createElement)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-left-0"},null===e&&(0,$.createElement)(j.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,$.createElement)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`}))))};H.propTypes={videoId:W().string.isRequired,thumbnail:W().shape({src:W().string.isRequired,width:W().string,height:W().string}).isRequired,wistiaEmbedPermission:W().shape({value:W().bool.isRequired,status:W().string.isRequired,set:W().func.isRequired}).isRequired},W().func.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired,W().string.isRequired;const D="yoast-seo/introductions",V=()=>{const e=(0,U.useSelect)((e=>e(D).selectLink("https://yoa.st/ai-fix-assessments-learn-more")),[]),t=(0,U.useSelect)((e=>e(D).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),s=(0,B.useMemo)((()=>({src:t,width:"432",height:"244"})),[t]),a=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionValue()),[]),i=(0,U.useSelect)((e=>e(D).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:r}=(0,U.useDispatch)(D),n=(0,B.useMemo)((()=>({value:a,status:i,set:r})),[a,i,r]);return(0,$.createElement)(G,{learnMoreLink:e,thumbnail:s,wistiaEmbedPermission:n})},J=()=>{const e=(0,i.get)(window,"YoastSEO._registerIntroductionComponent",null);null!==e?(((e={})=>{(0,U.register)((e=>(0,U.createReduxStore)("yoast-seo-premium/introductions",{actions:{...g,...R},selectors:{...w,...x},initialState:(0,i.merge)({},{[u]:p(),[f]:E()},e),reducer:(0,U.combineReducers)({[u]:b,[f]:S}),controls:{...h}}))(e))})({[f]:(0,i.get)(window,"wpseoPremiumIntroductions.pluginUrl","")}),e("ai-fix-assessments",V)):console.error("Warning: Premium introductions expected window.YoastSEO._registerIntroductionComponent to exist.")};s()((()=>{(0,a.didAction)("yoast.introductions.ready")?J():(0,a.addAction)("yoast.introductions.ready","yoast/yoast-seo-premium/initializeIntroductions",J)}))})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(()=>{"use strict";const e=window.yoast.analysis,{readability:s}=e.assessments,{WordComplexityAssessment:t}=s,i={de:e.languageProcessing.languageHelpers.wordComplexityHelperGerman,en:e.languageProcessing.languageHelpers.wordComplexityHelperEnglish,es:e.languageProcessing.languageHelpers.wordComplexityHelperSpanish,fr:e.languageProcessing.languageHelpers.wordComplexityHelperFrench},n={de:e.languageProcessing.languageConfigs.wordComplexityConfigGerman,en:e.languageProcessing.languageConfigs.wordComplexityConfigEnglish,es:e.languageProcessing.languageConfigs.wordComplexityConfigSpanish,fr:e.languageProcessing.languageConfigs.wordComplexityConfigFrench},{seo:r}=e.assessments,{KeyphraseDistributionAssessment:g}=r,{readability:o,seo:a}=e.assessments,l="YoastSEOPremium";(new class{constructor(){this._worker=analysisWorker}register(){this._worker.registerMessageHandler("initialize",this.initialize.bind(this),l)}initialize({options:s}){if(s.isTitleAssessmentAvailable){const{TextTitleAssessment:e}=a,s=new e;this._worker.registerAssessment("TextTitleAssessment",s,l,"seo")}!function(s,t){const i=new g;s.registerResearch("keyphraseDistribution",e.languageProcessing.researches.keyphraseDistribution),s.registerAssessment("keyphraseDistributionAssessment",i,t,"seo")}(this._worker,l);const r=s.language;(function(e){return(0,window.yoast.analysis.helpers.getLanguagesWithWordComplexity)().includes(e)})(r)&&function(s,r,g){const o=n[r],a=i[r],l=new t,m=new t({scores:{acceptableAmount:3}});s.registerResearcherConfig("wordComplexity",o),s.registerHelper("checkIfWordIsComplex",a),s.registerResearch("wordComplexity",e.languageProcessing.researches.wordComplexity),s.registerAssessment("wordComplexity",l,g,"readability"),s.registerAssessment("wordComplexity",m,g,"cornerstoneReadability")}(this._worker,r,l),s.isTextAlignmentAssessmentAvailable&&this.registerTextAlignmentAssessment()}registerTextAlignmentAssessment(){const{TextAlignmentAssessment:s}=o;this._textAlignmentAssessment=new s,this._worker.registerResearch("getLongCenterAlignedTexts",e.languageProcessing.researches.getLongCenterAlignedTexts),this._worker.registerAssessment("textAlignment",this._textAlignmentAssessment,l,"readability"),this._worker.registerAssessment("textAlignment",this._textAlignmentAssessment,l,"cornerstoneReadability")}}).register()})();

View File

@@ -0,0 +1,23 @@
(()=>{"use strict";const e=window.wp.i18n,s=window.yoast.analysis,{readability:t}=s.assessments,{WordComplexityAssessment:r}=t,i=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t,complexWordsPercentage:r})=>({acceptableAmount:(0,e.sprintf)(
/* translators: %1$s expands to a link on yoast.com, %2$s expand to the percentage of the complex words found in the text.
%3$s expand to a link on yoast.com, %4$s expands to the anchor end tag. */
/* translators: %1$s expands to a link on yoast.com, %2$s expand to the percentage of the complex words found in the text.
%3$s expand to a link on yoast.com, %4$s expands to the anchor end tag. */
(0,e.__)("%1$sWord complexity%4$s: %2$s of the words in your text are considered complex. %3$sTry to use shorter and more familiar words to improve readability%4$s.","wordpress-seo-premium"),s,r+"%",t,"</a>"),goodAmount:(0,e.sprintf)(/* translators: %1$s expands to an article on yoast.com and %2$s expands to the anchor end tag. */ /* translators: %1$s expands to an article on yoast.com and %2$s expands to the anchor end tag. */
(0,e.__)("%1$sWord complexity%2$s: You are not using too many complex words, which makes your text easy to read. Good job!","wordpress-seo-premium"),s,"</a>")}),{seo:n}=s.assessments,{KeyphraseDistributionAssessment:o}=n,a=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t})=>({good:(0,e.sprintf)(/* translators: %1$s expands to links to Yoast.com articles, %2$s expands to the anchor end tag */ /* translators: %1$s expands to links to Yoast.com articles, %2$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%2$s: Good job!","wordpress-seo-premium"),s,"</a>"),okay:(0,e.sprintf)(/* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */ /* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%3$s: Uneven. Some parts of your text do not contain the keyphrase or its synonyms. %2$sDistribute them more evenly%3$s.","wordpress-seo-premium"),s,t,"</a>"),bad:(0,e.sprintf)(/* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */ /* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%3$s: Very uneven. Large parts of your text do not contain the keyphrase or its synonyms. %2$sDistribute them more evenly%3$s.","wordpress-seo-premium"),s,t,"</a>"),consideration:(0,e.sprintf)(/* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */ /* translators: %1$s and %2$s expand to links to Yoast.com articles, %3$s expands to the anchor end tag */
(0,e.__)("%1$sKeyphrase distribution%3$s: %2$sInclude your keyphrase or its synonyms in the text so that we can check keyphrase distribution%3$s.","wordpress-seo-premium"),s,t,"</a>")}),l=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t})=>({good:(0,e.sprintf)(/* translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */ /* translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
(0,e.__)("%1$sTitle%2$s: Your page has a title. Well done!","wordpress-seo-premium"),s,"</a>"),bad:(0,e.sprintf)(/* translators: %1$s and %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */ /* translators: %1$s and %2$s expands to a link on yoast.com, %3$s expands to the anchor end tag. */
(0,e.__)("%1$sTitle%3$s: Your page does not have a title yet. %2$sAdd one%3$s!","wordpress-seo-premium"),s,t,"</a>")}),{readability:g}=s.assessments,m=({urlTitleAnchorOpeningTag:s,urlActionAnchorOpeningTag:t,numberOfLongCenterAlignedTexts:r})=>({rightToLeft:(0,e.sprintf)(
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
(0,e._n)("%1$sAlignment%3$s: There is a long section of center-aligned text. %2$sWe recommend making it right-aligned%3$s.","%1$sAlignment%3$s: There are %4$s long sections of center-aligned text. %2$sWe recommend making them right-aligned%3$s.",r,"wordpress-seo-premium"),s,t,"</a>",r),leftToRight:(0,e.sprintf)(
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
/* translators: %1$s and %2$s expand to links on yoast.com, %3$s expands to the anchor end tag,
%4$s expands to the number of the long center-aligned sections in the text */
(0,e._n)("%1$sAlignment%3$s: There is a long section of center-aligned text. %2$sWe recommend making it left-aligned%3$s.","%1$sAlignment%3$s: There are %4$s long sections of center-aligned text. %2$sWe recommend making them left-aligned%3$s.",r,"wordpress-seo-premium"),s,t,"</a>",r)}),c="YoastSEOPremium";(new class{constructor(){this._worker=analysisWorker}register(){this._worker.registerMessageHandler("initialize",this.initialize.bind(this),c)}initialize({options:e}){e.isTitleAssessmentAvailable&&((e,t)=>{const{TextTitleAssessment:r}=s.assessments.seo,i=new r({callbacks:{getResultTexts:l}});e.registerAssessment("TextTitleAssessment",i,t,"seo")})(this._worker,c),function(e,t){const r=new o({callbacks:{getResultTexts:a}});e.registerResearch("keyphraseDistribution",s.languageProcessing.researches.keyphraseDistribution),e.registerAssessment("keyphraseDistributionAssessment",r,t,"seo")}(this._worker,c);const t=e.language;(function(e){return(0,window.yoast.analysis.helpers.getLanguagesWithWordComplexity)().includes(e)})(t)&&function(e,t,n){const o=s.helpers.getWordComplexityConfig(t),a=s.helpers.getWordComplexityHelper(t),l=new r({callbacks:{getResultTexts:i}}),g=new r({scores:{acceptableAmount:3},callbacks:{getResultTexts:i}});e.registerResearcherConfig("wordComplexity",o),e.registerHelper("checkIfWordIsComplex",a),e.registerResearch("wordComplexity",s.languageProcessing.researches.wordComplexity),e.registerAssessment("wordComplexity",l,n,"readability"),e.registerAssessment("wordComplexity",g,n,"cornerstoneReadability")}(this._worker,t,c),e.isTextAlignmentAssessmentAvailable&&((e,t)=>{const{TextAlignmentAssessment:r}=g,i=new r({callbacks:{getResultTexts:m}});e.registerResearch("getLongCenterAlignedTexts",s.languageProcessing.researches.getLongCenterAlignedTexts),e.registerAssessment("textAlignment",i,t,"readability"),e.registerAssessment("textAlignment",i,t,"cornerstoneReadability")})(this._worker,c)}}).register()})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(()=>{"use strict";const e=window.lodash,n=window.yoast.analysis,t=class{static create(e){return new window.yoast.Researcher.default(e)}},o="22.9",{doAjaxRequest:i}=window.yoast.editorModules.helpers.ajaxHelper;let r=!1;function s(){return r}function a(e,o){const r=[];return e.forEach((e=>{const i=function(e,n){const o=t.create(e),i=s();return i&&o.addResearchData("morphology",i),function(e){const n={};return e.forEach((function(e){n[e.getStem()]=e.getOccurrences()})),n}(o.getResearch("getProminentWordsForInternalLinking").prominentWords.slice(0,void 0))}(new n.Paper(e.content,{keyword:e.meta.primary_focus_keyword||"",synonyms:e.meta.keyphrase_synonyms||"",title:e.meta.title||"",description:e.meta.description||"",locale:o.locale||"en_US"}));r.push({object_id:e.object_id,object_type:e.object_type,prominent_words:i})})),i("POST",`${o.restApi.root}${o.prominentWords.endpoint}`,o.restApi.nonce,{data:r})}async function c(n){let t=s();if(t||!n.morphologySupported)return Promise.resolve();const a=function(e){const n={en:"v5",de:"v10",es:"v10",fr:"v11",it:"v10",nl:"v9",ru:"v10",id:"v9",pt:"v9",pl:"v9",ar:"v9",sv:"v1",he:"v1",hu:"v2",nb:"v1",tr:"v1",cs:"v1",sk:"v1",el:"v1",ja:"v1"};return!!Object.keys(n).includes(e)&&`https://my.yoast.com/api/downloads/file/morphology-${e}-${n[e]}`}(n.language||"en");if(!1===a)return Promise.resolve();const c=(0,e.get)(window,"wpseoPremiumIndexationData.licensedURL","");return t=await i("GET",a,null,{plugin_version:o,site:c}),function(e){r=e}(t),Promise.resolve(t)}jQuery((()=>{window.yoast=window.yoast||{},window.yoast.indexing=window.yoast.indexing||{},"function"==typeof window.yoast.indexing.registerPreIndexingAction&&window.yoast.indexing.registerPreIndexingAction("get_content",c),"function"==typeof window.yoast.indexing.registerIndexingAction&&window.yoast.indexing.registerIndexingAction("get_content",a)}))})();
(()=>{"use strict";const e=window.lodash,n=window.yoast.analysis,t=class{static create(e){return new window.yoast.Researcher.default(e)}},o="23.7",{doAjaxRequest:i}=window.yoast.editorModules.helpers.ajaxHelper;let r=!1;function s(){return r}function a(e,o){const r=[];return e.forEach((e=>{const i=function(e,n){const o=t.create(e),i=s();return i&&o.addResearchData("morphology",i),function(e){const n={};return e.forEach((function(e){n[e.getStem()]=e.getOccurrences()})),n}(o.getResearch("getProminentWordsForInternalLinking").prominentWords.slice(0,void 0))}(new n.Paper(e.content,{keyword:e.meta.primary_focus_keyword||"",synonyms:e.meta.keyphrase_synonyms||"",title:e.meta.title||"",description:e.meta.description||"",locale:o.locale||"en_US"}));r.push({object_id:e.object_id,object_type:e.object_type,prominent_words:i})})),i("POST",`${o.restApi.root}${o.prominentWords.endpoint}`,o.restApi.nonce,{data:r})}async function c(n){let t=s();if(t||!n.morphologySupported)return Promise.resolve();const a=function(e){const n={en:"v5",de:"v10",es:"v10",fr:"v11",it:"v10",nl:"v9",ru:"v10",id:"v9",pt:"v9",pl:"v9",ar:"v9",sv:"v1",he:"v1",hu:"v2",nb:"v1",tr:"v1",cs:"v1",sk:"v1",el:"v1",ja:"v1"};return!!Object.keys(n).includes(e)&&`https://my.yoast.com/api/downloads/file/morphology-${e}-${n[e]}`}(n.language||"en");if(!1===a)return Promise.resolve();const c=(0,e.get)(window,"wpseoPremiumIndexationData.licensedURL","");return t=await i("GET",a,null,{plugin_version:o,site:c}),function(e){r=e}(t),Promise.resolve(t)}jQuery((()=>{window.yoast=window.yoast||{},window.yoast.indexing=window.yoast.indexing||{},"function"==typeof window.yoast.indexing.registerPreIndexingAction&&window.yoast.indexing.registerPreIndexingAction("get_content",c),"function"==typeof window.yoast.indexing.registerIndexingAction&&window.yoast.indexing.registerIndexingAction("get_content",a)}))})();

View File

@@ -1,9 +1,8 @@
*** Yoast SEO premium Changelog ***
2024-06-18 - version 22.9
* add - Converts the _Siblings_ and _Subpages_ blocks to the V3 API.
* add - Converts the _Siblings_ and _Subpages_ blocks to the V3 API.
* fix - Fixes a bug where a fatal error would occur when clicking `Click here to remove the redirect` after reverting the trashing of a post.
* update - Bumps the minimum required version of Yoast SEO to 22.9.
2024-10-22 - version 23.7
* add - Introducing a new feature: AI SEO title and meta description generation for WooCommerce product categories and tags! To unlock this SEO magic, make sure you have both Yoast SEO Premium and Yoast WooCommerce SEO installed.
* fix - Fixes a bug where the _Table of Contents_ block title would not be translated when it was added to a page.
* update - Bumbs the minimum required version of Yoast SEO to 23.7

View File

@@ -0,0 +1,122 @@
<?php
/**
* WPSEO Premium plugin file.
*
* @package WPSEO\Premium\Classes
*/
if ( ! class_exists( 'WP_Text_Diff_Renderer_inline' ) ) {
require_once ABSPATH . '/wp-includes/wp-diff.php';
}
/**
* Class HTML_Diff_Renderer.
* This class is a modified version of Text_Diff_Renderer_inline from WordPress core.
* The following methods have been modified:
* - _lines: removed the encoding.
* - _changed: removed the new line at the end of the diff.
*/
class WPSEO_HTML_Diff_Renderer extends WP_Text_Diff_Renderer_inline {
// phpcs:disable PSR2.Classes.PropertyDeclaration.Underscore -- we are overriding a class.
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore -- we are overriding a class.
/**
* Prefix for inserted text.
*
* @var string
*/
public $_ins_prefix = '<ins class="yst-diff">';
/**
* Prefix for deleted text.
*
* @var string
*/
public $_del_prefix = '<del class="yst-diff">';
/**
* Handles the rendering of lines.
* This method has been modified to remove the encoding.
*
* @param string[] $lines The lines to render.
* @param string $prefix The prefix (unused).
* @param bool $encode Whether to encode the lines (unused).
* @return string The rendered lines.
*/
public function _lines( $lines, $prefix = '', $encode = false ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- we are overriding a method.
return implode( '', $lines );
}
/**
* Handles the rendering of changed lines.
*
* @param string[] $orig The original text.
* @param string[] $new_ The new text.
* @return string The rendered diff.
*/
public function _changed( $orig, $new_ ) {
/* If we've already split on characters, just display. */
if ( $this->_split_level === 'characters' ) {
return $this->_deleted( $orig ) . $this->_added( $new_ );
}
/* If we've already split on words, just display. */
if ( $this->_split_level === 'words' ) {
$prefix = '';
while ( $orig[0] !== false
&& $new_[0] !== false
&& substr( $orig[0], 0, 1 ) === ' '
&& substr( $new_[0], 0, 1 ) === ' ' ) {
$prefix .= substr( $orig[0], 0, 1 );
$orig[0] = substr( $orig[0], 1 );
$new_[0] = substr( $new_[0], 1 );
}
return $prefix . $this->_deleted( $orig ) . $this->_added( $new_ );
}
$text1 = implode( "\n", $orig );
$text2 = implode( "\n", $new_ );
/* Non-printing newline marker. */
$nl = "\0";
if ( $this->_split_characters ) {
$diff = new Text_Diff(
'native',
[
preg_split( '//', $text1 ),
preg_split( '//', $text2 ),
]
);
}
else {
/*
* We want to split on word boundaries, but we need to preserve
* whitespace as well. Therefore we split on words, but include
* all blocks of whitespace in the wordlist.
*/
$diff = new Text_Diff(
'native',
[
$this->_splitOnWords( $text1, $nl ),
$this->_splitOnWords( $text2, $nl ),
]
);
}
/* Get the diff in inline format. */
$renderer = new WPSEO_HTML_Diff_Renderer(
array_merge(
$this->getParams(),
[ 'split_level' => ( $this->_split_characters ) ? 'characters' : 'words' ]
)
);
/* Run the diff and get the output. */
return str_replace( $nl, "\n", $renderer->render( $diff ) );
}
// phpcs:enable PSR2.Classes.PropertyDeclaration.Underscore
// phpcs:enable PSR2.Methods.MethodDeclaration.Underscore
}

View File

@@ -30,7 +30,7 @@ class WPSEO_Post_Watcher extends WPSEO_Watcher implements WPSEO_WordPress_Integr
add_action( 'admin_enqueue_scripts', [ $this, 'page_scripts' ] );
// Only set the hooks for the page where they are needed.
if ( ! $this->is_rest_request() && ! $this->post_redirect_can_be_made( $pagenow ) ) {
if ( ! wp_is_serving_rest_request() && ! $this->post_redirect_can_be_made( $pagenow ) ) {
return;
}
@@ -470,15 +470,6 @@ class WPSEO_Post_Watcher extends WPSEO_Watcher implements WPSEO_WordPress_Integr
return false;
}
/**
* Determines whether we're dealing with a REST request or not.
*
* @return bool Whether or not the current request is a REST request.
*/
private function is_rest_request() {
return defined( 'REST_REQUEST' ) && REST_REQUEST === true;
}
/**
* Returns the undo message for the post.
*
@@ -589,7 +580,7 @@ class WPSEO_Post_Watcher extends WPSEO_Watcher implements WPSEO_WordPress_Integr
*/
protected function set_undo_slug_notification( WPSEO_Redirect $redirect, $object_id, $object_type ) {
if ( ! $this->is_rest_request() && ! wp_doing_ajax() ) {
if ( ! wp_is_serving_rest_request() && ! wp_doing_ajax() ) {
parent::set_undo_slug_notification( $redirect, $object_id, $object_type );
return;

View File

@@ -1,4 +1,4 @@
<?php
<?php // phpcs:ignore Yoast.Files.FileName.InvalidClassFileName -- Reason: this is an old premium file.
/**
* WPSEO Premium plugin file.
*
@@ -68,7 +68,7 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
*
* @param string $version Current version number.
*
* @return array The scripts.
* @return array<array<string|array>> The scripts.
*/
protected function get_frontend_scripts( $version ) {
return [
@@ -101,7 +101,7 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
*
* @param string $version Current version number.
*
* @return array The scripts.
* @return array<array<string|array>> The scripts.
*/
protected function get_scripts( $version ) {
return [
@@ -324,6 +324,26 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
WPSEO_Admin_Asset_Manager::PREFIX . 'react-helmet-package',
],
],
[
'name' => 'wp-seo-premium-ai-fix-assessments',
'path' => 'assets/js/dist/',
'filename' => 'ai-fix-assessments-' . $version . WPSEO_CSSJS_SUFFIX . '.js',
'dependencies' => [
'lodash',
'regenerator-runtime',
'wp-api-fetch',
'wp-components',
'wp-data',
'wp-dom-ready',
'wp-element',
'wp-hooks',
'wp-i18n',
WPSEO_Admin_Asset_Manager::PREFIX . 'analysis',
WPSEO_Admin_Asset_Manager::PREFIX . 'editor-modules',
WPSEO_Admin_Asset_Manager::PREFIX . 'ui-library-package',
WPSEO_Admin_Asset_Manager::PREFIX . 'react-helmet-package',
],
],
[
'name' => 'wp-seo-premium-manage-ai-consent-button',
'path' => 'assets/js/dist/',
@@ -371,7 +391,7 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
*
* @param string $version Current version number.
*
* @return array The styles.
* @return array<array<string|array>> The styles.
*/
protected function get_styles( $version ) {
$rtl_suffix = ( is_rtl() ) ? '-rtl' : '';
@@ -429,6 +449,14 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
WPSEO_Admin_Asset_Manager::PREFIX . 'monorepo',
],
],
[
'name' => WPSEO_Admin_Asset_Manager::PREFIX . 'premium-ai-fix-assessments',
'source' => 'assets/css/dist/premium-ai-fix-assessments-' . $version . $rtl_suffix . '.css',
'dependencies' => [
WPSEO_Admin_Asset_Manager::PREFIX . 'premium-tailwind',
WPSEO_Admin_Asset_Manager::PREFIX . 'monorepo',
],
],
];
}
@@ -437,7 +465,7 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
*
* @codeCoverageIgnore Method calls a WordPress function.
*
* @param array $script The script to register.
* @param array<string|array> $script The script to register.
*
* @return void
*/
@@ -464,7 +492,7 @@ class WPSEO_Premium_Assets implements WPSEO_WordPress_Integration {
*
* @codeCoverageIgnore Method calls a WordPress function.
*
* @param array $style The style to register.
* @param array<string|array> $style The style to register.
*
* @return void
*/

View File

@@ -118,13 +118,13 @@ class WPSEO_Premium_Keyword_Export_Manager implements WPSEO_WordPress_Integratio
*/
protected function get_csv_contents() {
$columns = [ 'keywords' ];
$post_wpseo = filter_input( INPUT_POST, 'wpseo', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
if ( is_array( $post_wpseo ) ) {
$columns = array_merge( $columns, $this->get_export_columns( $post_wpseo ) );
// phpcs:disable WordPress.Security.NonceVerification -- Reason: Nonce is checked in export.
if ( isset( $_POST['wpseo'] ) && is_array( $_POST['wpseo'] ) ) {
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: It will be sanitized after via an array map so that each individual value gets sanitized.
$post_wpseo = wp_unslash( $_POST['wpseo'] );
$post_wpseo = array_map( [ 'WPSEO_Utils', 'sanitize_text_field' ], $post_wpseo );
$columns = array_merge( $columns, $this->get_export_columns( $post_wpseo ) );
}
$builder = new WPSEO_Export_Keywords_CSV( $columns );
$builder->print_headers();
$this->prepare_export( $builder, $columns );

View File

@@ -186,7 +186,6 @@ class WPSEO_Premium_Metabox implements WPSEO_WordPress_Integration {
'wpseoTOCData',
[
'data' => [
'TOCTitle' => __( 'Table of contents', 'wordpress-seo-premium' ),
'disableTableOfContents' => $disable_table_of_content,
],
]

View File

@@ -125,9 +125,12 @@ class WPSEO_Redirect_Ajax {
if ( $validator->validate( $redirect, $current_redirect ) === true ) {
return;
}
$ignore_warning = filter_input( INPUT_POST, 'ignore_warning' );
$ignore_warning = 'false';
// phpcs:disable WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are not processing form information and only comparing the variable in a condition.
if ( isset( $_POST['ignore_warning'] ) ) {
$ignore_warning = wp_unslash( $_POST['ignore_warning'] );
}
// phpcs:enable
$error = $validator->get_error();
if ( $error->get_type() === 'error' || ( $error->get_type() === 'warning' && $ignore_warning === 'false' ) ) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More