WordPress SEO Plugin – Rank Math - Version 1.0.30.2

Version Description

[Jul 23, 2019] = * Improved the compatibility with the AMPforWP plugin further by making it performant with MariaDB as well * Improved the styling of the feedback form upon deactivation * Improved Focus Keyword filter further to perform better * Fixed an issue with the importing of the Redirections from other plugins * Fixed a PHP 7.3 deprecation notice (hopefully!)

Full changelog can be found here - Rank Math SEO changelog

Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WordPress SEO Plugin – Rank Math
Version 1.0.30.2
Comparing to
See all releases

Code changes from version 1.0.30.1 to 1.0.30.2

assets/admin/css/feedback.css CHANGED
@@ -2,4 +2,4 @@
2
  * Plugin: Rank Math
3
  * URL: https://rankmath.com/wordpress/plugin/seo-suite/
4
  * Name: feedback.css
5
- */.rank-math-feedback-modal{z-index:11000;display:none;background:rgba(0,0,0,0.2);position:fixed;top:0;right:0;bottom:0;left:0}.rank-math-feedback-modal h2{margin:0;font-weight:700;box-shadow:0 0 12px 0 #b9b9b9}.rank-math-feedback-modal h2,.rank-math-feedback-modal p{padding:15px 20px;color:#21262b}.rank-math-feedback-modal form{padding:0 20px}.rank-math-feedback-modal .button-close{cursor:pointer}.rank-math-feedback-modal .button-link{font-weight:600}.rank-math-feedback-modal footer{padding:20px 0}.rank-math-feedback-modal footer .button{text-decoration:none}.rank-math-feedback-modal footer .button.loading{border:0;background:url(../img/ajax-loader.gif) center no-repeat}.rank-math-feedback-content{width:440px;margin:auto;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border-radius:4px;background:#fff;box-shadow:10px 10px 40px rgba(0,0,0,0.3);position:absolute;top:50%;left:50%}.rank-math-feedback-input-wrapper{margin-bottom:5px}.rank-math-feedback-input-wrapper input{margin-top:2px;margin-right:8px}.rank-math-feedback-input-wrapper label{font-size:14px;color:#666}.rank-math-feedback-input-wrapper .regular-text{display:none;margin:7px 0 10px 27px}.rank-math-feedback-input-wrapper.checked .regular-text{display:block}
2
  * Plugin: Rank Math
3
  * URL: https://rankmath.com/wordpress/plugin/seo-suite/
4
  * Name: feedback.css
5
+ */.rank-math-feedback-modal{z-index:11000;display:none;background:rgba(0,0,0,0.8);position:fixed;top:0;right:0;bottom:0;left:0}.rank-math-feedback-modal h2{margin:0;font-weight:700;border-bottom:1px solid #e1e1e1}.rank-math-feedback-modal h2,.rank-math-feedback-modal p{padding:15px 20px;color:#21262b}.rank-math-feedback-modal form{padding:0 20px}.rank-math-feedback-modal .button-close{cursor:pointer}.rank-math-feedback-modal .button-link{font-weight:600}.rank-math-feedback-modal footer{padding:20px 0}.rank-math-feedback-modal footer .button{text-decoration:none}.rank-math-feedback-modal footer .button.loading{border:0;background:url(../img/ajax-loader.gif) center no-repeat}.rank-math-feedback-content{width:440px;margin:auto;transform:translate(-50%, -50%);border-radius:4px;background:#fff;box-shadow:10px 10px 40px rgba(0,0,0,0.3);position:absolute;top:50%;left:50%}.rank-math-feedback-input-wrapper{margin-bottom:5px}.rank-math-feedback-input-wrapper input{margin-top:2px;margin-right:8px}.rank-math-feedback-input-wrapper label{font-size:14px;color:#666}.rank-math-feedback-input-wrapper .regular-text{display:none;margin:7px 0 10px 27px}.rank-math-feedback-input-wrapper.checked .regular-text{display:block}
assets/admin/js/assessor.js CHANGED
Binary file
assets/admin/js/common.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=325)}({325:function(e,t,a){"use strict";function n(e){return(n="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})(e)}var r;r=jQuery,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,a){return void 0!==e[a]?e[a]:t})}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(RegExp("["+e+"]+$"),"")},r(function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.searchConsole(),this.dependencyManager()},misc:function(){void 0!==jQuery.fn.select2&&r("[data-s2]").select2(),r(".cmb-group-text-only,.cmb-group-fix-me").each(function(){var e=r(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()}),r(".rank-math-collapsible-trigger").on("click",function(e){e.preventDefault();var t=r(this),a=r("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")})},searchConsole:function(){var e=this,t=null,a=r("#console_authorization_code"),i=r("#gsc-dp-info"),o=r("#console_profile"),c=a.parent(),s=o.parent(),l=s.find(".button-primary"),d=r("body").hasClass("rank-math-wizard-body--searchconsole")?r("> p:first-of-type",".cmb-form"):r("h1",".rank-math-wrap-settings");a.after(c.find(".button")),o.after(s.find(".button")),o.on("change",function(){null!==o.val()&&0===o.val().indexOf("sc-domain:")?i.removeClass("hidden"):i.addClass("hidden")}).change(),t=l.prev(),a.data("authorized")&&a.hide(),c.on("click",".button-secondary",function(e){e.preventDefault(),window.open(this.href,"","width=800, height=600")}),c.on("click",".button-primary",function(i){i.preventDefault();var o=r(this);o.prop("disabled",!0),a.data("authorized")?e.ajax("search_console_deauthentication").always(function(){o.prop("disabled",!1)}).done(function(){a.val(""),r("#submit-cmb").trigger("click"),"object"===("undefined"==typeof rankMathSetupWizard?"undefined":n(rankMathSetupWizard))&&(a.show(),a.data("authorized",!1),c.find(".button-secondary").show(),o.html("Authorize"),t.prop("disabled",!0),l.prop("disabled",!0))}):(a.addClass("input-loading"),e.ajax("search_console_authentication",{code:a.val()}).always(function(){o.prop("disabled",!1),a.removeClass("input-loading")}).done(function(n){n&&!n.success&&e.addNotice(n.error,"error",d),n&&"fail"===n.status&&e.addNotice(n.body.error_description,"error",d),n&&"success"===n.status&&(a.hide(),a.data("authorized",!0),c.find(".button-secondary").hide(),o.html("De-authorize Account"),l.trigger("click"),t.removeAttr("disabled"))}))}),l.on("click",function(a){a.preventDefault(),l.prop("disabled",!0),t.addClass("input-loading"),e.ajax("search_console_get_profiles").always(function(){l.prop("disabled",!1),r(".console-cache-update-manually").prop("disabled",!1),t.removeClass("input-loading")}).done(function(a){if(a&&!a.success&&e.addNotice(a.error,"error",d),a&&a.success){var n=a.selected||t.val();t.html(""),r.each(a.profiles,function(e,a){t.append('<option value="'+e+'">'+a+"</option>")}),t.val(n||Object.keys(a.profiles)[0]),l.removeClass("hidden")}})})},dependencyManager:function(){var e=this,t=r(".cmb-form, .rank-math-metabox-wrap");r(".cmb-repeat-group-wrap",t).each(function(){var e=r(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)}),r(".rank-math-cmb-dependency",t).each(function(){e.loopDependencies(r(this))}),r("input, select",t).on("change",function(){var t=r(this).attr("name");r('span[data-field="'+t+'"]').each(function(){e.loopDependencies(r(this).closest(".rank-math-cmb-dependency"))})})},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&e>=t||"<="===a&&t>=e||">"===a&&e>t||"<"===a&&t>e||"!="===a&&e!==t},loopDependencies:function(e){var t,a=this,n=e.data("relation");e.find("span").each(function(){var e=r(this),i=e.data("value"),o=e.data("comparison"),c=r("[name='"+e.data("field")+"']"),s=c.val();c.is(":radio")&&(s=c.filter(":checked").val()),c.is(":checkbox")&&(s=c.is(":checked"));var l=a.checkDependency(s,i,o);if("or"===n&&l)return t=!0,!1;"and"===n&&(t=void 0===t?l:t&&l)});var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),t?i.slideDown(300):i.hide()},tabs:function(){var e=r(".rank-math-tabs-navigation");e.length&&e.each(function(){var t=r(this),a=t.closest(".rank-math-tabs"),n=r(">a",t),i=r(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active";n.on("click",function(){var e=r(this),t=e.attr("href");return n.removeClass(o),i.hide(),e.addClass(o),r(t).show(),!1});var c=location.hash||localStorage.getItem(a.attr("id"));null===c?n.eq(0).trigger("click"):(c=r('a[href="'+c+'"]',t)).length?c.trigger("click"):n.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())})},variableInserter:function(e){var t=this,a=r("body"),n=r("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,n.length){n.attr("autocomplete","off"),n.wrap('<div class="rank-math-variables-wrap"/>'),r(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(r(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="Example"/>'),n.on("rank_math_variable_change input",function(e){var a=r(e.currentTarget),n=t.replaceVariables(a.val());n.length>60&&a.attr("name").indexOf("title")>=0&&(n=n.substring(0,60)+"..."),a.parent().next(".rank-math-variables-preview").html(n)}),n.trigger("rank_math_variable_change"));var i=r("<ul/>"),o=r('<div class="rank-math-variables-dropdown"><input type="text" placeholder="Search &hellip;"></div>');r.each(rankMath.variables,function(e){i.append('<li data-var="%'+e+'%"'+(this.example?' data-example="'+this.example+'"':"")+"><strong>"+this.name+"</strong><span>"+this.desc+"</span></li>")}),o.append(i),r(".rank-math-variables-wrap:eq(0)").append(o);var c=r(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");r(a).on("click",function(e){r(e.target).is(c)||o.hide()});var s=o.find("input"),l=o.find("li");r(a).on("click",".rank-math-variables-button",function(e){e.preventDefault(),r(this).after(o),l.show(),o.show(),s.val("").focus()}),o.on("click","li",function(e){e.preventDefault();var t=r(this),a=t.closest(".rank-math-variables-wrap").find(">:first-child");a.val(r.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),o.hide()}),o.on("keyup","input",function(e){e.preventDefault();var t=r(this).val().toLowerCase();2>t.length?l.show():l.hide().each(function(){var e=r(this);-1!==e.text().toLowerCase().indexOf(t)&&e.show()})})}},replaceVariables:function(e){return r.each(rankMath.variables,function(t){if(!this.example)return!0;t=t.replace(/\([a-z]+\)/g,"\\(.*?\\)"),e=e.replace(RegExp("%+"+t+"%+","g"),this.example)}),e},ajax:function(e,t,a){return r.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:r.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},addNotice:function(e,t,a,n){n=n||!1;var i=r('<div class="notice notice-'+(t=t||"error")+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(i),i.slideDown(),r(document).trigger("wp-updates-notice-added"),n&&setTimeout(function(){i.fadeOut()},n)}},window.rankMathAdmin.init()})}});
1
+ !function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=205)}({205:function(e,t,a){"use strict";function n(e){return(n="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})(e)}var r;r=jQuery,String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,a){return void 0!==e[a]?e[a]:t})}),String.prototype.trimRight=function(e){return void 0===e&&(e="s"),this.replace(RegExp("["+e+"]+$"),"")},r(function(){window.rankMathAdmin={init:function(){this.misc(),this.tabs(),this.searchConsole(),this.dependencyManager()},misc:function(){void 0!==jQuery.fn.select2&&r("[data-s2]").select2(),r(".cmb-group-text-only,.cmb-group-fix-me").each(function(){var e=r(this),t=e.find(".cmb-repeatable-group"),a=t.find("> .cmb-row:eq(0) > .cmb-th");e.prepend('<div class="cmb-th"><label>'+a.find("h2").text()+"</label></div>"),t.find(".cmb-add-row").append('<span class="cmb2-metabox-description">'+a.find("p").text()+"</span>"),a.parent().remove()}),r(".rank-math-collapsible-trigger").on("click",function(e){e.preventDefault();var t=r(this),a=r("#"+t.data("target"));t.toggleClass("open"),a.toggleClass("open")})},searchConsole:function(){var e=this,t=null,a=r("#console_authorization_code"),i=r("#gsc-dp-info"),o=r("#console_profile"),c=a.parent(),s=o.parent(),l=s.find(".button-primary"),d=r("body").hasClass("rank-math-wizard-body--searchconsole")?r("> p:first-of-type",".cmb-form"):r("h1",".rank-math-wrap-settings");a.after(c.find(".button")),o.after(s.find(".button")),o.on("change",function(){null===o.val()||o.val().indexOf("sc-domain:")?i.addClass("hidden"):i.removeClass("hidden")}).change(),t=l.prev(),a.data("authorized")&&a.hide(),c.on("click",".button-secondary",function(e){e.preventDefault(),window.open(this.href,"","width=800, height=600")}),c.on("click",".button-primary",function(i){i.preventDefault();var o=r(this);o.prop("disabled",!0),a.data("authorized")?e.ajax("search_console_deauthentication").always(function(){o.prop("disabled",!1)}).done(function(){a.val(""),r("#submit-cmb").trigger("click"),"object"===("undefined"==typeof rankMathSetupWizard?"undefined":n(rankMathSetupWizard))&&(a.show(),a.data("authorized",!1),c.find(".button-secondary").show(),o.html("Authorize"),t.prop("disabled",!0),l.prop("disabled",!0))}):(a.addClass("input-loading"),e.ajax("search_console_authentication",{code:a.val()}).always(function(){o.prop("disabled",!1),a.removeClass("input-loading")}).done(function(n){n&&!n.success&&e.addNotice(n.error,"error",d),n&&"fail"===n.status&&e.addNotice(n.body.error_description,"error",d),n&&"success"===n.status&&(a.hide(),a.data("authorized",!0),c.find(".button-secondary").hide(),o.html("De-authorize Account"),l.trigger("click"),t.removeAttr("disabled"))}))}),l.on("click",function(a){a.preventDefault(),l.prop("disabled",!0),t.addClass("input-loading"),e.ajax("search_console_get_profiles").always(function(){l.prop("disabled",!1),r(".console-cache-update-manually").prop("disabled",!1),t.removeClass("input-loading")}).done(function(a){if(a&&!a.success&&e.addNotice(a.error,"error",d),a&&a.success){var n=a.selected||t.val();t.html(""),r.each(a.profiles,function(e,a){t.append('<option value="'+e+'">'+a+"</option>")}),t.val(n||Object.keys(a.profiles)[0]),l.removeClass("hidden")}})})},dependencyManager:function(){var e=this,t=r(".cmb-form, .rank-math-metabox-wrap");r(".cmb-repeat-group-wrap",t).each(function(){var e=r(this),t=e.next(".rank-math-cmb-dependency.hidden");t.length&&e.find("> .cmb-td").append(t)}),r(".rank-math-cmb-dependency",t).each(function(){e.loopDependencies(r(this))}),r("input, select",t).on("change",function(){var t=r(this).attr("name");r('span[data-field="'+t+'"]').each(function(){e.loopDependencies(r(this).closest(".rank-math-cmb-dependency"))})})},checkDependency:function(e,t,a){return"string"==typeof t&&t.includes(",")&&"="===a?t.includes(e):"string"==typeof t&&t.includes(",")&&"!="===a?!t.includes(e):"="===a&&e===t||"=="===a&&e===t||">="===a&&t<=e||"<="===a&&e<=t||">"===a&&t<e||"<"===a&&e<t||"!="===a&&e!==t},loopDependencies:function(e){var t,a=this,n=e.data("relation");e.find("span").each(function(){var e=r(this),i=e.data("value"),o=e.data("comparison"),c=r("[name='"+e.data("field")+"']"),s=c.val();c.is(":radio")&&(s=c.filter(":checked").val()),c.is(":checkbox")&&(s=c.is(":checked"));var l=a.checkDependency(s,i,o);if("or"===n&&l)return!(t=!0);"and"===n&&(t=void 0===t?l:t&&l)});var i=e.closest(".rank-math-cmb-group");i.length||(i=e.closest(".cmb-row")),t?i.slideDown(300):i.hide()},tabs:function(){var e=r(".rank-math-tabs-navigation");e.length&&e.each(function(){var t=r(this),a=t.closest(".rank-math-tabs"),n=r(">a",t),i=r(">.rank-math-tabs-content>.rank-math-tab",a),o=t.data("active-class")||"active";n.on("click",function(){var e=r(this),t=e.attr("href");return n.removeClass(o),i.hide(),e.addClass(o),r(t).show(),!1});var c=location.hash||localStorage.getItem(a.attr("id"));null===c?n.eq(0).trigger("click"):(c=r('a[href="'+c+'"]',t)).length?c.trigger("click"):n.eq(0).trigger("click"),e.next().css("min-height",t.outerHeight())})},variableInserter:function(e){var t=this,a=r("body"),n=r("input[type=text], textarea",".rank-math-supports-variables");if(e=void 0===e||e,n.length){n.attr("autocomplete","off"),n.wrap('<div class="rank-math-variables-wrap"/>'),r(".rank-math-variables-wrap").append('<a href="#" class="rank-math-variables-button button button-secondary"><span class="dashicons dashicons-arrow-down-alt2"></span></a>'),e&&(r(".rank-math-variables-wrap").after('<div class="rank-math-variables-preview" data-title="Example"/>'),n.on("rank_math_variable_change input",function(e){var a=r(e.currentTarget),n=t.replaceVariables(a.val());60<n.length&&~a.attr("name").indexOf("title")&&(n=n.substring(0,60)+"..."),a.parent().next(".rank-math-variables-preview").html(n)}),n.trigger("rank_math_variable_change"));var i=r("<ul/>"),o=r('<div class="rank-math-variables-dropdown"><input type="text" placeholder="Search &hellip;"></div>');r.each(rankMath.variables,function(e){i.append('<li data-var="%'+e+'%"'+(this.example?' data-example="'+this.example+'"':"")+"><strong>"+this.name+"</strong><span>"+this.desc+"</span></li>")}),o.append(i),r(".rank-math-variables-wrap:eq(0)").append(o);var c=r(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");r(a).on("click",function(e){r(e.target).is(c)||o.hide()});var s=o.find("input"),l=o.find("li");r(a).on("click",".rank-math-variables-button",function(e){e.preventDefault(),r(this).after(o),l.show(),o.show(),s.val("").focus()}),o.on("click","li",function(e){e.preventDefault();var t=r(this),a=t.closest(".rank-math-variables-wrap").find(">:first-child");a.val(r.trim(a.val())+" "+t.data("var")),a.trigger("rank_math_variable_change").trigger("input"),o.hide()}),o.on("keyup","input",function(e){e.preventDefault();var t=r(this).val().toLowerCase();t.length<2?l.show():l.hide().each(function(){var e=r(this);~e.text().toLowerCase().indexOf(t)&&e.show()})})}},replaceVariables:function(e){return r.each(rankMath.variables,function(t){if(!this.example)return!0;t=t.replace(/\([a-z]+\)/g,"\\(.*?\\)"),e=e.replace(RegExp("%+"+t+"%+","g"),this.example)}),e},ajax:function(e,t,a){return r.ajax({url:rankMath.ajaxurl,type:a||"POST",dataType:"json",data:r.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},addNotice:function(e,t,a,n){n=n||!1;var i=r('<div class="notice notice-'+(t=t||"error")+' is-dismissible"><p>'+e+"</p></div>").hide();a.next(".notice").remove(),a.after(i),i.slideDown(),r(document).trigger("wp-updates-notice-added"),n&&setTimeout(function(){i.fadeOut()},n)}},window.rankMathAdmin.init()})}});
assets/admin/js/dashboard.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=326)}({326:function(e,t,n){"use strict";var r;(r=jQuery)(".dashboard-deactivate-plugin").on("click",function(e){e.preventDefault();var t=r(this);return r.ajax({url:ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).always(function(e){"1"===e?t.parents(".rank-math-notice").remove():console.log("Deactivation error")}),!1}),r(".rank-math-modules").on("change",function(){var e=r(this),t=e.closest(".rank-math-box"),n=e.is(":checked"),a=e.val(),o={"404-monitor":"404-monitor",redirections:"redirections","role-manager":"role-manager","search-console":"search-console","seo-analysis":"seo-analysis",sitemap:"options-sitemap"};t.addClass("saving"),r.ajax({url:rankMath.api.root+"rankmath/v1/saveModule",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{module:a,state:n?"on":"off"}}).done(function(e){e?(t.removeClass("saving"),t.toggleClass("active",n),!n&&o.hasOwnProperty(a)&&r("#toplevel_page_rank-math").find('a[href="admin.php?page=rank-math-'+o[a]+'"]').parent("li").toggle()):alert("Something went wrong! Please try again.")})}),"undefined"!=typeof ClipboardJS&&(r(".get-debug-report").on("click",function(){return r("#debug-report").slideDown(),r("#debug-report textarea").focus().select(),r(this).parent().fadeOut(),!1}),new ClipboardJS("#copy-for-support"))}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=206)}({206:function(e,t,n){"use strict";var r;(r=jQuery)(".dashboard-deactivate-plugin").on("click",function(e){e.preventDefault();var t=r(this);return r.ajax({url:ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).always(function(e){"1"===e?t.parents(".rank-math-notice").remove():console.log("Deactivation error")}),!1}),r(".rank-math-modules").on("change",function(){var e=r(this),t=e.closest(".rank-math-box"),n=e.is(":checked"),a=e.val(),o={"404-monitor":"404-monitor",redirections:"redirections","role-manager":"role-manager","search-console":"search-console","seo-analysis":"seo-analysis",sitemap:"options-sitemap"};t.addClass("saving"),r.ajax({url:rankMath.api.root+"rankmath/v1/saveModule",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{module:a,state:n?"on":"off"}}).done(function(e){e?(t.removeClass("saving"),t.toggleClass("active",n),!n&&o.hasOwnProperty(a)&&r("#toplevel_page_rank-math").find('a[href="admin.php?page=rank-math-'+o[a]+'"]').parent("li").toggle()):alert("Something went wrong! Please try again.")})}),"undefined"!=typeof ClipboardJS&&(r(".get-debug-report").on("click",function(){return r("#debug-report").slideDown(),r("#debug-report textarea").focus().select(),r(this).parent().fadeOut(),!1}),new ClipboardJS("#copy-for-support"))}});
assets/admin/js/feedback.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=327)}({327:function(e,t,n){"use strict";var r;(r=jQuery)(function(){var e=r("#rank-math-feedback-form"),t=e.find(".rank-math-feedback-input-wrapper"),n=e.find("form"),o=r("#the-list").find('[data-slug="seo-by-rank-math"] span.deactivate a');o.on("click",function(t){t.preventDefault(),e.fadeIn()}),e.on("change","input:radio",function(){var e=r(this).parent();t.removeClass("checked"),e.toggleClass("checked")}),e.on("click",".button-skip",function(){location.href=o.attr("href")}),e.on("click",".button-close",function(t){t.preventDefault(),e.fadeOut()}),n.on("submit",function(e){e.preventDefault(),n.find(".button-submit").text("").addClass("loading"),r.ajax({url:ajaxurl,type:"POST",dataType:"json",data:n.serialize()}).done(function(){location.href=o.attr("href")})})})}});
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=207)}({207:function(e,t,n){"use strict";var r;(r=jQuery)(function(){var e=r("#rank-math-feedback-form"),t=e.find(".rank-math-feedback-input-wrapper"),n=e.find("form"),o=r("#the-list").find('[data-slug="seo-by-rank-math"] span.deactivate a');o.on("click",function(t){t.preventDefault(),e.fadeIn()}),e.on("change","input:radio",function(){var e=r(this).parent();t.removeClass("checked"),e.toggleClass("checked")}),e.on("click",".button-skip",function(){location.href=o.attr("href")}),e.on("click",".button-close",function(t){t.preventDefault(),e.fadeOut()}),e.on("click",function(e){"rank-math-feedback-form"===e.target.id&&r(this).find(".button-close").trigger("click")}),n.on("submit",function(e){e.preventDefault(),n.find(".button-submit").text("").addClass("loading"),r.ajax({url:ajaxurl,type:"POST",dataType:"json",data:n.serialize()}).done(function(){location.href=o.attr("href")})})})}});
assets/admin/js/import-export.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=328)}({328:function(e,t,r){"use strict";var a;(a=jQuery)(function(){({init:function(){var e=this;a(document.body).on("click",".rank-math-action",function(t){var r=a(this).data("action");r in e&&e[r](t)}),this.importConfirm()},importConfirm:function(){var e=a("#import-me");e.on("change",function(){e.removeClass("invalid")}),a("#rank-math-import-form").on("submit",function(t){if(!e.get(0).files.length)return e.addClass("invalid"),void t.preventDefault();confirm(rankMath.importConfirm)||t.preventDefault()})},createBackup:function(e){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("create_backup").always(function(){r.prop("disabled",!1)}).done(function(e){if(e.success){var n=r.parent().find("tbody"),o=n.find("tr:first").clone();o.removeClass("hidden").find("th").html(e.backup),o.find("[data-action]").attr("data-key",e.key),n.prepend(o),a("#rank-math-no-backup-message").addClass("hidden"),t.addNotice(e.message,"success",a(".wp-header-end"),2e3)}else t.addNotice(e.error,"error",a(".wp-header-end"),2e3)})},restoreBackup:function(e){if(confirm(rankMath.restoreConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("restore_backup",{key:r.attr("data-key")}).always(function(){r.prop("disabled",!1)}).done(function(e){e.success?t.addNotice(e.message,"success",a(".wp-header-end"),2e3):t.addNotice(e.error,"error",a(".wp-header-end"),2e3)})}},deleteBackup:function(e){if(confirm(rankMath.deleteBackupConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("delete_backup",{key:r.data("key")}).always(function(){r.prop("disabled",!1)}).done(function(e){if(e.success){var n=r.closest("table");r.closest("tr").fadeOut(function(){a(this).remove(),1>n.find("tr").length&&a("#rank-math-no-backup-message").show()}),t.addNotice(e.message,"success",a(".wp-header-end"),2e3)}else t.addNotice(e.error,"error",a(".wp-header-end"),2e3)})}},importPlugin:function(e){if(confirm(rankMath.importConfirm)){var t=a(e.currentTarget);t.prop("disabled",!0);var r=a.map(t.closest("tr").next("tr").find("input:checkbox:checked"),function(e){return e.value});if(1>r.length)this.addNotice("Select data to import.","error",a(".wp-header-end"),2e3);else{t.data("active")&&r.push("deactivate");var n=a('<textarea id="import-progress-area" class="import-progress-area large-text" disabled="disabled" rows="8" style="margin: 20px 0;background: #eee;"></textarea>');a("#import-progress-area").remove(),t.closest(".list-table").after(n),this.addLog("Import started...",n),this.ajaxImport(t.data("slug"),r,n,null,function(){t.prop("disabled",!1),setTimeout(function(){n.fadeOut(function(){n.remove()})},3e3)})}}},ajaxImport:function(e,t,r,a,n){var o=this;if(0===t.length)return o.addLog("Import finished.",r),void n();var i=t.shift();a=a||1,o.addLog("deactivate"===i?"Deactivating plugin":"Importing "+i,r),o.ajax("import_plugin",{perform:i,pluginSlug:e,paged:a}).done(function(a){var s=1;a&&a.page&&a.total_pages>a.page&&(s=a.page+1,t.unshift(i)),o.addLog(a.success?a.message:a.error,r),o.ajaxImport(e,t,r,s,n)}).fail(function(a){o.addLog(a.statusText,r),o.ajaxImport(e,t,r,null,n)})},addLog:function(e,t){var r=new Date,a=t.val()+"["+(10>r.getHours()?"0":"")+r.getHours()+":"+(10>r.getMinutes()?"0":"")+r.getMinutes()+":"+(10>r.getSeconds()?"0":"")+r.getSeconds()+"] "+e+"\n";t.text(a).scrollTop(t[0].scrollHeight-t.height()-20)},cleanPlugin:function(e){if(confirm(rankMath.cleanPluginConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("clean_plugin",{pluginSlug:r.data("slug")}).always(function(){r.prop("disabled",!1)}).done(function(e){e.success&&r.closest("tr").fadeOut(function(){a(this).remove()}),t.addNotice(e.success?e.message:e.error,e.success?"success":"error",a(".wp-header-end"),2e3)})}},ajax:function(e,t,r){return a.ajax({url:rankMath.ajaxurl,type:r||"POST",dataType:"json",data:a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},addNotice:function(e,t,r,n){n=n||!1;var o=a('<div class="notice notice-'+(t=t||"error")+' is-dismissible"><p>'+e+"</p></div>").hide();a(".notice").hide(),r.after(o),o.slideDown(),a(document).trigger("wp-updates-notice-added"),n&&setTimeout(function(){o.fadeOut(function(){o.remove()})},n)}}).init()})}});
1
+ !function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=208)}({208:function(e,t,r){"use strict";var a;(a=jQuery)(function(){({init:function(){var e=this;a(document.body).on("click",".rank-math-action",function(t){var r=a(this).data("action");r in e&&e[r](t)}),this.importConfirm()},importConfirm:function(){var e=a("#import-me");e.on("change",function(){e.removeClass("invalid")}),a("#rank-math-import-form").on("submit",function(t){if(!e.get(0).files.length)return e.addClass("invalid"),void t.preventDefault();confirm(rankMath.importConfirm)||t.preventDefault()})},createBackup:function(e){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("create_backup").always(function(){r.prop("disabled",!1)}).done(function(e){if(e.success){var n=r.parent().find("tbody"),o=n.find("tr:first").clone();o.removeClass("hidden").find("th").html(e.backup),o.find("[data-action]").attr("data-key",e.key),n.prepend(o),a("#rank-math-no-backup-message").addClass("hidden"),t.addNotice(e.message,"success",a(".wp-header-end"),2e3)}else t.addNotice(e.error,"error",a(".wp-header-end"),2e3)})},restoreBackup:function(e){if(confirm(rankMath.restoreConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("restore_backup",{key:r.attr("data-key")}).always(function(){r.prop("disabled",!1)}).done(function(e){e.success?t.addNotice(e.message,"success",a(".wp-header-end"),2e3):t.addNotice(e.error,"error",a(".wp-header-end"),2e3)})}},deleteBackup:function(e){if(confirm(rankMath.deleteBackupConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("delete_backup",{key:r.data("key")}).always(function(){r.prop("disabled",!1)}).done(function(e){if(e.success){var n=r.closest("table");r.closest("tr").fadeOut(function(){a(this).remove(),n.find("tr").length<1&&a("#rank-math-no-backup-message").show()}),t.addNotice(e.message,"success",a(".wp-header-end"),2e3)}else t.addNotice(e.error,"error",a(".wp-header-end"),2e3)})}},importPlugin:function(e){if(confirm(rankMath.importConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0);var n=a.map(r.closest("tr").next("tr").find("input:checkbox:checked"),function(e){return e.value});if(n.length<1)t.addNotice("Select data to import.","error",a(".wp-header-end"),2e3);else{r.data("active")&&n.push("deactivate");var o=a('<textarea id="import-progress-area" class="import-progress-area large-text" disabled="disabled" rows="8" style="margin: 20px 0;background: #eee;"></textarea>');a("#import-progress-area").remove(),r.closest(".list-table").after(o),t.addLog("Import started...",o),t.ajaxImport(r.data("slug"),n,o,null,function(){r.prop("disabled",!1),setTimeout(function(){o.fadeOut(function(){o.remove()})},3e3)})}}},ajaxImport:function(e,t,r,a,n){var o=this;if(0===t.length)return o.addLog("Import finished.",r),void n();var i=t.shift();a=a||1,o.addLog("deactivate"===i?"Deactivating plugin":"Importing "+i,r),o.ajax("import_plugin",{perform:i,pluginSlug:e,paged:a}).done(function(a){var s=1;a&&a.page&&a.page<a.total_pages&&(s=a.page+1,t.unshift(i)),o.addLog(a.success?a.message:a.error,r),o.ajaxImport(e,t,r,s,n)}).fail(function(a){o.addLog(a.statusText,r),o.ajaxImport(e,t,r,null,n)})},addLog:function(e,t){var r=new Date,a=t.val()+"["+(r.getHours()<10?"0":"")+r.getHours()+":"+(r.getMinutes()<10?"0":"")+r.getMinutes()+":"+(r.getSeconds()<10?"0":"")+r.getSeconds()+"] "+e+"\n";t.text(a).scrollTop(t[0].scrollHeight-t.height()-20)},cleanPlugin:function(e){if(confirm(rankMath.cleanPluginConfirm)){var t=this,r=a(e.currentTarget);r.prop("disabled",!0),t.ajax("clean_plugin",{pluginSlug:r.data("slug")}).always(function(){r.prop("disabled",!1)}).done(function(e){e.success&&r.closest("tr").fadeOut(function(){a(this).remove()}),t.addNotice(e.success?e.message:e.error,e.success?"success":"error",a(".wp-header-end"),2e3)})}},ajax:function(e,t,r){return a.ajax({url:rankMath.ajaxurl,type:r||"POST",dataType:"json",data:a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},addNotice:function(e,t,r,n){n=n||!1;var o=a('<div class="notice notice-'+(t=t||"error")+' is-dismissible"><p>'+e+"</p></div>").hide();a(".notice").hide(),r.after(o),o.slideDown(),a(document).trigger("wp-updates-notice-added"),n&&setTimeout(function(){o.fadeOut(function(){o.remove()})},n)}}).init()})}});
assets/admin/js/option-panel.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function a(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=329)}({329:function(t,e,a){"use strict";var n;(n=jQuery)(function(){window.rankMathOptions={init:function(){this.misc(),this.preview(),this.scCache(),rankMathAdmin.variableInserter(),this.searchEngine.init(),this.addressFormat()},searchEngine:{init:function(){this.form=n(".rank-math-search-options"),this.wrap=this.form.closest(".rank-math-wrap-settings"),this.input=this.form.find("input"),this.select=this.form.find("select"),this.tabs=this.wrap.find(".rank-math-tabs"),this.panels=this.wrap.find(".rank-math-tab"),this.indexes={},this.buildIndex(),this.events()},events:function(){var t=this,e=!0,a=t.tabs.find(">.rank-math-tabs-navigation"),r=n('<div class="rank-math-search-dropdown"></div>');t.tabs.find(">.rank-math-tabs-content").prepend('<div class="rank-math-setting-search-empty hidden">No results found.</div>'),t.form.append(r),t.select.val(rankMath.optionPage),r.hide().empty();var o=_.debounce(function(e){t.wrap.addClass("searching"),t.panels.show(),t.searchOptions(e,t.wrap)},300),i=_.debounce(function(e){t.wrap.addClass("searching"),t.searchIndexes(e,r)},300);t.form.on("click",".clear-search",function(e){e.preventDefault(),t.input.val(""),t.clearSearch(a)}),t.select.on("change",function(){e=t.select.val()===rankMath.optionPage,r.hide().empty(),e||(t.clearSearch(a),r.append(t.indexes[t.select.val()])),t.input.trigger("input")}),t.input.on("input",function(){if(""===t.input.val())return t.clearSearch(a,!e&&r),!1;e?o(t.input.val().toLowerCase()):i(t.input.val().toLowerCase())}),r.on("click",".cmb-row",function(){var e=n(this);window.location=location.pathname+"?page=rank-math-options-"+t.select.val()+"#"+e.closest(".dropdown-tab").attr("id")});var s=n(".rank-math-search-options, .rank-math-search-options *, .rank-math-search-dropdown, .rank-math-search-dropdown *");n("body").on("click",function(t){n(t.target).is(s)||r.hide()})},searchIndexes:function(t,e){if(t.trim().length>=1){var a=0;e.find(".cmb-row").hide().each(function(){var e=n(this);e.text().trim().toLowerCase().includes(t)&&(e.show(),++a)}),e.show(),e.toggleClass("empty",0===a)}},searchOptions:function(t,e){if(t.trim().length>=1){n(".cmb-row").hide().each(function(){var e=n(this);e.hasClass("cmb-type-title")?e.hide():e.text().trim().toLowerCase().includes(t)&&e.show()});var a=n(".cmb-row:visible");0===a.length?e.addClass("search-no-results"):(e.removeClass("search-no-results"),a.each(function(){n(this).find("input, select").each(function(){n('span[data-field="'+n(this).attr("name")+'"]').each(function(){rankMathAdmin.loopDependencies(n(this).closest(".rank-math-cmb-dependency"))})})}))}},clearSearch:function(t,e){e=e||!1,this.wrap.removeClass("searching search-no-results"),n(">a.active",t).trigger("click"),e?e.hide():(n(".cmb-row").show(),n(".rank-math-cmb-dependency",".cmb-form, .rank-math-metabox-wrap").each(function(){rankMathAdmin.loopDependencies(n(this))}))},buildIndex:function(){var t=localStorage.getItem("rank-math-option-search-index"),e=localStorage.getItem("rank-math-option-search-premium"),a=void 0===t||rankMath;a=void 0===e||e!==rankMath.hasPremium,["general","titles","sitemap"].forEach(function(t){this.getIndex(t,a)},this),a&&(localStorage.setItem("rank-math-option-search-index",rankMath.version),localStorage.setItem("rank-math-option-search-premium",rankMath.hasPremium))},getIndex:function(t,e){var a=this;e?n("<div/>").load(rankMath.adminurl+"?page=rank-math-options-"+t,function(e,r){if("error"!==r){var o=n(e).find(".rank-math-tabs-content");o.find(".rank-math-tab").removeClass().addClass("dropdown-tab"),o.find(".cmb-row").each(function(){var t=n(this);(t.hasClass("cmb-type-title")||t.hasClass("cmb-type-notice"))&&t.remove(),t.find(".cmb-td").children(":not(.cmb2-metabox-description)").remove(),t.find("label,.cmb2-metabox-description").unwrap(),t.removeAttr("data-fieldtype")}),o=o.html().replace(/(\r\n\t|\n|\r\t)/gm,""),a.indexes[t]=n(o),localStorage.setItem("rank-math-option-"+t+"-index",o)}}):a.indexes[t]=n(localStorage.getItem("rank-math-option-"+t+"-index"))}},scCache:function(){n(".console-cache-delete").on("click",function(t){t.preventDefault();var e=n(this),a=e.data("days");window.confirm((-1===a?"You are about to delete your whole Cache. Every dataset older than 90 days is lost forever!":"You are about to delete your 90 days Cache?")+" Are you sure you want to continue?")&&(e.prop("disabled",!0),rankMathAdmin.ajax("search_console_delete_cache",{days:a},"GET").always(function(){e.prop("disabled",!1)}).done(function(t){t&&t.success&&(rankMathAdmin.addNotice("Cache deleted.","success",n("h1",".rank-math-wrap-settings")),n(".rank-math-console-db-info").remove(),n("#console-updating-manually-progress").before(t.message))}))}),n(".console-cache-update-manually").on("click",function(t){t.preventDefault();var e=n(this),a=n("#console_caching_control").val();e.prop("disabled",!0),rankMathAdmin.ajax("search_console_get_cache",{days:a},"GET").done(function(t){t&&t.success?rankMathAdmin.addNotice(t.message,"success",n("h1.page-title")):rankMathAdmin.addNotice("Unable to update cache due to: "+t.error,"error",n("h1.page-title"))})})},addressFormat:function(){var t=n("body"),e=n("input[type=text], textarea",".rank-math-address-format");if(e.length){e.attr("autocomplete","off"),e.wrap('<div class="rank-math-variables-wrap"/>');var a=e.parent(".rank-math-variables-wrap");a.append('<a href="#" class="rank-math-variables-button button button-secondary button-address"><span class="dashicons dashicons-arrow-down-alt2"></span></a>');var r=n("<ul/>"),o=n('<div class="rank-math-variables-dropdown"></div>');n.each({"{address} {locality}, {region} {postalcode}":"(New York, NY 12345)","{address} {postalcode}, {locality} {region}":"(New York 12345, NY)","{address} {locality} {postalcode}":"(New York NY 12345)","{postalcode} {region} {locality} {address}":"(12345 NY New York)","{address} {locality}":"(New York NY)"},function(t,e){r.append('<li data-var="'+e+'"><strong>'+t+"</strong></li>")}),o.append(r),n("rank-math-variables-wrap:eq(0)").append(o);var i=n(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");n(t).on("click",function(t){n(t.target).is(i)||o.hide()});var s=o.find("input"),c=o.find("li");n(a).on("click",".rank-math-variables-button",function(t){t.preventDefault(),n(this).after(o),c.show(),o.show(),s.val("").focus()}),o.on("click","li",function(t){t.preventDefault();var e=n(this);e.closest(".rank-math-variables-wrap").find("textarea").val(e.find("strong").text())})}},misc:function(){void 0!==jQuery.fn.select2&&n("[data-s2-pages]").select2({ajax:{url:rankMath.ajaxurl+"?action=rank_math_search_pages",dataType:"json",delay:250},width:"100%",minimumInputLength:3}),n("#htaccess_accept_changes").on("change",function(){this.checked?n("#htaccess_content").prop("readonly",!1):n("#htaccess_content").prop("readonly",!0)}),n(".reset-options").on("click",function(){return!!confirm("Are you sure? You want to reset settings.")&&(n(window).off("beforeunload"),!0)});var t=n(".rank-math-tabs");setTimeout(function(){localStorage.removeItem(t.attr("id"))},1e3),n(".save-options").on("click",function(){var e=n("> .rank-math-tabs-navigation > a.active",t);return localStorage.setItem(t.attr("id"),e.attr("href")),n(window).off("beforeunload"),!0});var e=!1;n(window).on("load",function(){n(".cmb-form").on("change","input, textarea, select",function(){e=!0})}),n(window).on("beforeunload",function(){if(e)return"Are you sure? You didn't finish the form!"}),n(".custom-sep").on("keyup",function(){var t=n(this),e=t.text();t.closest("li").find("input.cmb2-option").val(e).trigger("change")})},preview:function(){n("[data-preview]").on("change",function(){var t=n(this),e=null,a="";if(t.is(":radio")&&(e=t.closest(".cmb-td")),null!==e)if(e.hasClass("done"))t.is(":checked")&&(a=e.find("h5")).text(a.data("title").format(t.val()));else if(e.addClass("done"),"title"===t.data("preview")){var r="";r+='<div class="rank-math-preview-title" data-title="Preview"><div>',r+='<h5 data-title="'+rankMath.postTitle+" {0} "+rankMath.blogName+'"></h5>',r+="<span>"+rankMath.postUri+"</span>",e.append(r+="</div></div>"),(a=e.find("h5")).text(a.data("title").format(t.val()))}}).trigger("change")}},window.rankMathOptions.init()})}});
1
+ !function(t){var e={};function a(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=209)}({209:function(t,e,a){"use strict";var n;(n=jQuery)(function(){window.rankMathOptions={init:function(){this.misc(),this.preview(),this.scCache(),rankMathAdmin.variableInserter(),this.searchEngine.init(),this.addressFormat()},searchEngine:{init:function(){this.form=n(".rank-math-search-options"),this.wrap=this.form.closest(".rank-math-wrap-settings"),this.input=this.form.find("input"),this.select=this.form.find("select"),this.tabs=this.wrap.find(".rank-math-tabs"),this.panels=this.wrap.find(".rank-math-tab"),this.indexes={},this.buildIndex(),this.events()},events:function(){var t=this,e=!0,a=t.tabs.find(">.rank-math-tabs-navigation"),r=n('<div class="rank-math-search-dropdown"></div>');t.tabs.find(">.rank-math-tabs-content").prepend('<div class="rank-math-setting-search-empty hidden">No results found.</div>'),t.form.append(r),t.select.val(rankMath.optionPage),r.hide().empty();var o=_.debounce(function(e){t.wrap.addClass("searching"),t.panels.show(),t.searchOptions(e,t.wrap)},300),i=_.debounce(function(e){t.wrap.addClass("searching"),t.searchIndexes(e,r)},300);t.form.on("click",".clear-search",function(e){e.preventDefault(),t.input.val(""),t.clearSearch(a)}),t.select.on("change",function(){e=t.select.val()===rankMath.optionPage,r.hide().empty(),e||(t.clearSearch(a),r.append(t.indexes[t.select.val()])),t.input.trigger("input")}),t.input.on("input",function(){if(""===t.input.val())return t.clearSearch(a,!e&&r),!1;e?o(t.input.val().toLowerCase()):i(t.input.val().toLowerCase())}),r.on("click",".cmb-row",function(){var e=n(this);window.location=location.pathname+"?page=rank-math-options-"+t.select.val()+"#"+e.closest(".dropdown-tab").attr("id")});var s=n(".rank-math-search-options, .rank-math-search-options *, .rank-math-search-dropdown, .rank-math-search-dropdown *");n("body").on("click",function(t){n(t.target).is(s)||r.hide()})},searchIndexes:function(t,e){if(1<=t.trim().length){var a=e.find(".cmb-row"),r=0;a.hide().each(function(){var e=n(this);e.text().trim().toLowerCase().includes(t)&&(e.show(),++r)}),e.show(),e.toggleClass("empty",0===r)}},searchOptions:function(t,e){if(1<=t.trim().length){n(".cmb-row").hide().each(function(){var e=n(this);e.hasClass("cmb-type-title")?e.hide():e.text().trim().toLowerCase().includes(t)&&e.show()});var a=n(".cmb-row:visible");0===a.length?e.addClass("search-no-results"):(e.removeClass("search-no-results"),a.each(function(){n(this).find("input, select").each(function(){n('span[data-field="'+n(this).attr("name")+'"]').each(function(){rankMathAdmin.loopDependencies(n(this).closest(".rank-math-cmb-dependency"))})})}))}},clearSearch:function(t,e){e=e||!1,this.wrap.removeClass("searching search-no-results"),n(">a.active",t).trigger("click"),e?e.hide():(n(".cmb-row").show(),n(".rank-math-cmb-dependency",".cmb-form, .rank-math-metabox-wrap").each(function(){rankMathAdmin.loopDependencies(n(this))}))},buildIndex:function(){var t=localStorage.getItem("rank-math-option-search-index"),e=localStorage.getItem("rank-math-option-search-premium"),a=void 0===t||rankMath;a=void 0===e||e!==rankMath.hasPremium,["general","titles","sitemap"].forEach(function(t){this.getIndex(t,a)},this),a&&(localStorage.setItem("rank-math-option-search-index",rankMath.version),localStorage.setItem("rank-math-option-search-premium",rankMath.hasPremium))},getIndex:function(t,e){var a=this;e?n("<div/>").load(rankMath.adminurl+"?page=rank-math-options-"+t,function(e,r){if("error"!==r){var o=n(e).find(".rank-math-tabs-content");o.find(".rank-math-tab").removeClass().addClass("dropdown-tab"),o.find(".cmb-row").each(function(){var t=n(this);(t.hasClass("cmb-type-title")||t.hasClass("cmb-type-notice"))&&t.remove(),t.find(".cmb-td").children(":not(.cmb2-metabox-description)").remove(),t.find("label,.cmb2-metabox-description").unwrap(),t.removeAttr("data-fieldtype")}),o=o.html().replace(/(\r\n\t|\n|\r\t)/gm,""),a.indexes[t]=n(o),localStorage.setItem("rank-math-option-"+t+"-index",o)}}):a.indexes[t]=n(localStorage.getItem("rank-math-option-"+t+"-index"))}},scCache:function(){n(".console-cache-delete").on("click",function(t){t.preventDefault();var e=n(this),a=e.data("days");window.confirm((-1===a?"You are about to delete your whole Cache. Every dataset older than 90 days is lost forever!":"You are about to delete your 90 days Cache?")+" Are you sure you want to continue?")&&(e.prop("disabled",!0),rankMathAdmin.ajax("search_console_delete_cache",{days:a},"GET").always(function(){e.prop("disabled",!1)}).done(function(t){t&&t.success&&(rankMathAdmin.addNotice("Cache deleted.","success",n("h1",".rank-math-wrap-settings")),n(".rank-math-console-db-info").remove(),n("#console-updating-manually-progress").before(t.message))}))}),n(".console-cache-update-manually").on("click",function(t){t.preventDefault();var e=n(this),a=n("#console_caching_control").val();e.prop("disabled",!0),rankMathAdmin.ajax("search_console_get_cache",{days:a},"GET").done(function(t){t&&t.success?rankMathAdmin.addNotice(t.message,"success",n("h1.page-title")):rankMathAdmin.addNotice("Unable to update cache due to: "+t.error,"error",n("h1.page-title"))})})},addressFormat:function(){var t=n("body"),e=n("input[type=text], textarea",".rank-math-address-format");if(e.length){e.attr("autocomplete","off"),e.wrap('<div class="rank-math-variables-wrap"/>');var a=e.parent(".rank-math-variables-wrap");a.append('<a href="#" class="rank-math-variables-button button button-secondary button-address"><span class="dashicons dashicons-arrow-down-alt2"></span></a>');var r=n("<ul/>"),o=n('<div class="rank-math-variables-dropdown"></div>');n.each({"{address} {locality}, {region} {postalcode}":"(New York, NY 12345)","{address} {postalcode}, {locality} {region}":"(New York 12345, NY)","{address} {locality} {postalcode}":"(New York NY 12345)","{postalcode} {region} {locality} {address}":"(12345 NY New York)","{address} {locality}":"(New York NY)"},function(t,e){r.append('<li data-var="'+e+'"><strong>'+t+"</strong></li>")}),o.append(r),n("rank-math-variables-wrap:eq(0)").append(o);var i=n(".rank-math-variables-button, .rank-math-variables-button *, .rank-math-variables-dropdown, .rank-math-variables-dropdown *");n(t).on("click",function(t){n(t.target).is(i)||o.hide()});var s=o.find("input"),c=o.find("li");n(a).on("click",".rank-math-variables-button",function(t){t.preventDefault(),n(this).after(o),c.show(),o.show(),s.val("").focus()}),o.on("click","li",function(t){t.preventDefault();var e=n(this);e.closest(".rank-math-variables-wrap").find("textarea").val(e.find("strong").text())})}},misc:function(){void 0!==jQuery.fn.select2&&n("[data-s2-pages]").select2({ajax:{url:rankMath.ajaxurl+"?action=rank_math_search_pages",dataType:"json",delay:250},width:"100%",minimumInputLength:3}),n("#htaccess_accept_changes").on("change",function(){this.checked?n("#htaccess_content").prop("readonly",!1):n("#htaccess_content").prop("readonly",!0)}),n(".reset-options").on("click",function(){return!!confirm("Are you sure? You want to reset settings.")&&(n(window).off("beforeunload"),!0)});var t=n(".rank-math-tabs");setTimeout(function(){localStorage.removeItem(t.attr("id"))},1e3),n(".save-options").on("click",function(){var e=n("> .rank-math-tabs-navigation > a.active",t);return localStorage.setItem(t.attr("id"),e.attr("href")),n(window).off("beforeunload"),!0});var e=!1;n(window).on("load",function(){n(".cmb-form").on("change","input, textarea, select",function(){e=!0})}),n(window).on("beforeunload",function(){if(e)return"Are you sure? You didn't finish the form!"}),n(".custom-sep").on("keyup",function(){var t=n(this),e=t.text();t.closest("li").find("input.cmb2-option").val(e).trigger("change")})},preview:function(){n("[data-preview]").on("change",function(){var t=n(this),e=null,a="";if(t.is(":radio")&&(e=t.closest(".cmb-td")),null!==e)if(e.hasClass("done"))t.is(":checked")&&(a=e.find("h5")).text(a.data("title").format(t.val()));else if(e.addClass("done"),"title"===t.data("preview")){var r="";r+='<div class="rank-math-preview-title" data-title="Preview"><div>',r+='<h5 data-title="'+rankMath.postTitle+" {0} "+rankMath.blogName+'"></h5>',r+="<span>"+rankMath.postUri+"</span>",e.append(r+="</div></div>"),(a=e.find("h5")).text(a.data("title").format(t.val()))}}).trigger("change")}},window.rankMathOptions.init()})}});
assets/admin/js/post-list.js CHANGED
@@ -1 +1 @@
1
- !function(t){var n={};function e(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(a,r,function(n){return t[n]}.bind(null,r));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=330)}({330:function(t,n,e){"use strict";var a,r;a=jQuery,r={init:function(){this.addButtons(),this.editingEvents(),this.saveEvents()},addButtons:function(){var t=a("#rank_math_seo_details, #rank_math_title, #rank_math_description, #rank_math_image_alt, #rank_math_image_title");t.each(function(){var t=a(this);t.append(' <a href=#" class="dashicons dashicons-edit" title="'+rankMath.bulkEditTitle+'"></a>'),t.wrapInner("<span/>"),t.append(' <span><a href="#" class="button button-primary button-small rank-math-column-save-all">'+rankMath.buttonSaveAll+'</a> <a href="#" class="button-link button-link-delete rank-math-column-cancel-all">'+rankMath.buttonCancel+"</a></span>")}),t.on("click",".dashicons-edit, .rank-math-column-cancel-all",function(n){n.preventDefault();var e=a(this).closest("th");a(this).hasClass("rank-math-column-cancel-all")?(t.removeClass("bulk-editing"),a(".rank-math-column-cancel","td.bulk-editing.dirty").trigger("click"),a("td.bulk-editing").removeClass("bulk-editing")):(e.toggleClass("bulk-editing"),a("td.column-"+e.attr("id")).toggleClass("bulk-editing"))})},editingEvents:function(){a(".rank-math-column-value").on("input",function(){var t=a(this),n=t.closest("td");t.text()!==t.prev().text()?n.addClass("dirty"):n.removeClass("dirty")}).on("keypress",function(t){if(13===t.keyCode)return a(this).parent().find(".rank-math-column-save").trigger("click"),!1}),a(".rank-math-column-cancel").on("click",function(t){t.preventDefault();var n=a(this).closest("td");n.removeClass("dirty");var e=n.find(".rank-math-column-value").prev(".rank-math-column-display");e.find("span").length&&(e=e.find("span")),n.find(".rank-math-column-value").text(e.text())})},saveEvents:function(){var t=this;a(".rank-math-column-save-all").on("click",function(n){n.preventDefault();var e={},r=[];a(".dirty.bulk-editing").each(function(){var t=a(this),n=parseInt(t.closest("tr").attr("id").replace("post-","")),i=t.find(".rank-math-column-value");r.push(t),e[n]=e[n]||{},e[n][i.data("field")]=i.text()}),t.save(e).done(function(n){n.success&&(r.forEach(function(n){t.setColumn(n)}),a(".rank-math-column-cancel-all","#rank_math_seo_details").trigger("click"))})}),a(".rank-math-column-save").on("click",function(n){n.preventDefault();var e=a(this).closest(".dirty"),r=parseInt(e.closest("tr").attr("id").replace("post-","")),i=e.find(".rank-math-column-value"),l={};l[r]={},l[r][i.data("field")]=i.text(),t.save(l).done(function(n){n.success&&t.setColumn(e)})})},setColumn:function(t){t.removeClass("dirty bulk-editing");var n=t.find(".rank-math-column-value").prev(".rank-math-column-display");n.find("span").length&&(n=n.find("span")),n.text(t.find(".rank-math-column-value").text())},save:function(t){return a.ajax({url:ajaxurl,type:"POST",dataType:"json",data:{action:"rank_math_bulk_edit_columns",security:rankMath.security,rows:t}})}},a(function(){r.init()})}});
1
+ !function(t){var n={};function e(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=t,e.c=n,e.d=function(t,n,a){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(a,r,function(n){return t[n]}.bind(null,r));return a},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=210)}({210:function(t,n,e){"use strict";var a,r;a=jQuery,r={init:function(){this.addButtons(),this.editingEvents(),this.saveEvents()},addButtons:function(){var t=a("#rank_math_seo_details, #rank_math_title, #rank_math_description, #rank_math_image_alt, #rank_math_image_title");t.each(function(){var t=a(this);t.append(' <a href=#" class="dashicons dashicons-edit" title="'+rankMath.bulkEditTitle+'"></a>'),t.wrapInner("<span/>"),t.append(' <span><a href="#" class="button button-primary button-small rank-math-column-save-all">'+rankMath.buttonSaveAll+'</a> <a href="#" class="button-link button-link-delete rank-math-column-cancel-all">'+rankMath.buttonCancel+"</a></span>")}),t.on("click",".dashicons-edit, .rank-math-column-cancel-all",function(n){n.preventDefault();var e=a(this).closest("th");a(this).hasClass("rank-math-column-cancel-all")?(t.removeClass("bulk-editing"),a(".rank-math-column-cancel","td.bulk-editing.dirty").trigger("click"),a("td.bulk-editing").removeClass("bulk-editing")):(e.toggleClass("bulk-editing"),a("td.column-"+e.attr("id")).toggleClass("bulk-editing"))})},editingEvents:function(){a(".rank-math-column-value").on("input",function(){var t=a(this),n=t.closest("td");t.text()!==t.prev().text()?n.addClass("dirty"):n.removeClass("dirty")}).on("keypress",function(t){if(13===t.keyCode)return a(this).parent().find(".rank-math-column-save").trigger("click"),!1}),a(".rank-math-column-cancel").on("click",function(t){t.preventDefault();var n=a(this).closest("td");n.removeClass("dirty");var e=n.find(".rank-math-column-value").prev(".rank-math-column-display");e.find("span").length&&(e=e.find("span")),n.find(".rank-math-column-value").text(e.text())})},saveEvents:function(){var t=this;a(".rank-math-column-save-all").on("click",function(n){n.preventDefault();var e={},r=[];a(".dirty.bulk-editing").each(function(){var t=a(this),n=parseInt(t.closest("tr").attr("id").replace("post-","")),i=t.find(".rank-math-column-value");r.push(t),e[n]=e[n]||{},e[n][i.data("field")]=i.text()}),t.save(e).done(function(n){n.success&&(r.forEach(function(n){t.setColumn(n)}),a(".rank-math-column-cancel-all","#rank_math_seo_details").trigger("click"))})}),a(".rank-math-column-save").on("click",function(n){n.preventDefault();var e=a(this).closest(".dirty"),r=parseInt(e.closest("tr").attr("id").replace("post-","")),i=e.find(".rank-math-column-value"),l={};l[r]={},l[r][i.data("field")]=i.text(),t.save(l).done(function(n){n.success&&t.setColumn(e)})})},setColumn:function(t){t.removeClass("dirty bulk-editing");var n=t.find(".rank-math-column-value").prev(".rank-math-column-display");n.find("span").length&&(n=n.find("span")),n.text(t.find(".rank-math-column-value").text())},save:function(t){return a.ajax({url:ajaxurl,type:"POST",dataType:"json",data:{action:"rank_math_bulk_edit_columns",security:rankMath.security,rows:t}})}},a(function(){r.init()})}});
assets/admin/js/post-metabox.js CHANGED
Binary file
assets/admin/js/term-metabox.js CHANGED
Binary file
assets/admin/js/user-metabox.js CHANGED
Binary file
assets/admin/js/validate.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=381)}({381:function(t,e,r){"use strict";var n;(n=jQuery)(function(){window.rankMathValidate={init:function(){this.extendLibrary(),this.watchFields()},extendLibrary:function(){n.validator.addMethod("regex",function(t,e,r){r="string"==typeof r?r:n(e).data("validate-pattern");var a=RegExp(r);return this.optional(e)||a.test(t)},rankMath.validationl10n.regexErrorDefault),n.extend(n.validator.messages,{required:rankMath.validationl10n.requiredErrorDefault,email:rankMath.validationl10n.emailErrorDefault,url:rankMath.validationl10n.urlErrorDefault}),n.extend(n.validator.defaults,{errorClass:"invalid"})},watchFields:function(){var t=this;n(".rank-math-validate-field").on("focus","input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea",function(){t.fieldValidation(n(this).closest("form"))})},fieldValidation:function(t){return"1"!==t.data("validated")&&(t.data("validated","1").validate(),!0)}},window.rankMathValidate.init()})}});
1
+ !function(t){var e={};function r(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(n,a,function(e){return t[e]}.bind(null,a));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=261)}({261:function(t,e,r){"use strict";var n;(n=jQuery)(function(){window.rankMathValidate={init:function(){this.extendLibrary(),this.watchFields()},extendLibrary:function(){n.validator.addMethod("regex",function(t,e,r){r="string"==typeof r?r:n(e).data("validate-pattern");var a=RegExp(r);return this.optional(e)||a.test(t)},rankMath.validationl10n.regexErrorDefault),n.extend(n.validator.messages,{required:rankMath.validationl10n.requiredErrorDefault,email:rankMath.validationl10n.emailErrorDefault,url:rankMath.validationl10n.urlErrorDefault}),n.extend(n.validator.defaults,{errorClass:"invalid"})},watchFields:function(){var t=this;n(".rank-math-validate-field").on("focus","input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea",function(){t.fieldValidation(n(this).closest("form"))})},fieldValidation:function(t){return"1"!==t.data("validated")&&(t.data("validated","1").validate(),!0)}},window.rankMathValidate.init()})}});
assets/admin/js/wizard.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=331)}({331:function(t,e,n){"use strict";var a;(a=jQuery)(function(){window.rankMathSetupWizard={init:function(){rankMath.currentStep in this&&this[rankMath.currentStep](),a(document).on("cmb_init",function(){a(".cmb-multicheck-toggle",".multicheck-checked").trigger("click")})},compatibility:function(){a(".wizard-deactivate-plugin").on("click",function(t){t.preventDefault();var e=a(this);if(!e.hasClass("disabled")){var n=e.closest("tr");a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:e.data("plugin")}}).always(function(t){"1"===t?(n.find(".dashicons-warning").removeClass("dashicons-warning").addClass("dashicons-yes"),e.addClass("disabled").text(rankMath.deactivated)):console.log("Deactivation error")})}})},import:function(){var t=a("#import-progress"),e=a("#import-progress-bar"),n=0,r=0,i=function(t,e){var n=new Date,a=e.val()+"["+(10>n.getHours()?"0":"")+n.getHours()+":"+(10>n.getMinutes()?"0":"")+n.getMinutes()+":"+(10>n.getSeconds()?"0":"")+n.getSeconds()+"] "+t+"\n";e.text(a).scrollTop(e[0].scrollHeight-e.height()-20)},o=function(t){t>100&&(t=100),e.find(".number").html(t),e.find("#importBar").css("width",t+"%")};a(".button-import",".form-footer").on("click",function(n){if(n.preventDefault(),rankMath.isConfigured&&!window.confirm(rankMath.confirm))return!1;var s=a(this),u=a(".import-data:checkbox:checked"),l={},p=[];if(!u.length)return alert("Please select plugin to import data."),!1;a.each(u,function(t){var e=a(this).val(),n=a(this).parents(".cmb-group-description").next().find(":checkbox:checked"),i=n.data("active"),o=a(this).data("plugin");p.push(o);var c=a.map(n,function(t){return t.value});c.length>0&&i&&c.push("deactivate"),r+=c.length,l[e]={plugin:o,actions:c}}),s.prop("disabled",!0),t.show(),e.show(),e.find(".plugin-from").html(p.join()),i("Import started...",t),c(l,t,function(){o(100),s.prop("disabled",!1),a(".button",".form-footer").hide(),a(".button-continue").show()})});var c=function e(c,s,u){var l=Object.keys(c),p=l.length,h=c[l[0]],d=Object.keys(c)[0];if(delete c[d],0===p)return i("Import finished. Click on the button below to continue the Setup Wizard.",s),void u();!function t(e,c,s,u,l,p){if(0!==c.length){var h=c.shift(),d="deactivate"===h?"Deactivating "+p:"Importing "+h+" from "+p,g=Math.floor(100/r);u=u||1,i(d,s),a.ajax({url:rankMath.ajaxurl,type:"POST",data:{perform:h,pluginSlug:e,paged:u,action:"rank_math_import_plugin",security:rankMath.security}}).success(function(a){var r=1;a&&a.page&&a.total_pages>a.page&&(r=a.page+1,c.unshift(h)),a&&a.total_pages&&(g=Math.ceil(g/a.total_pages)),o(n+=g),i(a.success?a.message:a.error,s),t(e,c,s,r,l,p)}).error(function(n){i(n.statusText,s),t(e,c,s,null,l,p)})}else l()}(d,h.actions,t,null,function(){e(c,s,u)},h.plugin)};a(".import-data").on("change",function(){for(var t=this.checked,e=a(this).parents(".cmb-group-description").next().find(".cmb2-option"),n=0;e.length>n;n++)"checkbox"==e[n].type&&(e[n].checked=t);t&&("yoast"===a(this).val()?(a('.import-data[value="aioseo"]').prop("checked",!1).trigger("change"),a('.import-data[value="seopress"]').prop("checked",!1).trigger("change")):"aioseo"===a(this).val()?(a('.import-data[value="yoast"]').prop("checked",!1).trigger("change"),a('.import-data[value="seopress"]').prop("checked",!1).trigger("change")):"seopress"===a(this).val()&&(a('.import-data[value="yoast"]').prop("checked",!1).trigger("change"),a('.import-data[value="aioseo"]').prop("checked",!1).trigger("change")))}),a(".cmb-type-group .cmb2-checkbox-list .cmb2-option").on("click",function(){var t=a(this),e=t.attr("name"),n=t.parents("ul").find('input[name="'+e+'"]:checkbox:checked'),r=t.parents("ul").find('input[name="'+e+'"]');n.length===r.length&&t.parents(".cmb-type-group").find(".import-data").prop("checked",!0).trigger("change")}),a(".button-deactivate-plugins").on("click",function(t){var e=a(this);e.parents("form").find("input[data-active]").length&&(t.preventDefault(),e.text(e.data("deactivate-message")),a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).success(function(t){e.parents("form").trigger("submit")}).error(function(t){alert("Something went wrong! Please try again later.")}))})},yoursite:function(){a("#rank-math-search-input").on("input keypress",function(t){var e=a(this),n=e.next();if(13===t.keyCode||13===t.which){if("createEvent"in document){var r=this.ownerDocument,i=r.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,r.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),n[0].dispatchEvent(i)}return!1}n.attr("href",n.data("href")+encodeURIComponent(e.val()))});var t=a("#business_type");0!==parseInt(t.data("default"))&&a("#site_type").on("change",function(){var e=a(this).val();"news"!==e&&"webshop"!==e&&"otherbusiness"!==e||t.val("Organization").trigger("change"),"business"===e&&t.val("LocalBusiness").trigger("change")})},searchconsole:function(){a("#console_authorization_code").on("paste",function(){var t=a(this).next(".button");setTimeout(function(){t.trigger("click")},100)})},ready:function(){a("#show-seo-score").on("change",function(t){a.ajax({url:rankMath.api.root+"rankmath/v1/enableScore",method:"POST",beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:a(this).is(":checked")}}).done(function(t){console.log(t)})}),a(".rank-math-score-image img").on("click",function(t){return t.preventDefault(),a("#show-seo-score").trigger("click"),!1}),a("#auto-update").on("change",function(t){a.ajax({url:rankMath.api.root+"rankmath/v1/autoUpdate",method:"POST",beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:a(this).is(":checked")}}).done(function(t){console.log(t)})})}},window.rankMathSetupWizard.init()})}});
1
+ !function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=211)}({211:function(t,e,n){"use strict";var a;(a=jQuery)(function(){window.rankMathSetupWizard={init:function(){rankMath.currentStep in this&&this[rankMath.currentStep](),a(document).on("cmb_init",function(){a(".cmb-multicheck-toggle",".multicheck-checked").trigger("click")})},compatibility:function(){a(".wizard-deactivate-plugin").on("click",function(t){t.preventDefault();var e=a(this);if(!e.hasClass("disabled")){var n=e.closest("tr");a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:e.data("plugin")}}).always(function(t){"1"===t?(n.find(".dashicons-warning").removeClass("dashicons-warning").addClass("dashicons-yes"),e.addClass("disabled").text(rankMath.deactivated)):console.log("Deactivation error")})}})},import:function(){function t(t,e){var n=new Date,a=e.val()+"["+(n.getHours()<10?"0":"")+n.getHours()+":"+(n.getMinutes()<10?"0":"")+n.getMinutes()+":"+(n.getSeconds()<10?"0":"")+n.getSeconds()+"] "+t+"\n";e.text(a).scrollTop(e[0].scrollHeight-e.height()-20)}function e(t){100<t&&(t=100),r.find(".number").html(t),r.find("#importBar").css("width",t+"%")}var n=a("#import-progress"),r=a("#import-progress-bar"),i=0,o=0;a(".button-import",".form-footer").on("click",function(i){if(i.preventDefault(),rankMath.isConfigured&&!window.confirm(rankMath.confirm))return!1;var s=a(this),u=a(".import-data:checkbox:checked"),l={},p=[];if(!u.length)return alert("Please select plugin to import data."),!1;a.each(u,function(t){var e=a(this).val(),n=a(this).parents(".cmb-group-description").next().find(":checkbox:checked"),r=n.data("active"),i=a(this).data("plugin");p.push(i);var c=a.map(n,function(t){return t.value});0<c.length&&r&&c.push("deactivate"),o+=c.length,l[e]={plugin:i,actions:c}}),s.prop("disabled",!0),n.show(),r.show(),r.find(".plugin-from").html(p.join()),t("Import started...",n),c(l,n,function(){e(100),s.prop("disabled",!1),a(".button",".form-footer").hide(),a(".button-continue").show()})});var c=function r(c,s,u){var l=Object.keys(c),p=l.length,h=c[l[0]],d=Object.keys(c)[0];if(delete c[d],0===p)return t("Import finished. Click on the button below to continue the Setup Wizard.",s),void u();!function n(r,c,s,u,l,p){if(0!==c.length){var h=c.shift(),d="deactivate"===h?"Deactivating "+p:"Importing "+h+" from "+p,g=Math.floor(100/o);u=u||1,t(d,s),a.ajax({url:rankMath.ajaxurl,type:"POST",data:{perform:h,pluginSlug:r,paged:u,action:"rank_math_import_plugin",security:rankMath.security}}).success(function(a){var o=1;a&&a.page&&a.page<a.total_pages&&(o=a.page+1,c.unshift(h)),a&&a.total_pages&&(g=Math.ceil(g/a.total_pages)),e(i+=g),t(a.success?a.message:a.error,s),n(r,c,s,o,l,p)}).error(function(e){t(e.statusText,s),n(r,c,s,null,l,p)})}else l()}(d,h.actions,n,null,function(){r(c,s,u)},h.plugin)};a(".import-data").on("change",function(){for(var t=this.checked,e=a(this).parents(".cmb-group-description").next().find(".cmb2-option"),n=0;n<e.length;n++)"checkbox"==e[n].type&&(e[n].checked=t);t&&("yoast"===a(this).val()?(a('.import-data[value="aioseo"]').prop("checked",!1).trigger("change"),a('.import-data[value="seopress"]').prop("checked",!1).trigger("change")):"aioseo"===a(this).val()?(a('.import-data[value="yoast"]').prop("checked",!1).trigger("change"),a('.import-data[value="seopress"]').prop("checked",!1).trigger("change")):"seopress"===a(this).val()&&(a('.import-data[value="yoast"]').prop("checked",!1).trigger("change"),a('.import-data[value="aioseo"]').prop("checked",!1).trigger("change")))}),a(".cmb-type-group .cmb2-checkbox-list .cmb2-option").on("click",function(){var t=a(this),e=t.attr("name"),n=t.parents("ul").find('input[name="'+e+'"]:checkbox:checked'),r=t.parents("ul").find('input[name="'+e+'"]');n.length===r.length&&t.parents(".cmb-type-group").find(".import-data").prop("checked",!0).trigger("change")}),a(".button-deactivate-plugins").on("click",function(t){var e=a(this);e.parents("form").find("input[data-active]").length&&(t.preventDefault(),e.text(e.data("deactivate-message")),a.ajax({url:rankMath.ajaxurl,type:"POST",data:{action:"rank_math_deactivate_plugins",security:rankMath.security,plugin:"all"}}).success(function(t){e.parents("form").trigger("submit")}).error(function(t){alert("Something went wrong! Please try again later.")}))})},yoursite:function(){a("#rank-math-search-input").on("input keypress",function(t){var e=a(this),n=e.next();if(13===t.keyCode||13===t.which){if("createEvent"in document){var r=this.ownerDocument,i=r.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,r.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),n[0].dispatchEvent(i)}return!1}n.attr("href",n.data("href")+encodeURIComponent(e.val()))});var t=a("#business_type");0!==parseInt(t.data("default"))&&a("#site_type").on("change",function(){var e=a(this).val();"news"!==e&&"webshop"!==e&&"otherbusiness"!==e||t.val("Organization").trigger("change"),"business"===e&&t.val("LocalBusiness").trigger("change")})},searchconsole:function(){a("#console_authorization_code").on("paste",function(){var t=a(this).next(".button");setTimeout(function(){t.trigger("click")},100)})},ready:function(){a("#show-seo-score").on("change",function(t){a.ajax({url:rankMath.api.root+"rankmath/v1/enableScore",method:"POST",beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:a(this).is(":checked")}}).done(function(t){console.log(t)})}),a(".rank-math-score-image img").on("click",function(t){return t.preventDefault(),a("#show-seo-score").trigger("click"),!1}),a("#auto-update").on("change",function(t){a.ajax({url:rankMath.api.root+"rankmath/v1/autoUpdate",method:"POST",beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",rankMath.api.nonce)},data:{enable:a(this).is(":checked")}}).done(function(t){console.log(t)})})}},window.rankMathSetupWizard.init()})}});
assets/admin/js/wplink.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=332)}({332:function(e,t){!function(e,t,n){var i,r,l,a,o,s,c=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,u=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,p={},d={},h="ontouchend"in document;function f(){return s||i.dom.getParent(i.selection.getNode(),"a[href]")}window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){p.wrap=e("#wp-link-wrap"),p.dialog=e("#wp-link"),p.backdrop=e("#wp-link-backdrop"),p.submit=e("#wp-link-submit"),p.close=e("#wp-link-close");var n=e('<div class="link-nofollow"><label><span> </span> <input type="checkbox" id="wp-link-nofollow"> '+t.relCheckbox+"</label></div>"),i=e('<div class="wp-link-title-field"> <label><span>'+t.linkTitle+'</span> <input id="wp-link-title" type="text"></label></div>');n.insertAfter("#wp-link .link-target"),i.insertAfter("#wp-link .wp-link-text-field"),e("#wp-link .query-results").css("top","260px"),p.text=e("#wp-link-text"),p.url=e("#wp-link-url"),p.nonce=e("#_ajax_linking_nonce"),p.openInNewTab=e("#wp-link-target"),p.search=e("#wp-link-search"),p.nofollow=e("#wp-link-nofollow"),p.title=e("#wp-link-title"),d.search=new l(e("#search-results")),d.recent=new l(e("#most-recent-results")),d.elements=p.dialog.find(".query-results"),p.queryNotice=e("#query-notice-message"),p.queryNoticeTextDefault=p.queryNotice.find(".query-notice-default"),p.queryNoticeTextHint=p.queryNotice.find(".query-notice-hint"),p.dialog.keydown(wpLink.keydown),p.dialog.keyup(wpLink.keyup),p.submit.click(function(e){e.preventDefault(),wpLink.update()}),p.close.add(p.backdrop).add("#wp-link-cancel button").click(function(e){e.preventDefault(),wpLink.close()}),d.elements.on("river-select",wpLink.updateFields),p.search.on("focus.wplink",function(){p.queryNoticeTextDefault.hide(),p.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){p.queryNoticeTextDefault.show(),p.queryNoticeTextHint.addClass("screen-reader-text").hide()}),p.search.on("keyup input",function(){window.clearTimeout(r),r=window.setTimeout(function(){wpLink.searchInternalLinks()},500)}),p.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),p.url.on("blur",wpLink.correctURL)},correctURL:function(){var t=e.trim(p.url.val());t&&o!==t&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(t)&&(p.url.val("http://"+t),o=t)},open:function(t,n,r,l){var a,o=e(document.body);o.addClass("modal-open"),wpLink.modalOpen=!0,s=l,wpLink.range=null,t&&(window.wpActiveEditor=t),window.wpActiveEditor&&(this.textarea=e("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(o.append(p.backdrop,p.wrap),a=window.tinymce.get(window.wpActiveEditor),i=a&&!a.isHidden()?a:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),p.wrap.show(),p.backdrop.show(),wpLink.refresh(n,r),e(document).trigger("wplink-open",p.wrap))},isMCE:function(){return i&&!i.isHidden()},refresh:function(e,t){d.search.refresh(),d.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(p.wrap.hasClass("has-text-field")||p.wrap.addClass("has-text-field"),document.selection?document.selection.createRange().text:void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),p.text.val(t),wpLink.setDefaultValues()),h?p.url.focus().blur():window.setTimeout(function(){p.url[0].select(),p.url.focus()}),d.recent.ul.children().length||d.recent.ajax(),o=p.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,r,l=i.selection.getContent();if(/</.test(l)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(l)||-1===l.indexOf("href=")))return!1;if(e){if(0===(n=e.childNodes).length)return!1;for(r=n.length-1;r>=0;r--)if(3!=(t=n[r]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(n,r){var l,a,o=f(),s=this.hasSelectedText(o);o?(l=o.textContent||o.innerText,a=i.dom.getAttrib(o,"href"),e.trim(l)||(l=r||""),n&&(u.test(n)||c.test(n))&&(a=n),"_wp_link_placeholder"!==a?(p.url.val(a),p.openInNewTab.prop("checked","_blank"===i.dom.getAttrib(o,"target")),p.nofollow.prop("checked","nofollow"===i.dom.getAttrib(o,"rel")),p.title.val(i.dom.getAttrib(o,"title")),p.submit.val(t.update)):this.setDefaultValues(l),p.search.val(n&&n!==a?n:""),window.setTimeout(function(){wpLink.searchInternalLinks()})):(l=i.selection.getContent({format:"text"})||r||"",this.setDefaultValues(l)),s?(p.text.val(l),p.wrap.addClass("has-text-field")):(p.text.val(""),p.wrap.removeClass("has-text-field"))},close:function(t){e(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==t&&(wpLink.isMCE()?(i.plugins.wplink&&i.plugins.wplink.close(),i.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),p.backdrop.hide(),p.wrap.hide(),p.title.val(""),o=!1,e(document).trigger("wplink-close",p.wrap)},getAttrs:function(){wpLink.correctURL();var t={href:e.trim(p.url.val()),target:p.openInNewTab.prop("checked")?"_blank":null,rel:p.nofollow.prop("checked")?"nofollow":""};return e.trim(p.title.val())&&(t.title=e.trim(p.title.val())),t},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' target="'+e.target+'"'),e.rel&&(t+=' rel="'+e.rel+'"'),e.title&&(t+=' title="'+e.title+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var i,r,l,a,o,s,c,u=wpLink.textarea;if(u){i=wpLink.getAttrs(),r=p.text.val();var d=document.createElement("a");d.href=i.href,"javascript:"!==d.protocol&&"data:"!==d.protocol||(i.href=""),i.href&&(l=wpLink.buildHtml(i),document.selection&&wpLink.range?(u.focus(),wpLink.range.text=l+(r||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==u.selectionStart&&(o=u.selectionEnd,s=(a=u.selectionStart)+(l=l+(c=r||u.value.substring(a,o))+"</a>").length,a!==o||c||(s-=4),u.value=u.value.substring(0,a)+l+u.value.substring(o,u.value.length),u.selectionStart=u.selectionEnd=s),wpLink.close(),u.focus(),e(u).trigger("change"),n.a11y.speak(t.linkInserted))}},mceUpdate:function(){var r,l,a,o,s=wpLink.getAttrs(),c=document.createElement("a");if(c.href=s.href,"javascript:"!==c.protocol&&"data:"!==c.protocol||(s.href=""),!s.href)return i.execCommand("unlink"),void wpLink.close();r=i.$(f()),i.undoManager.transact(function(){r.length||(i.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),r=i.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),a=e.trim(r.text())),r.length?(p.wrap.hasClass("has-text-field")&&((l=p.text.val())?r.text(l):a||r.text(s.href)),s["data-wplink-edit"]=null,s["data-mce-href"]=null,s.hasOwnProperty("rel")&&!s.rel&&(s.rel=null),r.attr(s)):i.execCommand("unlink")}),wpLink.close("noReset"),i.focus(),r.length&&((o=r.parent("#_mce_caret")).length&&o.before(r.removeAttr("data-mce-bogus")),i.selection.select(r[0]),i.selection.collapse(),i.plugins.wplink&&i.plugins.wplink.checkLink(r[0])),i.nodeChanged(),p.title.val(""),n.a11y.speak(t.linkInserted)},updateFields:function(e,t){p.url.val(t.children(".item-permalink").val())},getUrlFromSelection:function(t){return t||(this.isMCE()?t=i.selection.getContent({format:"text"}):document.selection&&wpLink.range?t=wpLink.range.text:void 0!==this.textarea.selectionStart&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(t=e.trim(t))&&c.test(t)?"mailto:"+t:t&&u.test(t)?t.replace(/&amp;|&#0?38;/gi,"&"):""},setDefaultValues:function(e){p.url.val(this.getUrlFromSelection(e)),p.search.val(""),wpLink.searchInternalLinks(),p.submit.val(t.save)},searchInternalLinks:function(){var e,t=p.search.val()||"";if(t.length>2){if(d.recent.hide(),d.search.show(),wpLink.lastSearch===t)return;wpLink.lastSearch=t,e=p.search.parent().find(".spinner").addClass("is-active"),d.search.change(t),d.search.ajax(function(){e.removeClass("is-active")})}else d.search.hide(),d.recent.show()},next:function(){d.search.next(),d.recent.next()},prev:function(){d.search.prev(),d.recent.prev()},keydown:function(e){var t,n;27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(n=e.target.id)||e.shiftKey?"wp-link-close"===n&&e.shiftKey&&(p.submit.focus(),e.preventDefault()):(p.close.focus(),e.preventDefault())),e.shiftKey||38!==e.keyCode&&40!==e.keyCode||(!document.activeElement||"link-title-field"!==document.activeElement.id&&"url-field"!==document.activeElement.id)&&(t=38===e.keyCode?"prev":"next",clearInterval(wpLink.keyInterval),wpLink[t](),wpLink.keyInterval=setInterval(wpLink[t],wpLink.keySensitivity),e.preventDefault())},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,r,l;return t?(setTimeout(function(){if(i)return e.apply(l,r);n=!0},t),function(){if(n)return e.apply(this,arguments);r=arguments,l=this,i=!0}):e}},e.extend((l=function(t,n){var i=this;this.element=t,this.ul=t.children("ul"),this.contentHeight=t.children("#link-selector-height"),this.waiting=t.find(".river-waiting"),this.change(n),this.refresh(),e("#wp-link .query-results, #wp-link #link-selector").scroll(function(){i.maybeLoad()}),t.on("click","li",function(t){i.select(e(this),t)})}).prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){var n,i,r,l;e.hasClass("unselectable")||e===this.selected||(this.deselect(),this.selected=e.addClass("selected"),n=e.outerHeight(),i=this.element.height(),r=e.position().top,l=this.element.scrollTop(),0>r?this.element.scrollTop(l+r):r+n>i&&this.element.scrollTop(l+r-i+n),this.element.trigger("river-select",[e,t,this]))},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&this.selected&&(e=this.selected.prev("li")).length&&this.select(e)},next:function(){if(this.visible){var t=this.selected?this.selected.next("li"):e("li:not(.unselectable):first",this.element);t.length&&this.select(t)}},ajax:function(e){var t=this,n=1==this.query.page?0:wpLink.minRiverAJAXDuration,i=wpLink.delayedCallback(function(n,i){t.process(n,i),e&&e(n,i)},n);this.query.ajax(i)},change:function(e){this.query&&this._search===e||(this._search=e,this.query=new a(e),this.element.scrollTop(0))},process:function(n,i){var r="",l=!0,a="",o=1===i.page;n?e.each(n,function(){a=l?"alternate":"",r+=(a+=this.title?"":" no-title")?'<li class="'+a+'">':"<li>",r+='<input type="hidden" class="item-permalink" value="'+this.permalink+'" />',r+='<span class="item-title">',r+=this.title?this.title:t.noTitle,r+='</span><span class="item-info">'+this.info+"</span></li>",l=!l}):o&&(r+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+t.noMatchesFound+"</em></span></li>"),this.ul[o?"html":"append"](r)},maybeLoad:function(){var e=this,t=this.element,n=t.scrollTop()+t.height();this.query.ready()&&n>=this.contentHeight.height()-wpLink.riverBottomThreshold&&setTimeout(function(){var n=t.scrollTop(),i=n+t.height();e.query.ready()&&i>=e.contentHeight.height()-wpLink.riverBottomThreshold&&(e.waiting.addClass("is-active"),t.scrollTop(n+e.waiting.outerHeight()),e.ajax(function(){e.waiting.removeClass("is-active")}))},wpLink.timeToTriggerRiver)}}),e.extend((a=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e}).prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(t){var n=this,i={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:p.nonce.val()};this.search&&(i.search=this.search),this.querying=!0,e.post(window.ajaxurl,i,function(e){n.page++,n.querying=!1,n.allLoaded=!e,t(e,i)},"json")}}),e(document).ready(wpLink.init)}(jQuery,window.wpLinkL10n,window.wp)}});
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=212)}({212:function(e,t){function n(){return p||a.dom.getParent(a.selection.getNode(),"a[href]")}var i,r,l,a,o,s,c,u,p,d,h,f,w,k;i=jQuery,r=window.wpLinkL10n,l=window.wp,d=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i,h=/^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,63}[^ "]*$/i,f={},w={},k="ontouchend"in document,window.wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:"",textarea:"",modalOpen:!1,init:function(){f.wrap=i("#wp-link-wrap"),f.dialog=i("#wp-link"),f.backdrop=i("#wp-link-backdrop"),f.submit=i("#wp-link-submit"),f.close=i("#wp-link-close");var e=i('<div class="link-nofollow"><label><span> </span> <input type="checkbox" id="wp-link-nofollow"> '+r.relCheckbox+"</label></div>"),t=i('<div class="wp-link-title-field"> <label><span>'+r.linkTitle+'</span> <input id="wp-link-title" type="text"></label></div>');e.insertAfter("#wp-link .link-target"),t.insertAfter("#wp-link .wp-link-text-field"),i("#wp-link .query-results").css("top","260px"),f.text=i("#wp-link-text"),f.url=i("#wp-link-url"),f.nonce=i("#_ajax_linking_nonce"),f.openInNewTab=i("#wp-link-target"),f.search=i("#wp-link-search"),f.nofollow=i("#wp-link-nofollow"),f.title=i("#wp-link-title"),w.search=new s(i("#search-results")),w.recent=new s(i("#most-recent-results")),w.elements=f.dialog.find(".query-results"),f.queryNotice=i("#query-notice-message"),f.queryNoticeTextDefault=f.queryNotice.find(".query-notice-default"),f.queryNoticeTextHint=f.queryNotice.find(".query-notice-hint"),f.dialog.keydown(wpLink.keydown),f.dialog.keyup(wpLink.keyup),f.submit.click(function(e){e.preventDefault(),wpLink.update()}),f.close.add(f.backdrop).add("#wp-link-cancel button").click(function(e){e.preventDefault(),wpLink.close()}),w.elements.on("river-select",wpLink.updateFields),f.search.on("focus.wplink",function(){f.queryNoticeTextDefault.hide(),f.queryNoticeTextHint.removeClass("screen-reader-text").show()}).on("blur.wplink",function(){f.queryNoticeTextDefault.show(),f.queryNoticeTextHint.addClass("screen-reader-text").hide()}),f.search.on("keyup input",function(){window.clearTimeout(o),o=window.setTimeout(function(){wpLink.searchInternalLinks()},500)}),f.url.on("paste",function(){setTimeout(wpLink.correctURL,0)}),f.url.on("blur",wpLink.correctURL)},correctURL:function(){var e=i.trim(f.url.val());e&&u!==e&&!/^(?:[a-z]+:|#|\?|\.|\/)/.test(e)&&(f.url.val("http://"+e),u=e)},open:function(e,t,n,r){var l,o=i(document.body);o.addClass("modal-open"),wpLink.modalOpen=!0,p=r,wpLink.range=null,e&&(window.wpActiveEditor=e),window.wpActiveEditor&&(this.textarea=i("#"+window.wpActiveEditor).get(0),void 0!==window.tinymce&&(o.append(f.backdrop,f.wrap),l=window.tinymce.get(window.wpActiveEditor),a=l&&!l.isHidden()?l:null),!wpLink.isMCE()&&document.selection&&(this.textarea.focus(),this.range=document.selection.createRange()),f.wrap.show(),f.backdrop.show(),wpLink.refresh(t,n),i(document).trigger("wplink-open",f.wrap))},isMCE:function(){return a&&!a.isHidden()},refresh:function(e,t){w.search.refresh(),w.recent.refresh(),wpLink.isMCE()?wpLink.mceRefresh(e,t):(f.wrap.hasClass("has-text-field")||f.wrap.addClass("has-text-field"),document.selection?document.selection.createRange():void 0!==this.textarea.selectionStart&&this.textarea.selectionStart!==this.textarea.selectionEnd&&(t=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd)||t||""),f.text.val(t),wpLink.setDefaultValues()),k?f.url.focus().blur():window.setTimeout(function(){f.url[0].select(),f.url.focus()}),w.recent.ul.children().length||w.recent.ajax(),u=f.url.val().replace(/^http:\/\//,"")},hasSelectedText:function(e){var t,n,i,r=a.selection.getContent();if(/</.test(r)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(r)||!~r.indexOf("href=")))return!1;if(e){if(0===(n=e.childNodes).length)return!1;for(i=n.length-1;0<=i;i--)if(3!=(t=n[i]).nodeType&&!window.tinymce.dom.BookmarkManager.isBookmarkNode(t))return!1}return!0},mceRefresh:function(e,t){var l,o,s=n(),c=this.hasSelectedText(s);s?(l=s.textContent||s.innerText,o=a.dom.getAttrib(s,"href"),i.trim(l)||(l=t||""),e&&(h.test(e)||d.test(e))&&(o=e),"_wp_link_placeholder"!==o?(f.url.val(o),f.openInNewTab.prop("checked","_blank"===a.dom.getAttrib(s,"target")),f.nofollow.prop("checked","nofollow"===a.dom.getAttrib(s,"rel")),f.title.val(a.dom.getAttrib(s,"title")),f.submit.val(r.update)):this.setDefaultValues(l),f.search.val(e&&e!==o?e:""),window.setTimeout(function(){wpLink.searchInternalLinks()})):(l=a.selection.getContent({format:"text"})||t||"",this.setDefaultValues(l)),c?(f.text.val(l),f.wrap.addClass("has-text-field")):(f.text.val(""),f.wrap.removeClass("has-text-field"))},close:function(e){i(document.body).removeClass("modal-open"),wpLink.modalOpen=!1,"noReset"!==e&&(wpLink.isMCE()?(a.plugins.wplink&&a.plugins.wplink.close(),a.focus()):(wpLink.textarea.focus(),wpLink.range&&(wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select()))),f.backdrop.hide(),f.wrap.hide(),f.title.val(""),u=!1,i(document).trigger("wplink-close",f.wrap)},getAttrs:function(){wpLink.correctURL();var e={href:i.trim(f.url.val()),target:f.openInNewTab.prop("checked")?"_blank":null,rel:f.nofollow.prop("checked")?"nofollow":""};return i.trim(f.title.val())&&(e.title=i.trim(f.title.val())),e},buildHtml:function(e){var t='<a href="'+e.href+'"';return e.target&&(t+=' target="'+e.target+'"'),e.rel&&(t+=' rel="'+e.rel+'"'),e.title&&(t+=' title="'+e.title+'"'),t+">"},update:function(){wpLink.isMCE()?wpLink.mceUpdate():wpLink.htmlUpdate()},htmlUpdate:function(){var e,t,n,a,o,s,c,u=wpLink.textarea;if(u){e=wpLink.getAttrs(),t=f.text.val();var p=document.createElement("a");p.href=e.href,"javascript:"!==p.protocol&&"data:"!==p.protocol||(e.href=""),e.href&&(n=wpLink.buildHtml(e),document.selection&&wpLink.range?(u.focus(),wpLink.range.text=n+(t||wpLink.range.text)+"</a>",wpLink.range.moveToBookmark(wpLink.range.getBookmark()),wpLink.range.select(),wpLink.range=null):void 0!==u.selectionStart&&(o=u.selectionEnd,s=(a=u.selectionStart)+(n=n+(c=t||u.value.substring(a,o))+"</a>").length,a!==o||c||(s-=4),u.value=u.value.substring(0,a)+n+u.value.substring(o,u.value.length),u.selectionStart=u.selectionEnd=s),wpLink.close(),u.focus(),i(u).trigger("change"),l.a11y.speak(r.linkInserted))}},mceUpdate:function(){var e,t,o,s,c=wpLink.getAttrs(),u=document.createElement("a");if(u.href=c.href,"javascript:"!==u.protocol&&"data:"!==u.protocol||(c.href=""),!c.href)return a.execCommand("unlink"),void wpLink.close();e=a.$(n()),a.undoManager.transact(function(){e.length||(a.execCommand("mceInsertLink",!1,{href:"_wp_link_placeholder","data-wp-temp-link":1}),e=a.$('a[data-wp-temp-link="1"]').removeAttr("data-wp-temp-link"),o=i.trim(e.text())),e.length?(f.wrap.hasClass("has-text-field")&&((t=f.text.val())?e.text(t):o||e.text(c.href)),c["data-wplink-edit"]=null,c["data-mce-href"]=null,c.hasOwnProperty("rel")&&!c.rel&&(c.rel=null),e.attr(c)):a.execCommand("unlink")}),wpLink.close("noReset"),a.focus(),e.length&&((s=e.parent("#_mce_caret")).length&&s.before(e.removeAttr("data-mce-bogus")),a.selection.select(e[0]),a.selection.collapse(),a.plugins.wplink&&a.plugins.wplink.checkLink(e[0])),a.nodeChanged(),f.title.val(""),l.a11y.speak(r.linkInserted)},updateFields:function(e,t){f.url.val(t.children(".item-permalink").val())},getUrlFromSelection:function(e){return e||(this.isMCE()?e=a.selection.getContent({format:"text"}):document.selection&&wpLink.range?e=wpLink.range.text:void 0!==this.textarea.selectionStart&&(e=this.textarea.value.substring(this.textarea.selectionStart,this.textarea.selectionEnd))),(e=i.trim(e))&&d.test(e)?"mailto:"+e:e&&h.test(e)?e.replace(/&amp;|&#0?38;/gi,"&"):""},setDefaultValues:function(e){f.url.val(this.getUrlFromSelection(e)),f.search.val(""),wpLink.searchInternalLinks(),f.submit.val(r.save)},searchInternalLinks:function(){var e,t=f.search.val()||"";if(2<t.length){if(w.recent.hide(),w.search.show(),wpLink.lastSearch===t)return;wpLink.lastSearch=t,e=f.search.parent().find(".spinner").addClass("is-active"),w.search.change(t),w.search.ajax(function(){e.removeClass("is-active")})}else w.search.hide(),w.recent.show()},next:function(){w.search.next(),w.recent.next()},prev:function(){w.search.prev(),w.recent.prev()},keydown:function(e){var t,n;27===e.keyCode?(wpLink.close(),e.stopImmediatePropagation()):9===e.keyCode&&("wp-link-submit"!==(n=e.target.id)||e.shiftKey?"wp-link-close"===n&&e.shiftKey&&(f.submit.focus(),e.preventDefault()):(f.close.focus(),e.preventDefault())),e.shiftKey||38!==e.keyCode&&40!==e.keyCode||document.activeElement&&("link-title-field"===document.activeElement.id||"url-field"===document.activeElement.id)||(t=38===e.keyCode?"prev":"next",clearInterval(wpLink.keyInterval),wpLink[t](),wpLink.keyInterval=setInterval(wpLink[t],wpLink.keySensitivity),e.preventDefault())},keyup:function(e){38!==e.keyCode&&40!==e.keyCode||(clearInterval(wpLink.keyInterval),e.preventDefault())},delayedCallback:function(e,t){var n,i,r,l;return t?(setTimeout(function(){if(i)return e.apply(l,r);n=!0},t),function(){if(n)return e.apply(this,arguments);r=arguments,l=this,i=!0}):e}},s=function(e,t){var n=this;this.element=e,this.ul=e.children("ul"),this.contentHeight=e.children("#link-selector-height"),this.waiting=e.find(".river-waiting"),this.change(t),this.refresh(),i("#wp-link .query-results, #wp-link #link-selector").scroll(function(){n.maybeLoad()}),e.on("click","li",function(e){n.select(i(this),e)})},i.extend(s.prototype,{refresh:function(){this.deselect(),this.visible=this.element.is(":visible")},show:function(){this.visible||(this.deselect(),this.element.show(),this.visible=!0)},hide:function(){this.element.hide(),this.visible=!1},select:function(e,t){var n,i,r,l;e.hasClass("unselectable")||e===this.selected||(this.deselect(),this.selected=e.addClass("selected"),n=e.outerHeight(),i=this.element.height(),r=e.position().top,l=this.element.scrollTop(),r<0?this.element.scrollTop(l+r):i<r+n&&this.element.scrollTop(l+r-i+n),this.element.trigger("river-select",[e,t,this]))},deselect:function(){this.selected&&this.selected.removeClass("selected"),this.selected=!1},prev:function(){var e;this.visible&&this.selected&&(e=this.selected.prev("li")).length&&this.select(e)},next:function(){if(this.visible){var e=this.selected?this.selected.next("li"):i("li:not(.unselectable):first",this.element);e.length&&this.select(e)}},ajax:function(e){var t=this,n=1==this.query.page?0:wpLink.minRiverAJAXDuration,i=wpLink.delayedCallback(function(n,i){t.process(n,i),e&&e(n,i)},n);this.query.ajax(i)},change:function(e){this.query&&this._search===e||(this._search=e,this.query=new c(e),this.element.scrollTop(0))},process:function(e,t){var n="",l=!0,a="",o=1===t.page;e?i.each(e,function(){a=l?"alternate":"",n+=(a+=this.title?"":" no-title")?'<li class="'+a+'">':"<li>",n+='<input type="hidden" class="item-permalink" value="'+this.permalink+'" />',n+='<span class="item-title">',n+=this.title?this.title:r.noTitle,n+='</span><span class="item-info">'+this.info+"</span></li>",l=!l}):o&&(n+='<li class="unselectable no-matches-found"><span class="item-title"><em>'+r.noMatchesFound+"</em></span></li>"),this.ul[o?"html":"append"](n)},maybeLoad:function(){var e=this,t=this.element,n=t.scrollTop()+t.height();this.query.ready()&&n>=this.contentHeight.height()-wpLink.riverBottomThreshold&&setTimeout(function(){var n=t.scrollTop(),i=n+t.height();e.query.ready()&&i>=e.contentHeight.height()-wpLink.riverBottomThreshold&&(e.waiting.addClass("is-active"),t.scrollTop(n+e.waiting.outerHeight()),e.ajax(function(){e.waiting.removeClass("is-active")}))},wpLink.timeToTriggerRiver)}}),i.extend((c=function(e){this.page=1,this.allLoaded=!1,this.querying=!1,this.search=e}).prototype,{ready:function(){return!(this.querying||this.allLoaded)},ajax:function(e){var t=this,n={action:"wp-link-ajax",page:this.page,_ajax_linking_nonce:f.nonce.val()};this.search&&(n.search=this.search),this.querying=!0,i.post(window.ajaxurl,n,function(i){t.page++,t.querying=!1,t.allLoaded=!i,e(i,n)},"json")}}),i(document).ready(wpLink.init)}});
includes/admin/class-post-filters.php CHANGED
@@ -133,12 +133,12 @@ class Post_Filters implements Runner {
133
  'relation' => 'OR',
134
  [
135
  'key' => 'rank_math_focus_keyword',
136
- 'value' => $focus_keyword,
137
  'compare' => 'LIKE',
138
  ],
139
  [
140
  'key' => 'rank_math_focus_keyword',
141
- 'value' => $focus_keyword . ',',
142
  'compare' => 'LIKE',
143
  ],
144
  ],
133
  'relation' => 'OR',
134
  [
135
  'key' => 'rank_math_focus_keyword',
136
+ 'value' => $focus_keyword . ',',
137
  'compare' => 'LIKE',
138
  ],
139
  [
140
  'key' => 'rank_math_focus_keyword',
141
+ 'value' => $focus_keyword,
142
  'compare' => 'LIKE',
143
  ],
144
  ],
includes/class-installer.php CHANGED
@@ -190,7 +190,7 @@ class Installer {
190
 
191
  "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}rank_math_redirections (
192
  id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
193
- sources TEXT NOT NULL CHARACTER SET {$wpdb->charset} COLLATE {$wpdb->charset}_bin,
194
  url_to TEXT NOT NULL,
195
  header_code SMALLINT(4) UNSIGNED NOT NULL,
196
  hits BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
@@ -204,7 +204,7 @@ class Installer {
204
 
205
  "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}rank_math_redirections_cache (
206
  id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
207
- from_url TEXT NOT NULL CHARACTER SET {$wpdb->charset} COLLATE {$wpdb->charset}_bin,
208
  redirection_id BIGINT(20) UNSIGNED NOT NULL,
209
  object_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
210
  object_type VARCHAR(10) NOT NULL DEFAULT 'post',
190
 
191
  "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}rank_math_redirections (
192
  id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
193
+ sources TEXT CHARACTER SET {$wpdb->charset} COLLATE {$wpdb->charset}_bin NOT NULL,
194
  url_to TEXT NOT NULL,
195
  header_code SMALLINT(4) UNSIGNED NOT NULL,
196
  hits BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
204
 
205
  "CREATE TABLE IF NOT EXISTS {$wpdb->prefix}rank_math_redirections_cache (
206
  id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
207
+ from_url TEXT CHARACTER SET {$wpdb->charset} COLLATE {$wpdb->charset}_bin NOT NULL,
208
  redirection_id BIGINT(20) UNSIGNED NOT NULL,
209
  object_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
210
  object_type VARCHAR(10) NOT NULL DEFAULT 'post',
rank-math.php CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
- * Version: 1.0.30.1
13
  * Plugin URI: https://s.rankmath.com/home
14
  * Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
15
  * Author: Rank Math
@@ -34,7 +34,7 @@ final class RankMath {
34
  *
35
  * @var string
36
  */
37
- public $version = '1.0.30.1';
38
 
39
  /**
40
  * Rank Math database version.
9
  *
10
  * @wordpress-plugin
11
  * Plugin Name: Rank Math SEO
12
+ * Version: 1.0.30.2
13
  * Plugin URI: https://s.rankmath.com/home
14
  * Description: Rank Math is a revolutionary SEO product that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible.
15
  * Author: Rank Math
34
  *
35
  * @var string
36
  */
37
+ public $version = '1.0.30.2';
38
 
39
  /**
40
  * Rank Math database version.
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: seo, sitemap, google search console, schema, redirection
5
  Tested up to: 5.2.2
6
  Requires at least: 4.7.0
7
  Requires PHP: 5.6
8
- Stable tag: 1.0.30.1
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
@@ -451,25 +451,11 @@ We look forward to helping you.
451
 
452
  == Changelog ==
453
 
454
- = 1.0.30.1 [Jul 23, 2019] =
455
- * Fixed a compatibility issue with AMPforWP plugin
456
-
457
- = 1.0.30 [Jul 22, 2019] =
458
- * Added localization of weekdays in the Contact Shortcode
459
- * Added a filter for `GET_query` params so they could be redirected as well
460
- * Improved the behavior of Rank Math's icon to match the score's color, instead of showing red all the time
461
- * Improved the redirection behavior when site domain was present in between the URL, it is not getting stripped anymore
462
- * Improved compatibility with PHP 7.3
463
- * Changed the behavior of 'Remove category base' option. The new URLs are now using a 301 instead of Canonical URLs
464
- * Removed Redirection option from 410 and 451 types as it's not needed there
465
- * Fixed a PHP notice showing up about a Breadcrumb property not being set
466
- * Fixed the variable of `%focuskw%`, showing all the Focus Keywords instead of just the primary keyword
467
- * Fixed the image ALT test for the featured images. Plugin wasn't detecting the ALT text in the featured images
468
- * Fixed Yandex's Schema Markup error for the Collection page
469
- * Fixed the redirection of the URLs with diatrics in them aka accents
470
- * Fixed the auto redirection option. It stopped working after the last update
471
- * Fixed the 404 redirection option to work properly
472
- * Synced the ALT test with the auto-ALT feature. Now the content analysis won't throw a false warning if `%focuskw%` is used
473
- * Added small fixes and performance improvements
474
 
475
  Full changelog can be found here - **[Rank Math SEO changelog](https://rankmath.com/changelog)**
5
  Tested up to: 5.2.2
6
  Requires at least: 4.7.0
7
  Requires PHP: 5.6
8
+ Stable tag: 1.0.30.2
9
  License: GPL-2.0+
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11
 
451
 
452
  == Changelog ==
453
 
454
+ = 1.0.30.2 [Jul 23, 2019] =
455
+ * Improved the compatibility with the AMPforWP plugin further by making it performant with MariaDB as well
456
+ * Improved the styling of the feedback form upon deactivation
457
+ * Improved Focus Keyword filter further to perform better
458
+ * Fixed an issue with the importing of the Redirections from other plugins
459
+ * Fixed a PHP 7.3 deprecation notice (hopefully!)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
 
461
  Full changelog can be found here - **[Rank Math SEO changelog](https://rankmath.com/changelog)**
vendor/composer/installed.json CHANGED
@@ -284,23 +284,23 @@
284
  },
285
  {
286
  "name": "mythemeshop/wordpress-helpers",
287
- "version": "1.0.7",
288
- "version_normalized": "1.0.7.0",
289
  "source": {
290
  "type": "git",
291
  "url": "https://github.com/MyThemeShopTeam/wordpress-helpers.git",
292
- "reference": "7405f4d805057801704eee85b9d100de493ff222"
293
  },
294
  "dist": {
295
  "type": "zip",
296
- "url": "https://api.github.com/repos/MyThemeShopTeam/wordpress-helpers/zipball/7405f4d805057801704eee85b9d100de493ff222",
297
- "reference": "7405f4d805057801704eee85b9d100de493ff222",
298
  "shasum": ""
299
  },
300
  "require": {
301
  "php": ">=5.6"
302
  },
303
- "time": "2019-07-22T04:42:08+00:00",
304
  "type": "library",
305
  "installation-source": "dist",
306
  "autoload": {
284
  },
285
  {
286
  "name": "mythemeshop/wordpress-helpers",
287
+ "version": "1.0.8",
288
+ "version_normalized": "1.0.8.0",
289
  "source": {
290
  "type": "git",
291
  "url": "https://github.com/MyThemeShopTeam/wordpress-helpers.git",
292
+ "reference": "56bfaf15c5db4ebbe5fb3d2549369309810e9adf"
293
  },
294
  "dist": {
295
  "type": "zip",
296
+ "url": "https://api.github.com/repos/MyThemeShopTeam/wordpress-helpers/zipball/56bfaf15c5db4ebbe5fb3d2549369309810e9adf",
297
+ "reference": "56bfaf15c5db4ebbe5fb3d2549369309810e9adf",
298
  "shasum": ""
299
  },
300
  "require": {
301
  "php": ">=5.6"
302
  },
303
+ "time": "2019-07-23T17:39:04+00:00",
304
  "type": "library",
305
  "installation-source": "dist",
306
  "autoload": {
vendor/mythemeshop/wordpress-helpers/src/helpers/class-str.php CHANGED
@@ -46,7 +46,7 @@ class Str {
46
  * @return bool
47
  */
48
  public static function contains( $needle, $haystack ) {
49
- return '' === $needle ? false : strpos( $haystack, $needle ) !== false;
50
  }
51
 
52
  /**
46
  * @return bool
47
  */
48
  public static function contains( $needle, $haystack ) {
49
+ return self::is_non_empty( $needle ) ? strpos( $haystack, $needle ) !== false : false;
50
  }
51
 
52
  /**