SEOPress - Version 6.1.1

Version Description

  • FIX Dynamic variables if null
  • FIX wpml-config.xml file with WPML and Polylang (PRO)
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 6.1.1
Comparing to
See all releases

Code changes from version 6.1 to 6.1.1

inc/functions/options-instant-indexing.php CHANGED
@@ -138,13 +138,13 @@ function seopress_instant_indexing_fn($is_manual_submission = true, $permalink =
138
  //Prepare the URLS
139
  if ($is_manual_submission === true) {
140
  $urls = preg_split('/\r\n|\r|\n/', $urls);
141
- $x_source_info = 'https://www.seopress.org/6.1/true';
142
 
143
  $urls = array_slice($urls, 0, 100);
144
  } elseif ($is_manual_submission === false && !empty($permalink)) {
145
  $urls = null;
146
  $urls[] = $permalink;
147
- $x_source_info = 'https://www.seopress.org/6.1/false';
148
  }
149
 
150
  //Bing API
138
  //Prepare the URLS
139
  if ($is_manual_submission === true) {
140
  $urls = preg_split('/\r\n|\r|\n/', $urls);
141
+ $x_source_info = 'https://www.seopress.org/6.1.1/true';
142
 
143
  $urls = array_slice($urls, 0, 100);
144
  } elseif ($is_manual_submission === false && !empty($permalink)) {
145
  $urls = null;
146
  $urls[] = $permalink;
147
+ $x_source_info = 'https://www.seopress.org/6.1.1/false';
148
  }
149
 
150
  //Bing API
languages/wp-seopress.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPLv2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: SEOPress 6.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-seopress\n"
7
  "Last-Translator: SEOPress Team <contact@seopress.org>\n"
8
  "Language-Team: SEOPress Team <contact@seopress.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-11-10T11:15:29+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: wp-seopress\n"
2
  # This file is distributed under the GPLv2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: SEOPress 6.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-seopress\n"
7
  "Last-Translator: SEOPress Team <contact@seopress.org>\n"
8
  "Language-Team: SEOPress Team <contact@seopress.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-11-10T14:05:22+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: wp-seopress\n"
public/gutenberg/blocks/faq/index.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '5a870846b106ac747aa1');
public/gutenberg/blocks/faq/index.css ADDED
@@ -0,0 +1 @@
 
1
+ .wpseopress-faqs-actions{border:1px solid #1e1e1e;padding:1rem;background:#fff;margin-top:1rem}.wpseopress-answer-meta .wp-block-wp-seopress-image .components-button.editor-post-featured-image__preview{text-align:left}.wpseopress-faq-cta{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.wpseopress-faqs-list-style button.components-button.is-primary,.wpseopress-faqs-title-wrapper button.components-button.is-primary,.wpseopress-faqs-image-size button.components-button.is-primary{background-color:#007cba;color:#fff;border-color:#007cba;-webkit-box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px #007cba}.wpseopress-faqs-list-style button.components-button.is-primary:hover:not(:disabled),.wpseopress-faqs-title-wrapper button.components-button.is-primary:hover:not(:disabled),.wpseopress-faqs-image-size button.components-button.is-primary:hover:not(:disabled){color:#fff}.components-panel__body>p{margin:15px 0 0 0}
public/gutenberg/blocks/faq/index.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(){"use strict";var e,t={515:function(){var e=window.wp.components,t=window.wp.blockEditor,n=window.wp,r=n.data.withSelect,a=(n.element.Component,n.components),s=a.Spinner,i=a.Button,o=(a.ResponsiveWrapper,n.compose.compose),__=n.i18n.__,l=["image"],c=o(r((function(e,t){return{image:t.value?e("core").getMedia(t.value):null}})))((function(e){var n=e.value,r=e.image,a=React.createElement("p",null,__("To edit the background image, you need permission to upload media.","wp-seopress"));return React.createElement("div",{className:"wp-block-wp-seopress-image"},React.createElement(t.MediaUploadCheck,{fallback:a},React.createElement(t.MediaUpload,{title:__("Set Image","wp-seopress"),onSelect:function(t){e.onSelect(t.id,e.index)},allowedTypes:l,value:n,render:function(t){var a=t.open,o=function(t){var n=null;try{if(null!=t&&((n={}).source_url=t.guid.raw,null!=t.media_details.sizes))switch(n=null,e.imageSize){case"thumbnail":n=null!=t?t.media_details.sizes.thumbnail:null;break;case"medium":n=null!=t?t.media_details.sizes.medium:null;break;case"large":n=null!=t?null!=t.media_details.sizes.large?t.media_details.sizes.large:t.media_details.sizes.medium_large:null;break;default:n=null!=t?t.media_details.sizes.full:null}return n}catch(e){return n}}(r);return React.createElement(i,{className:n?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:a},!n&&__("Set Image","wp-seopress"),!!n&&!r&&React.createElement(s,null),!!n&&r&&o&&o.source_url&&React.createElement("img",{src:o.source_url,alt:__("Set Image","wp-seopress")}))}})),!!n&&React.createElement(t.MediaUploadCheck,null,React.createElement(i,{onClick:function(){e.onRemoveImage(e.index)},isLink:!0,isDestructive:!0},__("Remove Image","wp-seopress"))))}));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=wp.element.Fragment,w=wp.i18n,g=w.__,_x=w._x,b=(0,wp.compose.compose)((0,wp.data.withSelect)((function(e,t){var n=t.attributes,r=e("core").getMedia,a=n.selectedImageId;return{selectedImage:a?r(a):0}})))((function(n){var r=n.attributes,a=r.listStyle,s=r.titleWrapper,i=r.imageSize,o=r.showFAQScheme,l=r.showAccordion,u=r.isProActive,m=function(){return"none"===r.listStyle&&r.faqs.map((function(e,n){return React.createElement("div",{key:n,className:"wpseopress-faqs-area"},React.createElement("div",{className:"wpseopress-faq"},React.createElement(t.RichText,{tagName:r.titleWrapper,className:"wpseopress-faq-question",placeholder:g("Question...","wp-seopress"),value:e?e.question:"",onChange:function(e){return b(e,n)}}),React.createElement("div",{className:"wpseopress-answer-meta"},React.createElement(c,{value:e?e.image:"",onSelect:v,onRemoveImage:y,imageSize:r.imageSize,index:n}),React.createElement(t.RichText,{tagName:"p",className:"wpseopress-faq-answer",placeholder:g("Answer...","wp-seopress"),value:e?e.answer:"",onChange:function(e){return R(e,n)}}))),React.createElement("div",{className:"wpseopress-faq-cta"},React.createElement("button",{className:"components-button is-tertiary is-destructive",value:g("Remove","wp-seopress"),onClick:function(){return w(n)}},g("Remove","wp-seopress"))))}))||("ul"===r.listStyle||"ol"===r.listStyle)&&r.faqs.map((function(e,n){return React.createElement("li",{key:n,className:"wpseopress-faqs-area"},React.createElement("div",{className:"wpseopress-faq"},React.createElement(t.RichText,{tagName:r.titleWrapper,className:"wpseopress-faq-question",placeholder:g("Question...","wp-seopress"),value:e?e.question:"",onChange:function(e){return b(e,n)}}),React.createElement("div",{className:"wpseopress-answer-meta"},React.createElement(c,{value:e?e.image:"",onSelect:v,onRemoveImage:y,imageSize:r.imageSize,index:n}),React.createElement(t.RichText,{tagName:"div",className:"wpseopress-faq-answer",placeholder:g("Answer...","wp-seopress"),value:e?e.answer:"",onChange:function(e){return R(e,n)}}))),React.createElement("div",{className:"wpseopress-faq-cta"},React.createElement("button",{className:"components-button is-tertiary is-destructive",value:g("Remove","wp-seopress"),onClick:function(){return w(n)}},g("Remove","wp-seopress"))))}))},w=function(e){var t=r.faqs.filter((function(t,n){return n!==e}));n.setAttributes({faqs:t})},b=function(e,t){var a=r.faqs.map((function(n,r){return r!==t?n:p(p({},n),{},{question:e})}));n.setAttributes({faqs:a})},R=function(e,t){var a=r.faqs.map((function(n,r){return r!==t?n:p(p({},n),{},{answer:e})}));n.setAttributes({faqs:a})},v=function(e,t){var a=r.faqs.map((function(n,r){return r!==t?n:p(p({},n),{},{image:e})}));n.setAttributes({faqs:a})},y=function(e){var t=r.faqs.map((function(t,n){return n!==e?t:p(p({},t),{},{image:null})}));n.setAttributes({faqs:t})},E=React.createElement(t.InspectorControls,null,React.createElement(e.PanelBody,{title:g("FAQ Settings","wp-seopress")},React.createElement("p",null,g("List Style","wp-seopress")),React.createElement(e.PanelRow,{className:"wpseopress-faqs-list-style"},React.createElement(e.ButtonGroup,null,React.createElement(e.Button,{isSecondary:!0,isPrimary:"none"==a,onClick:function(e){n.setAttributes({listStyle:"none"})}},_x("NONE","Div tag List","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"ol"==a,onClick:function(e){n.setAttributes({listStyle:"ol"})}},_x("OL","Numbered List","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"ul"==a,onClick:function(e){n.setAttributes({listStyle:"ul"})}},_x("UL","Unordered List","wp-seopress")))),React.createElement("p",null,g("Title Wrapper","wp-seopress")),React.createElement(e.PanelRow,{className:"wpseopress-faqs-title-wrapper"},React.createElement(e.ButtonGroup,null,React.createElement(e.Button,{isSecondary:!0,isPrimary:"h2"==s,onClick:function(e){n.setAttributes({titleWrapper:"h2"})}},_x("H2","H2 title tag","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"h3"==s,onClick:function(e){n.setAttributes({titleWrapper:"h3"})}},_x("H3","H3 title tag","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"h4"==s,onClick:function(e){n.setAttributes({titleWrapper:"h4"})}},_x("H4","H4 title tag","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"h5"==s,onClick:function(e){n.setAttributes({titleWrapper:"h5"})}},_x("H5","H5 title tag","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"h6"==s,onClick:function(e){n.setAttributes({titleWrapper:"h6"})}},_x("H6","H6 title tag","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"p"==s,onClick:function(e){n.setAttributes({titleWrapper:"p"})}},_x("P","P title tag","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"div"==s,onClick:function(e){n.setAttributes({titleWrapper:"div"})}},_x("DIV","DIV title tag","wp-seopress")))),React.createElement("p",null,g("Image Size","wp-seopress")),React.createElement(e.PanelRow,{className:"wpseopress-faqs-image-size"},React.createElement(e.ButtonGroup,null,React.createElement(e.Button,{isSecondary:!0,isPrimary:"thumbnail"==i,onClick:function(e){n.setAttributes({imageSize:"thumbnail"})}},_x("S","Thubmnail Size","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"medium"==i,onClick:function(e){n.setAttributes({imageSize:"medium"})}},_x("M","Medium Size","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"large"==i,onClick:function(e){n.setAttributes({imageSize:"large"})}},_x("L","Large Size","wp-seopress")),React.createElement(e.Button,{isSecondary:!0,isPrimary:"full"==i,onClick:function(e){n.setAttributes({imageSize:"full"})}},_x("XL","Original Size","wp-seopress")))),u&&React.createElement(React.Fragment,null,React.createElement("p",null,g("SEO Settings","wp-seopress")),React.createElement(e.PanelRow,null,React.createElement(e.ToggleControl,{label:g("Enable FAQ Schema","wp-seopress"),checked:!!o,onChange:function(e){n.setAttributes({showFAQScheme:!o})}}))),React.createElement("p",null,g("Display","wp-seopress")),React.createElement(e.PanelRow,null,React.createElement(e.ToggleControl,{label:g("Enable accordion","wp-seopress"),checked:!!l,onChange:function(e){n.setAttributes({showAccordion:!l})}}))));return React.createElement(d,null,E,React.createElement("div",{className:"wpseopress-faqs"},"ul"===a&&React.createElement("ul",null,m()),"ol"===a&&React.createElement("ol",null,m()),"none"===a&&m(),React.createElement("div",{className:"wpseopress-faqs-actions"},React.createElement("button",{type:"button",title:g("Add FAQ","wp-seopress"),className:"add-faq components-button is-secondary",onClick:function(e){var t;e.preventDefault(),n.setAttributes({faqs:[].concat((t=r.faqs,function(e){if(Array.isArray(e))return f(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[{question:"",answer:"",image:""}])})}},g("Add FAQ","wp-seopress")))))})),R=window.wp.blocks,v=window.wp.i18n;(0,R.registerBlockType)("wpseopress/faq-block",{title:(0,v.__)("FAQ","wp-seopress"),icon:"index-card",category:"wpseopress",example:{},edit:b,save:function(){return null}})}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,r),s.exports}r.m=t,e=[],r.O=function(t,n,a,s){if(!n){var i=1/0;for(u=0;u<e.length;u++){n=e[u][0],a=e[u][1],s=e[u][2];for(var o=!0,l=0;l<n.length;l++)(!1&s||i>=s)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(o=!1,s<i&&(i=s));if(o){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,a,s]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,431:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var a,s,i=n[0],o=n[1],l=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(a in o)r.o(o,a)&&(r.m[a]=o[a]);if(l)var u=l(r)}for(t&&t(n);c<i.length;c++)s=i[c],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(u)},n=self.webpackChunkwp_seopress=self.webpackChunkwp_seopress||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var a=r.O(void 0,[431],(function(){return r(515)}));a=r.O(a)}();
public/gutenberg/blocks/faq/style-index.css ADDED
@@ -0,0 +1 @@
 
1
+
public/gutenberg/blocks/sitemap/index.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-server-side-render'), 'version' => 'a4502c0e8ed058e10a24');
public/gutenberg/blocks/sitemap/index.css ADDED
@@ -0,0 +1 @@
 
1
+ .wp-block-wpseopress-sitemap .components-notice__content{color:initial}
public/gutenberg/blocks/sitemap/index.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.i18n,r=window.wp.blocks,n=window.wp.components,o=window.wp.blockEditor,a=window.wp.data;function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i=function(e){var r=e.attributes,a=e.setAttributes,i=e.allowedPostTypes;return React.createElement(o.InspectorControls,null,React.createElement(n.PanelBody,{title:(0,t.__)("Post types to display","wp-seopress")},i&&React.createElement(React.Fragment,null,React.createElement("p",null,(0,t.__)("By default, if you have not selected any post types below, we’ll automatically take the ones set from the Sitemap setting page.","wp-seopress")),React.createElement("ul",null,i.map((function(e){return React.createElement("li",{key:e.slug},React.createElement(n.CheckboxControl,{label:e.name,checked:r.postTypes.includes(e.slug),onChange:function(t){return o=e.slug,(n=r.postTypes,i=function(e){if(Array.isArray(e))return s(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).includes(o)?i=i.filter((function(e){return e!==o})):i.push(o),void a({postTypes:i});var n,o,i}}))}))))))},l=window.wp.serverSideRender,c=e.n(l);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(0,r.registerBlockType)("wpseopress/sitemap",{title:(0,t.__)("Sitemap","wp-seopress"),description:(0,t.__)("Display an HTML sitemap.","wp-seopress"),keywords:[(0,t.__)("sitemap","wp-seopress"),(0,t.__)("navigation","wp-seopress")],edit:function(e){var r=e.attributes,s=e.setAttributes,l=r.isSiteMapEnabled,f=r.optionsPageUrl,m=(0,t.__)("It looks like the Sitemap feature is not enabled from your SEO settings. You must activate it to use this block. Make sure the HTML sitemap option is also enabled.","wp-seopress"),w=[{label:(0,t.__)("Review settings","wp-seopress"),url:f,variant:"primary",isPrimary:!0,noDefaultClasses:!0}],b=["attachment","wp_navigation","nav_menu_item","wp_block","wp_template","wp_template_part","wp_navigation"],y=(0,a.withSelect)((function(e,t){var r=e("core").getPostTypes()||[],n=[];return r&&r.length&&(n=r.filter((function(e){return!b.includes(e.slug)}))),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allowedPostTypes:n},t)}))(i);return React.createElement("div",(0,o.useBlockProps)(),React.createElement(y,{attributes:r,setAttributes:s}),l?React.createElement(c(),{block:"wpseopress/sitemap",attributes:r}):React.createElement(n.Notice,{status:"warning",isDismissible:!1,actions:w},React.createElement("p",null,m)))},save:function(){return null}})}();
public/gutenberg/primary-category-select/index.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd4454d6cec16e500ca82');
public/gutenberg/primary-category-select/index.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(){"use strict";var e=window.wp.i18n,t=window.wp.element,r=window.wp.data,n=window.wp.components;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var m=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(y,t);var r,o,m,f,d=(m=y,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(m);if(f){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return l(this,e)});function y(){var e;return i(this,y),(e=d.apply(this,arguments)).onChange=e.onChange.bind(u(e)),e.updateMetabox=e.updateMetabox.bind(u(e)),e.state={primaryTermId:"none",selectableTerms:[]},e}return r=y,(o=[{key:"componentDidMount",value:function(){var e=this,t=this.props.primaryTermId||"none";this.setState({primaryTermId:t}),this.metaboxField=document.querySelector("#seopress_robots_primary_cat"),this.metaboxField&&this.metaboxField.addEventListener("change",(function(t){e.setState({primaryTermId:t.target.value})}))}},{key:"componentDidUpdate",value:function(e,t){var r=this;if(e.allTerms!==this.props.allTerms||e.selectedTermIds!==this.props.selectedTermIds){var n=this.props.allTerms&&this.props.allTerms.length?this.props.allTerms.filter((function(e){return r.props.selectedTermIds.includes(e.id)})):[],o=this.props.selectedTermIds.length&&this.props.selectedTermIds.includes(parseInt(this.state.primaryTermId))?this.state.primaryTermId:"none";this.setState({selectableTerms:n,primaryTermId:o})}t.primaryTermId===this.state.primaryTermId&&t.selectableTerms===this.state.selectableTerms||this.updateMetabox(this.state.primaryTermId)}},{key:"updateMetabox",value:function(e){if(this.metaboxField){var t=this.getOptions().map((function(t){var r=t.value==e?'selected="selected"':"";return'<option value="'.concat(t.value,'" ').concat(r,">").concat(t.label,"</option>")}));this.metaboxField.value=e,this.metaboxField.innerHTML=t.join("")}}},{key:"getOptions",value:function(){return[{value:"none",label:(0,e.__)("None (will disable this feature)","wp-seopress")}].concat(function(e){if(Array.isArray(e))return a(e)}(t=this.state.selectableTerms.map((function(e){return{value:e.id,label:e.name}})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var t}},{key:"onChange",value:function(e){this.setState({primaryTermId:e})}},{key:"render",value:function(){return!!this.state.selectableTerms.length&&React.createElement(n.SelectControl,{label:(0,e.__)("Select a primary category","wp-seopress"),value:this.state.primaryTermId,options:this.getOptions(),onChange:this.onChange})}}])&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),y}(t.Component),f=(0,r.withSelect)((function(e,t){var r=t.slug,n=e("core").getTaxonomy(r),o=n?e("core/editor").getEditedPostAttribute(n.rest_base):[];return{taxonomy:n,allTerms:e("core").getEntityRecords("taxonomy",r,{per_page:-1})||[],primaryTermId:e("core/editor").getEditedPostAttribute("meta")._seopress_robots_primary_cat||"none",selectedTermIds:o}}))(m);wp.hooks.addFilter("editor.PostTaxonomyType","wpseopress",(function(e){return function(t){return React.createElement(React.Fragment,null,React.createElement(e,t),t.slug&&"category"===t.slug&&React.createElement(n.PanelRow,{className:"seopress-primary-term-picker"},React.createElement(f,t)))}}))}();
public/images/.gitkeep ADDED
File without changes
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, schema, xml sitemap, redirection, meta title, open graph, content ana
6
  Requires at least: 5.0+
7
  Tested up to: 6.1
8
  Requires PHP: 7.2
9
- Stable tag: 6.1
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -364,6 +364,10 @@ You're theme is probably using a deprecated function to handle the title. <a hre
364
  12. Schema metabox
365
 
366
  == Changelog ==
 
 
 
 
367
  = 6.1 <a href="https://www.seopress.org/newsroom/product-news/seopress-6-1/">Read the blog post update</a> =
368
  * NEW Support for Site names in Google Search
369
  * NEW PHP 8.1 compatibility
6
  Requires at least: 5.0+
7
  Tested up to: 6.1
8
  Requires PHP: 7.2
9
+ Stable tag: 6.1.1
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
364
  12. Schema metabox
365
 
366
  == Changelog ==
367
+ = 6.1.1 =
368
+ * FIX Dynamic variables if null
369
+ * FIX wpml-config.xml file with WPML and Polylang (PRO)
370
+
371
  = 6.1 <a href="https://www.seopress.org/newsroom/product-news/seopress-6-1/">Read the blog post update</a> =
372
  * NEW Support for Site names in Google Search
373
  * NEW PHP 8.1 compatibility
seopress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: The SEO Guys at SEOPress
7
- Version: 6.1
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
10
  Text Domain: wp-seopress
@@ -73,7 +73,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
73
  ///////////////////////////////////////////////////////////////////////////////////////////////////
74
  //Define
75
  ///////////////////////////////////////////////////////////////////////////////////////////////////
76
- define('SEOPRESS_VERSION', '6.1');
77
  define('SEOPRESS_AUTHOR', 'Benjamin Denis');
78
  define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
79
  define('SEOPRESS_PLUGIN_DIR_URL', plugin_dir_url(__FILE__));
@@ -672,7 +672,7 @@ function seopress_notice() {
672
  }
673
 
674
  if ( is_plugin_active('wp-seopress-pro/seopress-pro.php') && version_compare(SEOPRESS_PRO_VERSION, '5.4', '<')) {
675
- if (SEOPRESS_PRO_VERSION === '6.1') {
676
  return;
677
  }
678
  $docs = seopress_get_docs_links();
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: The SEO Guys at SEOPress
7
+ Version: 6.1.1
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
10
  Text Domain: wp-seopress
73
  ///////////////////////////////////////////////////////////////////////////////////////////////////
74
  //Define
75
  ///////////////////////////////////////////////////////////////////////////////////////////////////
76
+ define('SEOPRESS_VERSION', '6.1.1');
77
  define('SEOPRESS_AUTHOR', 'Benjamin Denis');
78
  define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
79
  define('SEOPRESS_PLUGIN_DIR_URL', plugin_dir_url(__FILE__));
672
  }
673
 
674
  if ( is_plugin_active('wp-seopress-pro/seopress-pro.php') && version_compare(SEOPRESS_PRO_VERSION, '5.4', '<')) {
675
+ if (SEOPRESS_PRO_VERSION === '6.1.1') {
676
  return;
677
  }
678
  $docs = seopress_get_docs_links();
src/Services/TagsToString.php CHANGED
@@ -72,9 +72,9 @@ class TagsToString {
72
 
73
  foreach ($tags[1] as $key => $tag) {
74
  $value = $this->getValueFromTag($tag, $context);
75
- if( ! $value) {
76
- continue;
77
- }
78
  $string = str_replace($tags[0][$key], $value, $string);
79
  }
80
 
72
 
73
  foreach ($tags[1] as $key => $tag) {
74
  $value = $this->getValueFromTag($tag, $context);
75
+ // if( ! $value) {
76
+ // continue;
77
+ // }
78
  $string = str_replace($tags[0][$key], $value, $string);
79
  }
80
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit339939d335e3d7b1bcc9634cec27f261::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit4abdb5904957d1003b23d2f30d6b5059::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit339939d335e3d7b1bcc9634cec27f261
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit339939d335e3d7b1bcc9634cec27f261
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit339939d335e3d7b1bcc9634cec27f261', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit339939d335e3d7b1bcc9634cec27f261', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit339939d335e3d7b1bcc9634cec27f261::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit339939d335e3d7b1bcc9634cec27f261
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit339939d335e3d7b1bcc9634cec27f261::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire339939d335e3d7b1bcc9634cec27f261($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire339939d335e3d7b1bcc9634cec27f261($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit4abdb5904957d1003b23d2f30d6b5059
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit4abdb5904957d1003b23d2f30d6b5059', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit4abdb5904957d1003b23d2f30d6b5059', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit4abdb5904957d1003b23d2f30d6b5059::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit4abdb5904957d1003b23d2f30d6b5059::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire4abdb5904957d1003b23d2f30d6b5059($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire4abdb5904957d1003b23d2f30d6b5059($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit339939d335e3d7b1bcc9634cec27f261
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
@@ -144,9 +144,9 @@ class ComposerStaticInit339939d335e3d7b1bcc9634cec27f261
144
  public static function getInitializer(ClassLoader $loader)
145
  {
146
  return \Closure::bind(function () use ($loader) {
147
- $loader->prefixLengthsPsr4 = ComposerStaticInit339939d335e3d7b1bcc9634cec27f261::$prefixLengthsPsr4;
148
- $loader->prefixDirsPsr4 = ComposerStaticInit339939d335e3d7b1bcc9634cec27f261::$prefixDirsPsr4;
149
- $loader->classMap = ComposerStaticInit339939d335e3d7b1bcc9634cec27f261::$classMap;
150
 
151
  }, null, ClassLoader::class);
152
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit4abdb5904957d1003b23d2f30d6b5059
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
144
  public static function getInitializer(ClassLoader $loader)
145
  {
146
  return \Closure::bind(function () use ($loader) {
147
+ $loader->prefixLengthsPsr4 = ComposerStaticInit4abdb5904957d1003b23d2f30d6b5059::$prefixLengthsPsr4;
148
+ $loader->prefixDirsPsr4 = ComposerStaticInit4abdb5904957d1003b23d2f30d6b5059::$prefixDirsPsr4;
149
+ $loader->classMap = ComposerStaticInit4abdb5904957d1003b23d2f30d6b5059::$classMap;
150
 
151
  }, null, ClassLoader::class);
152
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '2496caba30ab993eff44f57979d03e6b8168693b',
9
  'name' => 'wp-seopress/wp-seopress',
10
  'dev' => false,
11
  ),
@@ -202,7 +202,7 @@
202
  'type' => 'wordpress-plugin',
203
  'install_path' => __DIR__ . '/../../',
204
  'aliases' => array(),
205
- 'reference' => '2496caba30ab993eff44f57979d03e6b8168693b',
206
  'dev_requirement' => false,
207
  ),
208
  ),
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => 'e46fb1b8bf83057135ba950e22308554b63334d9',
9
  'name' => 'wp-seopress/wp-seopress',
10
  'dev' => false,
11
  ),
202
  'type' => 'wordpress-plugin',
203
  'install_path' => __DIR__ . '/../../',
204
  'aliases' => array(),
205
+ 'reference' => 'e46fb1b8bf83057135ba950e22308554b63334d9',
206
  'dev_requirement' => false,
207
  ),
208
  ),