diff --git a/wp-admin/about.php b/wp-admin/about.php index 228b928..ef34a8c 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -61,6 +61,31 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
+ Version %1$s addressed some security issues and fixed %2$s bug.', + 'Version %1$s addressed some security issues and fixed %2$s bugs.', + 4 + ), + '7.1.3', + '4' + ); + ?> + the release notes.' ), + sprintf( + /* translators: %s: WordPress version. */ + esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ), + sanitize_title( '7.1.3' ) + ) + ); + ?> +
get_results( "SELECT * FROM {$wpdb->posts} $where" );
+ // Re-sanitize immediately before use, as defense-in-depth against the IDs being interpolated directly into SQL below.
+ $next_posts = array_map( 'absint', $next_posts );
+ $where = 'WHERE ID IN (' . implode( ',', $next_posts ) . ')';
+ $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" );
// Begin Loop.
foreach ( $posts as $post ) {
diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php
index 935c613..6b4ace4 100644
--- a/wp-admin/includes/image.php
+++ b/wp-admin/includes/image.php
@@ -1083,10 +1083,15 @@ function wp_read_image_metadata( $file ) {
* @since 7.0.0
*
* @param string $file File path to the image.
- * @return string Embedded alternative text.
+ * @return string Embedded alternative text, empty when there is no alt text or DOM extension is not installed.
*/
function wp_get_image_alttext( $file ) {
- $alt_text = '';
+ $alt_text = '';
+
+ if ( ! class_exists( 'DOMDocument', false ) ) {
+ return $alt_text;
+ }
+
$img_contents = file_get_contents( $file );
if ( false === $img_contents ) {
diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js
index c3d4931..783cccc 100644
--- a/wp-admin/js/common.js
+++ b/wp-admin/js/common.js
@@ -695,7 +695,7 @@ $('.contextual-help-tabs').on( 'click', 'a', function(e) {
$('.contextual-help-tabs .active').removeClass('active');
link.parent('li').addClass('active');
- panel = $( link.attr('href') );
+ panel = $( document ).find( link.attr('href') );
// Panels.
$('.help-tab-content').not( panel ).removeClass('active').hide();
diff --git a/wp-admin/js/common.min.js b/wp-admin/js/common.min.js
index 346fd6a..75b4149 100644
--- a/wp-admin/js/common.min.js
+++ b/wp-admin/js/common.min.js
@@ -1,2 +1,2 @@
/*! This file is auto-generated */
-!function(U,K){var W=U(document),$=U(K),H=U(document.body),Q=wp.i18n.__,i=wp.i18n.sprintf;function r(e,t,n){n=void 0!==n?i(Q("%1$s is deprecated since version %2$s! Use %3$s instead."),e,t,n):i(Q("%1$s is deprecated since version %2$s with no alternative available."),e,t);K.console.warn(n)}function e(i,o,a){var s={};return Object.keys(o).forEach(function(e){var t=o[e],n=i+"."+e;"object"==typeof t?Object.defineProperty(s,e,{get:function(){return r(n,a,t.alternative),t.func()}}):Object.defineProperty(s,e,{get:function(){return r(n,a,"wp.i18n"),t}})}),s}K.wp.deprecateL10nObject=e,K.commonL10n=K.commonL10n||{warnDelete:"",dismiss:"",collapseMenu:"",expandMenu:""},K.commonL10n=e("commonL10n",K.commonL10n,"5.5.0"),K.wpPointerL10n=K.wpPointerL10n||{dismiss:""},K.wpPointerL10n=e("wpPointerL10n",K.wpPointerL10n,"5.5.0"),K.userProfileL10n=K.userProfileL10n||{warn:"",warnWeak:"",show:"",hide:"",cancel:"",ariaShow:"",ariaHide:""},K.userProfileL10n=e("userProfileL10n",K.userProfileL10n,"5.5.0"),K.privacyToolsL10n=K.privacyToolsL10n||{noDataFound:"",foundAndRemoved:"",noneRemoved:"",someNotRemoved:"",removalError:"",emailSent:"",noExportFile:"",exportError:""},K.privacyToolsL10n=e("privacyToolsL10n",K.privacyToolsL10n,"5.5.0"),K.authcheckL10n={beforeunload:""},K.authcheckL10n=K.authcheckL10n||e("authcheckL10n",K.authcheckL10n,"5.5.0"),K.tagsl10n={noPerm:"",broken:""},K.tagsl10n=K.tagsl10n||e("tagsl10n",K.tagsl10n,"5.5.0"),K.adminCommentsL10n=K.adminCommentsL10n||{hotkeys_highlight_first:{alternative:"window.adminCommentsSettings.hotkeys_highlight_first",func:function(){return K.adminCommentsSettings.hotkeys_highlight_first}},hotkeys_highlight_last:{alternative:"window.adminCommentsSettings.hotkeys_highlight_last",func:function(){return K.adminCommentsSettings.hotkeys_highlight_last}},replyApprove:"",reply:"",warnQuickEdit:"",warnCommentChanges:"",docTitleComments:"",docTitleCommentsCount:""},K.adminCommentsL10n=e("adminCommentsL10n",K.adminCommentsL10n,"5.5.0"),K.tagsSuggestL10n=K.tagsSuggestL10n||{tagDelimiter:"",removeTerm:"",termSelected:"",termAdded:"",termRemoved:""},K.tagsSuggestL10n=e("tagsSuggestL10n",K.tagsSuggestL10n,"5.5.0"),K.wpColorPickerL10n=K.wpColorPickerL10n||{clear:"",clearAriaLabel:"",defaultString:"",defaultAriaLabel:"",pick:"",defaultLabel:""},K.wpColorPickerL10n=e("wpColorPickerL10n",K.wpColorPickerL10n,"5.5.0"),K.attachMediaBoxL10n=K.attachMediaBoxL10n||{error:""},K.attachMediaBoxL10n=e("attachMediaBoxL10n",K.attachMediaBoxL10n,"5.5.0"),K.postL10n=K.postL10n||{ok:"",cancel:"",publishOn:"",publishOnFuture:"",publishOnPast:"",dateFormat:"",showcomm:"",endcomm:"",publish:"",schedule:"",update:"",savePending:"",saveDraft:"",private:"",public:"",publicSticky:"",password:"",privatelyPublished:"",published:"",saveAlert:"",savingText:"",permalinkSaved:""},K.postL10n=e("postL10n",K.postL10n,"5.5.0"),K.inlineEditL10n=K.inlineEditL10n||{error:"",ntdeltitle:"",notitle:"",comma:"",saved:""},K.inlineEditL10n=e("inlineEditL10n",K.inlineEditL10n,"5.5.0"),K.plugininstallL10n=K.plugininstallL10n||{plugin_information:"",plugin_modal_label:"",ays:""},K.plugininstallL10n=e("plugininstallL10n",K.plugininstallL10n,"5.5.0"),K.navMenuL10n=K.navMenuL10n||{noResultsFound:"",warnDeleteMenu:"",saveAlert:"",untitled:""},K.navMenuL10n=e("navMenuL10n",K.navMenuL10n,"5.5.0"),K.commentL10n=K.commentL10n||{submittedOn:"",dateFormat:""},K.commentL10n=e("commentL10n",K.commentL10n,"5.5.0"),K.setPostThumbnailL10n=K.setPostThumbnailL10n||{setThumbnail:"",saving:"",error:"",done:""},K.setPostThumbnailL10n=e("setPostThumbnailL10n",K.setPostThumbnailL10n,"5.5.0"),K.uiAutocompleteL10n=K.uiAutocompleteL10n||{noResults:"",oneResult:"",manyResults:"",itemSelected:""},K.uiAutocompleteL10n=e("uiAutocompleteL10n",K.uiAutocompleteL10n,"6.5.0"),K.adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},K.columns={init:function(){var n=this;U(".hide-column-tog","#adv-settings").on("click",function(){var e=U(this),t=e.val();e.prop("checked")?n.checked(t):n.unchecked(t),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();U.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:U("#screenoptionnonce").val(),page:pagenow},function(){wp.a11y.speak(Q("Screen Options updated."))})},checked:function(e){U(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){U(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return U(".manage-column[id]").filter(".hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return U(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var t=U("table").find(".colspanchange");t.length&&(e=parseInt(t.attr("colspan"),10)+e,t.attr("colspan",e.toString()))}},U(function(){columns.init()}),K.validateForm=function(e){return!U(e).find(".form-required").filter(function(){return""===U(":input:visible",this).val()}).addClass("form-invalid").find(":input:visible").on("change",function(){U(this).closest(".form-invalid").removeClass("form-invalid")}).length},K.showNotice={warn:function(){return!!confirm(Q("You are about to permanently delete these items from your site.\nThis action cannot be undone.\n'Cancel' to stop, 'OK' to delete."))},note:function(e){alert(e)}},K.screenMeta={element:null,toggles:null,page:null,init:function(){this.element=U("#screen-meta"),this.toggles=U("#screen-meta-links").find(".show-settings"),this.page=U("#wpcontent"),this.toggles.on("click",this.toggleEvent)},toggleEvent:function(){var e=U("#"+U(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,U(this)):screenMeta.open(e,U(this)))},open:function(e,t){U("#screen-meta-links").find(".screen-meta-toggle").not(t.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.removeClass("hidden").trigger("focus"),t.addClass("screen-meta-active").attr("aria-expanded",!0)}),W.trigger("screen:options:open")},close:function(e,t){e.slideUp("fast",function(){t.removeClass("screen-meta-active").attr("aria-expanded",!1),U(".screen-meta-toggle").css("visibility",""),e.parent().hide(),e.addClass("hidden")}),W.trigger("screen:options:close")}},U(".contextual-help-tabs").on("click","a",function(e){var t=U(this);if(e.preventDefault(),t.is(".active a"))return!1;U(".contextual-help-tabs .active").removeClass("active"),t.parent("li").addClass("active"),e=U(t.attr("href")),U(".help-tab-content").not(e).removeClass("active").hide(),e.addClass("active").show()});var t,a=!1,s=U("#permalink_structure"),n=U(".permalink-structure input:radio"),l=U("#custom_selection"),o=U(".form-table.permalink-structure .available-structure-tags button");function c(e){-1!==s.val().indexOf(e.text().trim())?(e.attr("data-label",e.attr("aria-label")),e.attr("aria-label",e.attr("data-used")),e.attr("aria-pressed",!0),e.addClass("active")):e.attr("data-label")&&(e.attr("aria-label",e.attr("data-label")),e.attr("aria-pressed",!1),e.removeClass("active"))}function d(){W.trigger("wp-window-resized")}n.on("change",function(){"custom"!==this.value&&(s.val(this.value),o.each(function(){c(U(this))}))}),s.on("click input",function(){l.prop("checked",!0)}),s.on("focus",function(e){a=!0,U(this).off(e)}),o.each(function(){c(U(this))}),s.on("change",function(){o.each(function(){c(U(this))})}),o.on("click",function(){var e=s.val(),t=s[0].selectionStart,n=s[0].selectionEnd,i=U(this).text().trim(),o=U(this).hasClass("active")?U(this).attr("data-removed"):U(this).attr("data-added");-1!==e.indexOf(i)?(e=e.replace(i+"/",""),s.val("/"===e?"":e),U("#custom_selection_updated").text(o),c(U(this))):(a||0!==t||0!==n||(t=n=e.length),l.prop("checked",!0),"/"!==e.substr(0,t).substr(-1)&&(i="/"+i),"/"!==e.substr(n,1)&&(i+="/"),s.val(e.substr(0,t)+i+e.substr(n)),U("#custom_selection_updated").text(o),c(U(this)),a&&s[0].setSelectionRange&&(n=(e.substr(0,t)+i).length,s[0].setSelectionRange(n,n),s.trigger("focus")))}),U(function(){var n,i,o,a,e,t,s,r=!1,l=U("input.current-page"),I=l.val(),c=/iPhone|iPad|iPod/.test(navigator.userAgent),z=-1!==navigator.userAgent.indexOf("Android"),d=U("#adminmenuwrap"),u=U("#wpwrap"),p=U("#adminmenu"),m=U("#wp-responsive-overlay"),h=U("#wp-toolbar"),f=h.find('a[aria-haspopup="true"]'),g=U(".meta-box-sortables"),v=!1,b=U("#wpadminbar"),w=0,y=!1,k=!1,C=0,L=!1,x={window:$.height(),wpwrap:u.height(),adminbar:b.height(),menu:d.height()},S=U(".wp-header-end");function A(e){var t=e.find(".wp-submenu"),e=e.offset().top,n=$.scrollTop(),i=e-n-30,e=e+t.height()+1,o=60+e-u.height(),n=$.height()+n-50;1<(o=i<(o=n '+e.message+"
'+e.message+"
",(n=n.length?n:U("#"+e.id)).length?n.replaceWith(i):o.length?o.after(i):"customize"===pagenow?U(".customize-themes-notifications").append(i):U(".wrap").find("> h1").after(i),W.trigger("wp-notice-added"),wp.a11y.speak(t)}}}),U("#wpbody-content").on({focusin:function(){clearTimeout(e),t=U(this).find(".row-actions"),U(".row-actions").not(this).removeClass("visible"),t.addClass("visible")},focusout:function(){e=setTimeout(function(){t.removeClass("visible")},30)}},".table-view-list .has-row-actions"),U("tbody").on("click",".toggle-row",function(){U(this).closest("tr").toggleClass("is-expanded")}),U("#default-password-nag-no").on("click",function(){return setUserSetting("default_password_nag","hide"),U("div.default-password-nag").hide(),!1}),U("#newcontent").on("keydown.wpevent_InsertTab",function(e){var t,n,i,o,a=e.target;27==e.keyCode?(e.preventDefault(),U(a).data("tab-out",!0)):9!=e.keyCode||e.ctrlKey||e.altKey||e.shiftKey||(U(a).data("tab-out")?U(a).data("tab-out",!1):(t=a.selectionStart,n=a.selectionEnd,i=a.value,document.selection?(a.focus(),document.selection.createRange().text="\t"):0<=t&&(o=this.scrollTop,a.value=i.substring(0,t).concat("\t",i.substring(n)),a.selectionStart=a.selectionEnd=t+1,this.scrollTop=o),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()))}),l.length&&l.closest("form").on("submit",function(){-1==U('select[name="action"]').val()&&l.val()==I&&l.val("1")}),U('.search-box input[type="search"], .search-box input[type="submit"]').on("mousedown",function(){U('select[name^="action"]').val("-1")}),U("#contextual-help-link, #show-settings-link").on("focus.scroll-into-view",function(e){e.target.scrollIntoViewIfNeeded&&e.target.scrollIntoViewIfNeeded(!1)}),(M=U("form.wp-upload-form")).length&&(T=M.find('input[type="submit"]'),_=M.find('input[type="file"]'),D(),_.on("change",D)),c||($.on("scroll.pin-menu",R),W.on("tinymce-editor-init.pin-menu",function(e,t){t.on("wp-autoresize",B)})),K.wpResponsive={init:function(){var e=this;this.maybeDisableSortables=this.maybeDisableSortables.bind(this),W.on("wp-responsive-activate.wp-responsive",function(){e.activate(),e.toggleAriaHasPopup("add")}).on("wp-responsive-deactivate.wp-responsive",function(){e.deactivate(),e.toggleAriaHasPopup("remove")}),U("#wp-admin-bar-menu-toggle a").attr("aria-expanded","false"),U("#wp-admin-bar-menu-toggle").on("click.wp-responsive",function(e){e.preventDefault(),b.find(".hover").removeClass("hover"),u.toggleClass("wp-responsive-open"),u.hasClass("wp-responsive-open")?(U(this).find("a").attr("aria-expanded","true"),U("#adminmenu a:first").trigger("focus")):U(this).find("a").attr("aria-expanded","false")}),U(document).on("click",function(e){var t;u.hasClass("wp-responsive-open")&&document.hasFocus()&&(t=U.contains(U("#wp-admin-bar-menu-toggle")[0],e.target),e=U.contains(U("#adminmenuwrap")[0],e.target),t||e||U("#wp-admin-bar-menu-toggle").trigger("click.wp-responsive"))}),U(document).on("keyup",function(e){var n,i,o=U("#wp-admin-bar-menu-toggle")[0];u.hasClass("wp-responsive-open")&&(27===e.keyCode?(U(o).trigger("click.wp-responsive"),U(o).find("a").trigger("focus")):9===e.keyCode&&(n=U("#adminmenuwrap")[0],i=e.relatedTarget||document.activeElement,setTimeout(function(){var e=U.contains(o,i),t=U.contains(n,i);e||t||U(o).trigger("click.wp-responsive")},10)))}),p.on("click.wp-responsive","li.wp-has-submenu > a",function(e){var t;p.data("wp-responsive")&&(t="false"===U(this).attr("aria-expanded")?"true":"false",U(this).parent("li").toggleClass("selected"),U(this).attr("aria-expanded",t),U(this).trigger("focus"),e.preventDefault())}),e.trigger(),W.on("wp-window-resized.wp-responsive",this.trigger.bind(this)),$.on("load.wp-responsive",this.maybeDisableSortables),W.on("postbox-toggled",this.maybeDisableSortables),U("#screen-options-wrap input").on("click",this.maybeDisableSortables)},maybeDisableSortables:function(){(-1gethostbynamel function."
+msgstr "Tu proveedor de hosting o administrador del servidor ha desactivado la función gethostbynamel de PHP."
+
#. translators: 1: URL to the Akismet contact form, 2: hidden screen-reader
#. text noting the link opens in a new tab.
#: views/notice.php:234
msgid "Please enter a new key or contact Akismet support%2$s"
msgstr "Introduce una nueva clave o contacta con el soporte de Akismet%2$s."
-#: views/notice.php:188 views/setup-jetpack.php:53
-msgid "Once you've chosen a plan, return here to complete your setup."
-msgstr "Una vez que hayas elegido un plan, vuelve aquí para completar la configuración."
-
#. translators: 1: URL to the Akismet pricing page, 2: hidden screen-reader
#. text noting the link opens in a new tab.
#: views/notice.php:185
@@ -378,10 +382,6 @@ msgstr "Visita this information about Akismet’s system requirements%2$s"
msgstr "Ponte en contacto con tu proveedor de alojamiento o administrador del cortafuegos y dales esta información sobre los requisitos del sistema de Akismet%2$s"
-#: views/notice.php:113
-msgid "Your web host or server administrator has disabled PHP’s gethostbynamel function."
-msgstr "Tu proveedor de hosting o administrador del servidor ha desactivado la función gethostbynamel de PHP."
-
#: class.akismet-admin.php:737
msgid "Akismet provisionally cleared this comment."
msgstr "Akismet ha borrado este comentario de manera provisional."
@@ -405,12 +405,6 @@ msgstr "Ver documentación"
msgid "%s logo"
msgstr "Logo de %s"
-#: views/compatible-plugins.php:33
-msgid "This plugin you've installed is compatible. Follow the documentation link to get started."
-msgid_plural "These plugins you've installed are compatible. Follow the documentation links to get started."
-msgstr[0] "El plugin que has instalado es compatible. Sigue el enlace a la documentación para empezar."
-msgstr[1] "Los plugins que has instalado son compatibles. Sigue el enlace a la documentación para empezar."
-
#: views/compatible-plugins.php:28
msgid "See supported integrations"
msgstr "Ver las integraciones compatibles"
@@ -427,6 +421,12 @@ msgstr "Plugins compatibles"
msgid "Error getting compatible plugins."
msgstr "Se ha producido un error al obtener plugins compatibles."
+#: views/compatible-plugins.php:33
+msgid "This plugin you've installed is compatible. Follow the documentation link to get started."
+msgid_plural "These plugins you've installed are compatible. Follow the documentation links to get started."
+msgstr[0] "El plugin que has instalado es compatible. Sigue el enlace a la documentación para empezar."
+msgstr[1] "Los plugins que has instalado son compatibles. Sigue el enlace a la documentación para empezar."
+
#: views/notice.php:70
msgid "Upgrade plan"
msgstr "Mejorar plan"
@@ -553,17 +553,17 @@ msgstr "(se abre en una nueva pestaña)"
msgid "Upgrade to %s"
msgstr "Actualizar a %s"
-#: views/notice.php:301 views/notice.php:310 views/notice.php:319
-#: views/notice.php:329
-msgid "Learn more about usage limits"
-msgstr "Aprende más sobre los límites de uso."
-
#. translators: The first placeholder is a date, the second is a (formatted)
#. number, the third is another formatted number.
#: views/notice.php:293
msgid "Since %1$s, your account made %2$s API calls, compared to your plan’s limit of %3$s."
msgstr "Desde el %1$s, tu cuenta ha hecho %2$s llamadas a la API, en comparación con el límite de %3$s tu plan."
+#: views/notice.php:301 views/notice.php:310 views/notice.php:319
+#: views/notice.php:329
+msgid "Learn more about usage limits"
+msgstr "Aprende más sobre los límites de uso."
+
#: views/notice.php:326
msgid "Your Akismet usage has been over your plan’s limit for three consecutive months. We have restricted your account for the rest of the month. Increase your limit to make sure your site stays protected from spam."
msgstr "Tu uso de Akismet ha superado el límite de tu plan durante tres meses consecutivos. Hemos restringido tu cuenta durante el resto del mes. Actualiza tu plan para que Akismet pueda seguir bloqueando el spam."
@@ -594,9 +594,9 @@ msgstr "Tu clave API ya no es válida."
msgid "Checking for Spam (%1$s%)"
msgstr "Buscando spam (%1$s%)"
-#: class.akismet-admin.php:849
-msgid "No comment history."
-msgstr "No hay historial de comentarios."
+#: abilities/class-akismet-ability-comment-check.php:191 class.akismet.php:1127
+msgid "Akismet is not configured. Please enter an API key."
+msgstr "Akismet no está configurado. Por favor, introduce una clave de la API."
#: class.akismet-admin.php:782
msgid "Akismet was unable to recheck this comment."
@@ -611,9 +611,9 @@ msgstr "Akismet no pudo comprobar este comentario pero volverá a intentarlo aut
msgid "Comment was caught by %s."
msgstr "El comentario ha sido detectado por %s."
-#: abilities/class-akismet-ability-comment-check.php:191 class.akismet.php:1127
-msgid "Akismet is not configured. Please enter an API key."
-msgstr "Akismet no está configurado. Por favor, introduce una clave de la API."
+#: class.akismet-admin.php:849
+msgid "No comment history."
+msgstr "No hay historial de comentarios."
#: views/enter.php:7
msgid "Enter your API key"
@@ -639,6 +639,10 @@ msgstr "No se han podido recuperar las estadísticas. Vuelve a intentarlo."
msgid "API key must be set to fetch stats."
msgstr "Debe establecerse una clave de la API para recuperar las estadísticas."
+#: views/config.php:216
+msgid "Privacy"
+msgstr "Privacidad"
+
#: views/config.php:235
msgid "Do not display privacy notice."
msgstr "No mostrar el aviso de privacidad."
@@ -651,23 +655,15 @@ msgstr "Muestra un aviso de privacidad debajo de tus formularios de comentario."
msgid "Akismet privacy notice"
msgstr "Aviso de privacidad de Akismet"
-#: views/config.php:216
-msgid "Privacy"
-msgstr "Privacidad"
+#: class.akismet-admin.php:107
+msgid "We collect information about visitors who comment on Sites that use our Akismet Anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter's IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself)."
+msgstr "Recopilamos información sobre los visitantes que comentan en los sitios que usan nuestro servicio anti-spam, Akismet. La información que recopilamos depende de cómo configure Akismet en el sitio el usuario, pero incluye, normalmente, la dirección IP del comentarista, el navegador del usuario, el sitio de referencia y la URL del sitio (además de otra información directamente facilitada por el comentarista, como su nombre, nombre de usuario, dirección de correo electrónico y el mismo comentario)."
#. translators: %s: Akismet privacy URL
#: class.akismet.php:2288
msgid "This site uses Akismet to reduce spam. Learn how your comment data is processed."
msgstr "Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios."
-#: class.akismet-admin.php:107
-msgid "We collect information about visitors who comment on Sites that use our Akismet Anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter's IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself)."
-msgstr "Recopilamos información sobre los visitantes que comentan en los sitios que usan nuestro servicio anti-spam, Akismet. La información que recopilamos depende de cómo configure Akismet en el sitio el usuario, pero incluye, normalmente, la dirección IP del comentarista, el navegador del usuario, el sitio de referencia y la URL del sitio (además de otra información directamente facilitada por el comentarista, como su nombre, nombre de usuario, dirección de correo electrónico y el mismo comentario)."
-
-#: class.akismet.php:632
-msgid "Comment discarded."
-msgstr "Comentario desechado."
-
#: class.akismet-rest-api.php:206
msgid "This site's API key is hardcoded and cannot be deleted."
msgstr "La clave de la API de este sitio está introducida manualmente y no puede borrarse."
@@ -692,6 +688,10 @@ msgstr "Si está en true, muestra el número de comentarios junto al autor de ca
msgid "If true, Akismet will automatically discard the worst spam automatically rather than putting it in the spam folder."
msgstr "Si está en true, Akismet desechará automáticamente el peor spam en vez de ponerlo en la carpeta de spam."
+#: class.akismet.php:632
+msgid "Comment discarded."
+msgstr "Comentario desechado."
+
#: class.akismet-rest-api.php:26 class.akismet-rest-api.php:122
#: class.akismet-rest-api.php:135 class.akismet-rest-api.php:148
msgid "A 12-character Akismet API key. Available at akismet.com/account"
@@ -701,6 +701,10 @@ msgstr "Una clave de la API de Akismet de 12 caracteres. Disponible en akismet.c
msgid "Your site can’t connect to the Akismet servers."
msgstr "Tu sitio no puede conectarse a los servidores de Akismet."
+#: class.akismet-admin.php:298
+msgid "On this page, you are able to update your Akismet settings and view spam stats."
+msgstr "En esta página podrás actualizar tus ajustes de Akismet y ver las estadísticas de spam."
+
#. translators: %s is the wp-config.php file
#: views/predefined.php:7
msgid "An Akismet API key has been defined in the %s file for this site."
@@ -710,9 +714,9 @@ msgstr "Se ha definido una clave API de Akismet en el archivo %s para este sitio
msgid "Manual configuration"
msgstr "Configuración manual"
-#: class.akismet-admin.php:298
-msgid "On this page, you are able to update your Akismet settings and view spam stats."
-msgstr "En esta página podrás actualizar tus ajustes de Akismet y ver las estadísticas de spam."
+#: views/enter.php:10
+msgid "Connect with API key"
+msgstr "Conectar con la clave API"
#. Description of the plugin
#: akismet.php
@@ -724,10 +728,6 @@ msgstr "Utilizado por millones, Akismet es, posiblemente, la mejor manera del mu
msgid "Akismet Anti-spam"
msgstr "Akismet Anti-spam"
-#: views/enter.php:10
-msgid "Connect with API key"
-msgstr "Conectar con la clave API"
-
#: views/setup-jetpack.php:69
msgid "Connect with Jetpack"
msgstr "Conectar con Jetpack"
@@ -736,6 +736,14 @@ msgstr "Conectar con Jetpack"
msgid "Eliminate spam from your site"
msgstr "Elimina el spam de tu sitio."
+#: class.akismet-admin.php:1521
+msgid "Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Your site is fully configured and being protected, even while you sleep."
+msgstr "Utilizado por millones, Akismet es, posiblemente, la mejor manera del mundo de proteger tu blog del spam. Tu sitio está completamente configurado y protegido, incluso mientras duermes."
+
+#: class.akismet-admin.php:1523
+msgid "Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started, just go to your Akismet Settings page to set up your API key."
+msgstr "Utilizado por millones de personas, Akismet es posiblemente la mejor manera de proteger tu blog del spam. Mantiene tu sitio protegido incluso mientras duermes. Para comenzar, sólo ve a tu página de configuración de Akismet y configura tu clave de API."
+
#: views/notice.php:23
msgid "Set up your Akismet account"
msgstr "Configura tu cuenta de Akismet"
@@ -744,14 +752,6 @@ msgstr "Configura tu cuenta de Akismet"
msgid "Statistics"
msgstr "Estadísticas"
-#: class.akismet-admin.php:1523
-msgid "Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started, just go to your Akismet Settings page to set up your API key."
-msgstr "Utilizado por millones de personas, Akismet es posiblemente la mejor manera de proteger tu blog del spam. Mantiene tu sitio protegido incluso mientras duermes. Para comenzar, sólo ve a tu página de configuración de Akismet y configura tu clave de API."
-
-#: class.akismet-admin.php:1521
-msgid "Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Your site is fully configured and being protected, even while you sleep."
-msgstr "Utilizado por millones, Akismet es, posiblemente, la mejor manera del mundo de proteger tu blog del spam. Tu sitio está completamente configurado y protegido, incluso mientras duermes."
-
#. translators: %s: Number of comments.
#: class.akismet-admin.php:1388
msgid "%s comment was caught as spam."
@@ -778,6 +778,11 @@ msgstr "No hay comentarios para comprobar. Akismet solo comprobará los comentar
msgid "Comment not found."
msgstr "Comentario no encontrado."
+#. translators: %d: Comment ID.
+#: class.akismet-cli.php:42
+msgid "Failed to connect to Akismet."
+msgstr "Falló al conectar con Akismet."
+
#. translators: %d: Number of comments.
#: class.akismet-cli.php:89
msgid "%d comment could not be checked."
@@ -792,23 +797,11 @@ msgid_plural "%d comments moved to Spam."
msgstr[0] "%d comentario enviado a Spam."
msgstr[1] "%d comentarios enviados a Spam."
-#. translators: %d: Number of comments.
-#: class.akismet-cli.php:82
-msgid "Processed %d comment."
-msgid_plural "Processed %d comments."
-msgstr[0] "Procesado %d comentario."
-msgstr[1] "Procesados %d comentarios."
-
#. translators: %d: Comment ID.
#: class.akismet-cli.php:45
msgid "Comment #%d could not be checked."
msgstr "El comentario #%d no pudo ser comprobado."
-#. translators: %d: Comment ID.
-#: class.akismet-cli.php:42
-msgid "Failed to connect to Akismet."
-msgstr "Falló al conectar con Akismet."
-
#. translators: %d: Comment ID.
#: class.akismet-cli.php:39
msgid "Comment #%d is not spam."
@@ -819,6 +812,13 @@ msgstr "El comentario #%d no es spam."
msgid "Comment #%d is spam."
msgstr "El comentario #%d es spam."
+#. translators: %d: Number of comments.
+#: class.akismet-cli.php:82
+msgid "Processed %d comment."
+msgid_plural "Processed %d comments."
+msgstr[0] "Procesado %d comentario."
+msgstr[1] "Procesados %d comentarios."
+
#. translators: %s: number of false positive spam flagged by Akismet
#: views/config.php:64
msgid "%s false positive"
@@ -833,31 +833,22 @@ msgid_plural "%s missed spam"
msgstr[0] "%s spam perdido"
msgstr[1] "%s spams perdidos"
-#: views/notice.php:181
-msgid "You don’t have an Akismet plan."
-msgstr "No tienes un plan de Akismet."
+#: views/notice.php:137
+msgid "Your Akismet plan has been cancelled."
+msgstr "Tu plan de Akismet ha sido cancelado."
#: views/notice.php:148
msgid "Your Akismet subscription is suspended."
msgstr "Tu suscripción a Akismet está suspendida."
-#: views/notice.php:137
-msgid "Your Akismet plan has been cancelled."
-msgstr "Tu plan de Akismet ha sido cancelado."
+#: views/notice.php:181
+msgid "You don’t have an Akismet plan."
+msgstr "No tienes un plan de Akismet."
-#. translators: %s: Number of minutes.
-#: class.akismet-admin.php:1284
-msgid "Akismet has saved you %d minute!"
-msgid_plural "Akismet has saved you %d minutes!"
-msgstr[0] "¡Akismet te ha ahorrado %d minuto!"
-msgstr[1] "¡Akismet te ha ahorrado %d minutos!"
-
-#. translators: %s: Number of hours.
-#: class.akismet-admin.php:1281
-msgid "Akismet has saved you %d hour!"
-msgid_plural "Akismet has saved you %d hours!"
-msgstr[0] "¡Akismet te ha ahorrado %d hora!"
-msgstr[1] "¡Akismet te ha ahorrado %d horas!"
+#: class.akismet-admin.php:247 class.akismet-admin.php:285
+#: class.akismet-admin.php:297
+msgid "Akismet filters out spam, so you can focus on more important things."
+msgstr "Akismet filtra el spam para que puedas centrarte en cosas más importantes."
#. translators: %s: Number of days.
#: class.akismet-admin.php:1278
@@ -866,10 +857,23 @@ msgid_plural "Akismet has saved you %s days!"
msgstr[0] "¡Akismet te ha ahorrado %s día!"
msgstr[1] "¡Akismet te ha ahorrado %s días!"
-#: class.akismet-admin.php:247 class.akismet-admin.php:285
-#: class.akismet-admin.php:297
-msgid "Akismet filters out spam, so you can focus on more important things."
-msgstr "Akismet filtra el spam para que puedas centrarte en cosas más importantes."
+#. translators: %s: Number of hours.
+#: class.akismet-admin.php:1281
+msgid "Akismet has saved you %d hour!"
+msgid_plural "Akismet has saved you %d hours!"
+msgstr[0] "¡Akismet te ha ahorrado %d hora!"
+msgstr[1] "¡Akismet te ha ahorrado %d horas!"
+
+#. translators: %s: Number of minutes.
+#: class.akismet-admin.php:1284
+msgid "Akismet has saved you %d minute!"
+msgid_plural "Akismet has saved you %d minutes!"
+msgstr[0] "¡Akismet te ha ahorrado %d minuto!"
+msgstr[1] "¡Akismet te ha ahorrado %d minutos!"
+
+#: views/notice.php:246
+msgid "The API key you entered could not be verified."
+msgstr "La clave de la API que has introducido no ha podido ser verificada."
#. translators: 1: URL, 2: hidden screen-reader text noting the link opens in a
#. new tab.
@@ -877,9 +881,9 @@ msgstr "Akismet filtra el spam para que puedas centrarte en cosas más important
msgid "The connection to akismet.com could not be established. Please refer to our guide about firewalls%2$s and check your server configuration."
msgstr "No se ha podido establecer la conexión con akismet.com. Consulta nuestra guía sobre cortafuegos%2$s y comprueba la configuración del servidor."
-#: views/notice.php:246
-msgid "The API key you entered could not be verified."
-msgstr "La clave de la API que has introducido no ha podido ser verificada."
+#: class.akismet-admin.php:760
+msgid "This comment was reported as not spam."
+msgstr "Se ha informado sobre este comentario como no spam."
#: views/config.php:131
msgid "All systems functional."
@@ -909,99 +913,255 @@ msgstr "Desactivado."
msgid "SSL status"
msgstr "Estado de SSL"
-#: class.akismet-admin.php:760
-msgid "This comment was reported as not spam."
-msgstr "Se ha informado sobre este comentario como no spam."
-
#: class.akismet-admin.php:752
msgid "This comment was reported as spam."
msgstr "Se ha informado sobre este comentario como spam."
-#. Author URI of the plugin
-#: akismet.php
-msgid "https://automattic.com/wordpress-plugins/"
-msgstr "https://automattic.com/wordpress-plugins/"
+#. translators: The Akismet configuration page URL.
+#: class.akismet-admin.php:1146
+msgid "Please check your Akismet configuration and contact your web host if problems persist."
+msgstr "Por favor revisa tu Configuración de Akismet y llama a tu patrocinador de la red si el problema persiste."
+
+#: views/notice.php:34
+msgid "Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later."
+msgstr "Akismet aún no ha filtrado correo no deseado de algunos comentarios y se han retenido para ser revisados y moderados más tarde. "
+
+#: views/config.php:310
+msgid "Cancelled"
+msgstr "Cancelada"
+
+#: views/config.php:312
+msgid "Suspended"
+msgstr "Suspendida."
+
+#: views/config.php:314
+msgid "Missing"
+msgstr "Incompleto"
+
+#: views/config.php:318
+msgid "Active"
+msgstr "Activa."
+
+#: class.akismet-admin.php:310
+msgid "Strictness"
+msgstr "Severidad"
+
+#: class.akismet-admin.php:310
+msgid "Choose to either discard the worst spam automatically or to always put all spam in spam folder."
+msgstr "Elige descartar el correo no deseado automáticamente o ponerlo en el archivo para correo no deseado."
+
+#: views/config.php:175
+msgid "Silently discard the worst and most pervasive spam so I never see it."
+msgstr "Sigilosamente descarta el peor y más ubicuo correo no deseado para no volverlo a ver."
+
+#: views/config.php:183
+msgid "Always put spam in the Spam folder for review."
+msgstr "Traslada siempre el correo no deseado a su archivo para ser revisado."
+
+#: class.akismet-admin.php:309 views/config.php:141
+msgid "Comments"
+msgstr "Comentarios"
+
+#: views/notice.php:223
+msgid "The key you entered is invalid. Please double-check it."
+msgstr "La clave que has introducido no es válida. Por favor compruébala."
+
+#: views/notice.php:110
+msgid "Network functions are disabled."
+msgstr "Las funciones de red están desactivadas."
+
+#: views/notice.php:33 views/notice.php:43
+msgid "Akismet has detected a problem."
+msgstr "Akismet ha detectado un problema."
+
+#: views/enter.php:2
+msgid "Manually enter an API key"
+msgstr "Introduce manualmente un nuevo código API."
+
+#: class.akismet-admin.php:647
+msgid "Awaiting spam check"
+msgstr "Esperando la verificación de correo no deseado"
+
+#: class.akismet-widget.php:17
+msgid "Akismet Widget"
+msgstr "Widget de Akismet"
+
+#: class.akismet-widget.php:18
+msgid "Display the number of spam comments Akismet has caught"
+msgstr "Muestra el número de comentarios de spam que Akismet ha capturado"
+
+#. translators: The placeholder is the number of pieces of spam blocked by
+#. Akismet.
+#: class.akismet-widget.php:157
+msgid "%1$s spam blocked by Akismet"
+msgid_plural "%1$s spam blocked by Akismet"
+msgstr[0] "%1$s mensaje spam bloqueado por Akismet"
+msgstr[1] "%1$s mensajes de spam bloqueados por Akismet"
+
+#: class.akismet-admin.php:150 class.akismet-admin.php:305
+#: class.akismet-admin.php:856 views/config.php:88
+msgid "Settings"
+msgstr "Configuración"
+
+#: class.akismet-admin.php:340
+msgid "Cheatin’ uh?"
+msgstr "¿Haciendo trampa eh?"
+
+#. translators: 1: Akismet website URL, 2: Number of spam comments.
+#: class.akismet-admin.php:442
+msgid "Akismet has protected your site from %2$s spam comment already. "
+msgid_plural "Akismet has protected your site from %2$s spam comments already. "
+msgstr[0] "Akismet ha protegido su sitio de %2$s comentario de spam hasta ahora."
+msgstr[1] "Akismet ha protegido su sitio de %2$s comentarios de spam hasta ahora."
+
+#: class.akismet-admin.php:651
+msgid "Flagged as spam by Akismet"
+msgstr "Marcado como spam por Akismet"
+
+#: class.akismet-admin.php:675
+msgid "History"
+msgstr "Historial"
+
+#: class.akismet-admin.php:421
+msgctxt "comments"
+msgid "Spam"
+msgstr "Spam"
+
+#: class.akismet-admin.php:653
+msgid "Cleared by Akismet"
+msgstr "Borrado por Akismet"
+
+#. translators: %s: Number of comments.
+#: class.akismet-admin.php:701
+msgid "%s approved"
+msgid_plural "%s approved"
+msgstr[0] "%s aprobado"
+msgstr[1] "%s aprobados"
+
+#: class.akismet-admin.php:764
+msgid "Akismet caught this comment as spam during an automatic retry."
+msgstr "Akismet ha realizado una revisión automática y considera que este comentario es spam."
+
+#. translators: The placeholder is a short string (like 'spam' or 'approved')
+#. denoting the new comment status.
+#: class.akismet-admin.php:809
+msgid "Comment status was changed to %s"
+msgstr "El estado del comentario se cambió a %s"
+
+#: class.akismet-admin.php:767
+msgid "Akismet cleared this comment during an automatic retry."
+msgstr "Akismet borró este comentario durante una revisión automática."
+
+#: class.akismet-admin.php:675 class.akismet-admin.php:683
+msgid "View comment history"
+msgstr "Ver historial de comentarios"
+
+#: class.akismet-admin.php:106 class.akismet-admin.php:1538
+msgid "Akismet"
+msgstr "Akismet"
+
+#. translators: %s: Username.
+#: class.akismet-admin.php:659
+msgid "Flagged as spam by %s"
+msgstr "Marcado como spam por %s"
+
+#. translators: %s: Username.
+#: class.akismet-admin.php:662
+msgid "Un-spammed by %s"
+msgstr "Desmarcado como spam por %s"
+
+#: class.akismet-widget.php:31 class.akismet-widget.php:66
+msgid "Spam Blocked"
+msgstr "Spam bloqueado"
+
+#: class.akismet-widget.php:36
+msgid "Title:"
+msgstr "Título:"
+
+#: class.akismet-admin.php:284
+msgid "Akismet Stats"
+msgstr "Estadísticas de Akismet"
+
+#: class.akismet-admin.php:535
+msgid "Check for Spam"
+msgstr "Comprobar la lista de spam"
+
+#. translators: The placeholder is an amount of time, like "7 seconds" or "3
+#. days" returned by the function human_time_diff().
+#: class.akismet-admin.php:829
+msgid "%s ago"
+msgstr "hace %s"
+
+#: views/config.php:339
+msgid "Upgrade"
+msgstr "Actualizar"
+
+#: views/config.php:339
+msgid "Change"
+msgstr "Cambiar"
+
+#: views/notice.php:170
+msgid "There is a problem with your API key."
+msgstr "Hay un problema con tu código."
+
+#: class.akismet-admin.php:731
+msgid "Akismet re-checked and cleared this comment."
+msgstr "Akistmet ha vuelto a comprobar y ha aceptado este comentario."
+
+#: class.akismet-admin.php:728
+msgid "Akismet caught this comment as spam."
+msgstr "Akismet ha considerado este comentario como spam."
+
+#: class.akismet-admin.php:725
+msgid "Akismet re-checked and caught this comment as spam."
+msgstr "Akismet ha vuelto a comprobar este comentario y lo ha considerado como spam."
+
+#: class.akismet-admin.php:734
+msgid "Akismet cleared this comment."
+msgstr "Akismet ha aceptado este comentario."
+
+#. translators: The placeholder is a username.
+#: class.akismet-admin.php:750
+msgid "%s reported this comment as spam."
+msgstr "%s ha informado sobre este comentario como spam."
+
+#. translators: The placeholder is a username.
+#: class.akismet-admin.php:758
+msgid "%s reported this comment as not spam."
+msgstr "%s marcaron este comentario como no spam"
+
+#. translators: The placeholder is an error response returned by the API
+#. server.
+#: class.akismet-admin.php:772
+msgid "Akismet was unable to check this comment (response: %s) but will automatically retry later."
+msgstr "Akismet no ha sido capaz de volver a revisar este comentario (respuesta: %s) pero lo volverá a intentar automáticamente más tarde."
+
+#. translators: %1$s is a username; %2$s is a short string (like 'spam' or
+#. 'approved') denoting the new comment status.
+#: class.akismet-admin.php:815
+msgid "%1$s changed the comment status to %2$s."
+msgstr "%1$s ha cambiado el estado del comentario a %2$s."
+
+#. translators: The placeholder is an error response returned by the API
+#. server.
+#: class.akismet-admin.php:780
+msgid "Akismet was unable to recheck this comment (response: %s)."
+msgstr "Akismet no ha podido volver a comprobar este comentario (respuesta:%s)."
#. Plugin URI of the plugin
#: akismet.php
msgid "https://akismet.com/"
msgstr "https://akismet.com/"
-#: views/enter.php:2
-msgid "Manually enter an API key"
-msgstr "Introduce manualmente un nuevo código API."
+#. Author URI of the plugin
+#: akismet.php
+msgid "https://automattic.com/wordpress-plugins/"
+msgstr "https://automattic.com/wordpress-plugins/"
#: views/notice.php:345
msgid "Contact Akismet support"
msgstr "Contacta con el soporte de Akismet"
-#: views/notice.php:223
-msgid "The key you entered is invalid. Please double-check it."
-msgstr "La clave que has introducido no es válida. Por favor compruébala."
-
-#: views/notice.php:170
-msgid "There is a problem with your API key."
-msgstr "Hay un problema con tu código."
-
-#. translators: 1: URL, 2: hidden screen-reader text noting the link opens in a
-#. new tab.
-#: views/notice.php:130
-msgid "Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to our guide about firewalls%2$s"
-msgstr "Es posible que tu cortafuegos esté bloqueando la conexión de Akismet con su API. Ponte en contacto con tu proveedor de alojamiento y consulta nuestra guía sobre cortafuegos%2$s"
-
-#: views/notice.php:110
-msgid "Network functions are disabled."
-msgstr "Las funciones de red están desactivadas."
-
-#. translators: The placeholder is an error code returned by Akismet.
-#: views/notice.php:83
-msgid "Akismet error code: %s"
-msgstr "Código de error de Akismet: %s"
-
-#: views/notice.php:34
-msgid "Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later."
-msgstr "Akismet aún no ha filtrado correo no deseado de algunos comentarios y se han retenido para ser revisados y moderados más tarde. "
-
-#: views/notice.php:33 views/notice.php:43
-msgid "Akismet has detected a problem."
-msgstr "Akismet ha detectado un problema."
-
-#: views/config.php:339
-msgid "Change"
-msgstr "Cambiar"
-
-#: views/config.php:339
-msgid "Upgrade"
-msgstr "Actualizar"
-
-#: views/config.php:324
-msgid "Next billing date"
-msgstr "Siguiente fecha de pago"
-
-#: views/config.php:318
-msgid "Active"
-msgstr "Activa."
-
-#: views/config.php:316
-msgid "No subscription found"
-msgstr "No se ha encontrado ninguna suscripción"
-
-#: views/config.php:314
-msgid "Missing"
-msgstr "Incompleto"
-
-#: views/config.php:312
-msgid "Suspended"
-msgstr "Suspendida."
-
-#: views/config.php:310
-msgid "Cancelled"
-msgstr "Cancelada"
-
-#: views/config.php:286
-msgid "Save changes"
-msgstr "Guardar los cambios"
-
#: views/config.php:278
msgid "Disconnect this account"
msgstr "Desconectar esta cuenta"
@@ -1010,22 +1170,6 @@ msgstr "Desconectar esta cuenta"
msgid "Note:"
msgstr "Nota:"
-#: views/config.php:183
-msgid "Always put spam in the Spam folder for review."
-msgstr "Traslada siempre el correo no deseado a su archivo para ser revisado."
-
-#: views/config.php:175
-msgid "Silently discard the worst and most pervasive spam so I never see it."
-msgstr "Sigilosamente descarta el peor y más ubicuo correo no deseado para no volverlo a ver."
-
-#: views/config.php:169
-msgid "Akismet Anti-spam strictness"
-msgstr "Severidad Anti-spam de Akismet"
-
-#: views/config.php:156
-msgid "Show the number of approved comments beside each comment author."
-msgstr "Muestra el número de comentarios aprobados al lado de cada autor de comentarios"
-
#: views/config.php:57
msgid "Accuracy"
msgstr "Precisión"
@@ -1049,150 +1193,10 @@ msgstr "Los últimos seis meses"
msgid "Please upgrade WordPress to a current version, or downgrade to version 2.4 of the Akismet plugin."
msgstr "Por favor, actualiza WordPress a una versión actualizada o instala la versión 2.4 del plugin Akismet."
-#. translators: 1: Current Akismet version number, 2: Minimum WordPress version
-#. number required.
-#: class.akismet.php:2101
-msgid "Akismet %1$s requires WordPress %2$s or higher."
-msgstr "Akismet %1$s necesita WordPress %2$s o superior."
-
-#: class.akismet-admin.php:767
-msgid "Akismet cleared this comment during an automatic retry."
-msgstr "Akismet borró este comentario durante una revisión automática."
-
-#: class.akismet-admin.php:764
-msgid "Akismet caught this comment as spam during an automatic retry."
-msgstr "Akismet ha realizado una revisión automática y considera que este comentario es spam."
-
-#. translators: The placeholder is a username.
-#: class.akismet-admin.php:758
-msgid "%s reported this comment as not spam."
-msgstr "%s marcaron este comentario como no spam"
-
-#. translators: The placeholder is a username.
-#: class.akismet-admin.php:750
-msgid "%s reported this comment as spam."
-msgstr "%s ha informado sobre este comentario como spam."
-
-#. translators: %1$s is a username; %2$s is a short string (like 'spam' or
-#. 'approved') denoting the new comment status.
-#: class.akismet-admin.php:815
-msgid "%1$s changed the comment status to %2$s."
-msgstr "%1$s ha cambiado el estado del comentario a %2$s."
-
-#. translators: The placeholder is an error response returned by the API
-#. server.
-#: class.akismet-admin.php:772
-msgid "Akismet was unable to check this comment (response: %s) but will automatically retry later."
-msgstr "Akismet no ha sido capaz de volver a revisar este comentario (respuesta: %s) pero lo volverá a intentar automáticamente más tarde."
-
-#: class.akismet-admin.php:734
-msgid "Akismet cleared this comment."
-msgstr "Akismet ha aceptado este comentario."
-
-#. translators: The placeholder is a short string (like 'spam' or 'approved')
-#. denoting the new comment status.
-#: class.akismet-admin.php:809
-msgid "Comment status was changed to %s"
-msgstr "El estado del comentario se cambió a %s"
-
-#: class.akismet-admin.php:728
-msgid "Akismet caught this comment as spam."
-msgstr "Akismet ha considerado este comentario como spam."
-
-#. translators: The placeholder is the number of pieces of spam blocked by
-#. Akismet.
-#: class.akismet-widget.php:157
-msgid "%1$s spam blocked by Akismet"
-msgid_plural "%1$s spam blocked by Akismet"
-msgstr[0] "%1$s mensaje spam bloqueado por Akismet"
-msgstr[1] "%1$s mensajes de spam bloqueados por Akismet"
-
-#: class.akismet-widget.php:36
-msgid "Title:"
-msgstr "Título:"
-
-#: class.akismet-widget.php:31 class.akismet-widget.php:66
-msgid "Spam Blocked"
-msgstr "Spam bloqueado"
-
-#: class.akismet-widget.php:18
-msgid "Display the number of spam comments Akismet has caught"
-msgstr "Muestra el número de comentarios de spam que Akismet ha capturado"
-
-#: class.akismet-widget.php:17
-msgid "Akismet Widget"
-msgstr "Widget de Akismet"
-
#: class.akismet-admin.php:1274
msgid "Cleaning up spam takes time."
msgstr "Limpiar el spam lleva su tiempo."
-#. translators: The Akismet configuration page URL.
-#: class.akismet-admin.php:1146
-msgid "Please check your Akismet configuration and contact your web host if problems persist."
-msgstr "Por favor revisa tu Configuración de Akismet y llama a tu patrocinador de la red si el problema persiste."
-
-#. translators: The placeholder is an amount of time, like "7 seconds" or "3
-#. days" returned by the function human_time_diff().
-#: class.akismet-admin.php:829
-msgid "%s ago"
-msgstr "hace %s"
-
-#. translators: %s: Number of comments.
-#: class.akismet-admin.php:701
-msgid "%s approved"
-msgid_plural "%s approved"
-msgstr[0] "%s aprobado"
-msgstr[1] "%s aprobados"
-
-#: class.akismet-admin.php:675
-msgid "History"
-msgstr "Historial"
-
-#: class.akismet-admin.php:675 class.akismet-admin.php:683
-msgid "View comment history"
-msgstr "Ver historial de comentarios"
-
-#. translators: %s: Username.
-#: class.akismet-admin.php:662
-msgid "Un-spammed by %s"
-msgstr "Desmarcado como spam por %s"
-
-#. translators: %s: Username.
-#: class.akismet-admin.php:659
-msgid "Flagged as spam by %s"
-msgstr "Marcado como spam por %s"
-
-#: class.akismet-admin.php:653
-msgid "Cleared by Akismet"
-msgstr "Borrado por Akismet"
-
-#: class.akismet-admin.php:651
-msgid "Flagged as spam by Akismet"
-msgstr "Marcado como spam por Akismet"
-
-#: class.akismet-admin.php:647
-msgid "Awaiting spam check"
-msgstr "Esperando la verificación de correo no deseado"
-
-#. translators: The placeholder is an error response returned by the API
-#. server.
-#: class.akismet-admin.php:780
-msgid "Akismet was unable to recheck this comment (response: %s)."
-msgstr "Akismet no ha podido volver a comprobar este comentario (respuesta:%s)."
-
-#: class.akismet-admin.php:731
-msgid "Akismet re-checked and cleared this comment."
-msgstr "Akistmet ha vuelto a comprobar y ha aceptado este comentario."
-
-#: class.akismet-admin.php:725
-msgid "Akismet re-checked and caught this comment as spam."
-msgstr "Akismet ha vuelto a comprobar este comentario y lo ha considerado como spam."
-
-#: class.akismet-admin.php:535
-msgid "Check for Spam"
-msgstr "Comprobar la lista de spam"
-
#. translators: %s: Comments page URL.
#: class.akismet-admin.php:472
msgid "There’s nothing in your spam queue at the moment."
@@ -1210,13 +1214,6 @@ msgstr[1] "Ahora mismo hay %1$s comentarios en tu cola de s
msgid "Akismet blocks spam from getting to your blog. "
msgstr "Akismet bloquea el spam que aparezca en tu blog. "
-#. translators: 1: Akismet website URL, 2: Number of spam comments.
-#: class.akismet-admin.php:442
-msgid "Akismet has protected your site from %2$s spam comment already. "
-msgid_plural "Akismet has protected your site from %2$s spam comments already. "
-msgstr[0] "Akismet ha protegido su sitio de %2$s comentario de spam hasta ahora."
-msgstr[1] "Akismet ha protegido su sitio de %2$s comentarios de spam hasta ahora."
-
#. translators: 1: Akismet website URL, 2: Comments page URL, 3: Number of spam
#. comments.
#: class.akismet-admin.php:425
@@ -1225,15 +1222,6 @@ msgid_plural "Akismet has protected your site from Akismet ha protegido tu sitio de %3$s comentario spam."
msgstr[1] "Akismet ha protegido tu sitio de %3$s comentarios spam."
-#: class.akismet-admin.php:421
-msgctxt "comments"
-msgid "Spam"
-msgstr "Spam"
-
-#: class.akismet-admin.php:340
-msgid "Cheatin’ uh?"
-msgstr "¿Haciendo trampa eh?"
-
#: class.akismet-admin.php:334
msgid "Akismet Support"
msgstr "Soporte de Akismet"
@@ -1250,10 +1238,6 @@ msgstr "Para más información:"
msgid "The subscription status - active, cancelled or suspended"
msgstr "Estado de la suscripción - activo, cancelado o suspendido"
-#: class.akismet-admin.php:322 views/config.php:306
-msgid "Status"
-msgstr "Estado"
-
#: class.akismet-admin.php:321
msgid "The Akismet subscription plan"
msgstr "El plan de suscripción de Akismet"
@@ -1262,34 +1246,14 @@ msgstr "El plan de suscripción de Akismet"
msgid "Subscription Type"
msgstr "Tipo de suscripción"
-#: class.akismet-admin.php:318 views/config.php:297
-msgid "Account"
-msgstr "Cuenta"
-
-#: class.akismet-admin.php:310
-msgid "Choose to either discard the worst spam automatically or to always put all spam in spam folder."
-msgstr "Elige descartar el correo no deseado automáticamente o ponerlo en el archivo para correo no deseado."
-
-#: class.akismet-admin.php:310
-msgid "Strictness"
-msgstr "Severidad"
-
#: class.akismet-admin.php:309
msgid "Show the number of approved comments beside each comment author in the comments list page."
msgstr "Muestra el número de comentarios aprobados al lado de cada autor de comentarios en la página de listado de comentarios."
-#: class.akismet-admin.php:309 views/config.php:141
-msgid "Comments"
-msgstr "Comentarios"
-
#: class.akismet-admin.php:308
msgid "Enter/remove an API key."
msgstr "Introducir/eliminar la clave de la API."
-#: class.akismet-admin.php:308
-msgid "API Key"
-msgstr "Clave API"
-
#: class.akismet-admin.php:296 class.akismet-admin.php:307
#: class.akismet-admin.php:320
msgid "Akismet Configuration"
@@ -1299,10 +1263,6 @@ msgstr "Configuración de Akismet"
msgid "On this page, you are able to view stats on spam filtered on your site."
msgstr "En esta página puedes ver las estadísticas del spam filtrado en tu sitio."
-#: class.akismet-admin.php:284
-msgid "Akismet Stats"
-msgstr "Estadísticas de Akismet"
-
#: class.akismet-admin.php:273
msgid "Click the Use this Key button."
msgstr "Haz clic para utilizar este botón de clave."
@@ -1366,14 +1326,54 @@ msgstr "Eliminando..."
msgid "Remove this URL"
msgstr "Eliminar esta URL"
-#: class.akismet-admin.php:106 class.akismet-admin.php:1538
-msgid "Akismet"
-msgstr "Akismet"
+#: class.akismet-admin.php:318 views/config.php:297
+msgid "Account"
+msgstr "Cuenta"
-#: class.akismet-admin.php:150 class.akismet-admin.php:305
-#: class.akismet-admin.php:856 views/config.php:88
-msgid "Settings"
-msgstr "Configuración"
+#: class.akismet-admin.php:322 views/config.php:306
+msgid "Status"
+msgstr "Estado"
+
+#: class.akismet-admin.php:308
+msgid "API Key"
+msgstr "Clave API"
+
+#. translators: The placeholder is an error code returned by Akismet.
+#: views/notice.php:83
+msgid "Akismet error code: %s"
+msgstr "Código de error de Akismet: %s"
+
+#: views/config.php:324
+msgid "Next billing date"
+msgstr "Siguiente fecha de pago"
+
+#: views/config.php:316
+msgid "No subscription found"
+msgstr "No se ha encontrado ninguna suscripción"
+
+#: views/config.php:286
+msgid "Save changes"
+msgstr "Guardar los cambios"
+
+#: views/config.php:169
+msgid "Akismet Anti-spam strictness"
+msgstr "Severidad Anti-spam de Akismet"
+
+#: views/config.php:156
+msgid "Show the number of approved comments beside each comment author."
+msgstr "Muestra el número de comentarios aprobados al lado de cada autor de comentarios"
+
+#. translators: 1: Current Akismet version number, 2: Minimum WordPress version
+#. number required.
+#: class.akismet.php:2101
+msgid "Akismet %1$s requires WordPress %2$s or higher."
+msgstr "Akismet %1$s necesita WordPress %2$s o superior."
+
+#. translators: 1: URL, 2: hidden screen-reader text noting the link opens in a
+#. new tab.
+#: views/notice.php:130
+msgid "Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to our guide about firewalls%2$s"
+msgstr "Es posible que tu cortafuegos esté bloqueando la conexión de Akismet con su API. Ponte en contacto con tu proveedor de alojamiento y consulta nuestra guía sobre cortafuegos%2$s"
#: class.akismet-admin.php:103
msgid "Comment History"
diff --git a/wp-content/plugins/seo-by-rank-math/includes/cli/class-commands.php b/wp-content/plugins/seo-by-rank-math/includes/cli/class-commands.php
index 2105ddc..8338734 100644
--- a/wp-content/plugins/seo-by-rank-math/includes/cli/class-commands.php
+++ b/wp-content/plugins/seo-by-rank-math/includes/cli/class-commands.php
@@ -13,8 +13,6 @@ namespace RankMath\CLI;
use WP_CLI;
use WP_CLI_Command;
use RankMath\Helper;
-use RankMath\Sitemap\Cache;
-use RankMath\Sitemap\Sitemap_XML;
defined( 'ABSPATH' ) || exit;
@@ -35,10 +33,6 @@ class Commands extends WP_CLI_Command {
return;
}
- Cache::invalidate_storage();
- $generator = new Sitemap_XML( '1' );
- $generator->get_output();
-
- WP_CLI::success( 'Sitemap generated.' );
+ ( new Sitemap_WPCLI() )->cache_sitemaps();
}
}
diff --git a/wp-content/plugins/seo-by-rank-math/includes/cli/class-sitemap-wpcli.php b/wp-content/plugins/seo-by-rank-math/includes/cli/class-sitemap-wpcli.php
new file mode 100644
index 0000000..23ae4b3
--- /dev/null
+++ b/wp-content/plugins/seo-by-rank-math/includes/cli/class-sitemap-wpcli.php
@@ -0,0 +1,225 @@
+
+ */
+
+namespace RankMath\CLI;
+
+use WP_CLI;
+use RankMath\Traits\Hooker;
+use RankMath\Sitemap\Cache;
+
+defined( 'ABSPATH' ) || exit;
+
+/**
+ * Class Sitemap_WPCLI.
+ * Generate sitemap cache files via CLI.
+ *
+ * Better used with the filter add_filter( 'rank_math/sitemap/invalidate_storage', '__return_false' );
+ * so cache files are only deleted and regenerated via WP CLI
+ */
+class Sitemap_WPCLI extends \RankMath\Sitemap\Generator {
+ use Hooker;
+
+ /**
+ * Sitemap cache instance.
+ *
+ * @var Cache
+ */
+ private $cache;
+
+ /**
+ * Number of sitemaps that could not be generated.
+ *
+ * @var int
+ */
+ private $failed = 0;
+
+ /**
+ * Holds index pages discovered through the sitemap/index/entry filter.
+ * In the form of type (eg post) -> object type (eg product) -> index count.
+ *
+ * @var array
+ */
+ public $index_counts = [];
+
+ /**
+ * Disable sitemap redirection.
+ *
+ * Sitemap providers call Sitemap::maybe_redirect() while building links, which
+ * redirects and die()s on the front-end. That must never happen under WP-CLI.
+ *
+ * @return false
+ */
+ public function disable_redirect() {
+ return false;
+ }
+
+ /**
+ * Force cache invalidation.
+ *
+ * Sites are advised to disable automatic invalidation via
+ * `rank_math/sitemap/invalidate_storage` so caches are only rebuilt from here.
+ * This runs at PHP_INT_MAX so it reliably wins over such a filter regardless of
+ * the priority it was registered at.
+ *
+ * @param bool $invalidate Whether to invalidate storage.
+ * @param null|string $type Type of storage to invalidate.
+ *
+ * @return true
+ */
+ public function invalidate_storage( $invalidate, $type ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
+ return true;
+ }
+
+ /**
+ * Cache sitemaps.
+ *
+ * @return void
+ */
+ public function cache_sitemaps() {
+ $this->filter( 'rank_math/sitemap/invalidate_storage', 'invalidate_storage', PHP_INT_MAX, 2 );
+ try {
+ Cache::invalidate_storage();
+ } finally {
+ $this->remove_filter( 'rank_math/sitemap/invalidate_storage', 'invalidate_storage', PHP_INT_MAX );
+ }
+
+ $this->filter( 'rank_math/sitemap/maybe_redirect', 'disable_redirect' );
+ $this->filter( 'rank_math/sitemap/index/entry', 'get_indexes_listener', 100, 3 );
+ try {
+ $this->generate_sitemaps();
+ } finally {
+ $this->remove_filter( 'rank_math/sitemap/maybe_redirect', 'disable_redirect' );
+ $this->remove_filter( 'rank_math/sitemap/index/entry', 'get_indexes_listener', 100 );
+ }
+ }
+
+ /**
+ * Checks whether a sitemap can be built for the given object type.
+ *
+ * A type is buildable when a provider claims it through handles_type() - the
+ * canonical check used everywhere else in the sitemap code, which already accounts
+ * for filtered slugs and per-type settings - or when it is contributed purely
+ * through the `sitemap/{$type}/content` filter, as the Local SEO KML sitemap is.
+ *
+ * @param string $object_type The object type to check, eg product or local.
+ *
+ * @return bool
+ */
+ protected function is_buildable_type( $object_type ) {
+ foreach ( $this->providers as $provider ) {
+ if ( $provider->handles_type( $object_type ) ) {
+ return true;
+ }
+ }
+
+ return has_filter( "rank_math/sitemap/{$object_type}/content" );
+ }
+
+ /**
+ * Listens to the sitemap/index/entry hook and records how many index pages each
+ * object type has, so the matching sitemaps can be generated afterwards.
+ *
+ * Providers do not pass a uniform third argument: post and taxonomy pass the object
+ * type as a string, author passes a WP_User, video passes an array, while news and
+ * the Local SEO KML file pass nothing at all. Anything that is not a usable string
+ * falls back to the provider type, which is also the sitemap slug for those cases.
+ *
+ * @param array $item The index URL entry.
+ * @param string $type The provider type, eg post or term.
+ * @param mixed $object_type The object type, eg product or category. Not always a string.
+ *
+ * @return array
+ */
+ public function get_indexes_listener( $item, $type = '', $object_type = null ) {
+ $type = 'term' === $type ? 'taxonomy' : $type;
+
+ if ( ! is_string( $object_type ) || '' === $object_type ) {
+ $object_type = $type;
+ }
+
+ if ( '' === $object_type ) {
+ return $item;
+ }
+
+ if ( ! isset( $this->index_counts[ $type ][ $object_type ] ) ) {
+ $this->index_counts[ $type ][ $object_type ] = 1;
+ } else {
+ ++$this->index_counts[ $type ][ $object_type ];
+ }
+
+ return $item;
+ }
+
+ /**
+ * Generates sitemaps and adds related cache files.
+ *
+ * @return void
+ */
+ public function generate_sitemaps() {
+ $this->cache = new Cache();
+ $this->failed = 0;
+ $total_files = 0;
+
+ try {
+ // Saves the rootmap i.e sitemap_index.xml.
+ $total_files += $this->store( '1', 1, 'index' );
+
+ foreach ( $this->index_counts as $items ) {
+ foreach ( $items as $object_type => $count ) {
+ if ( ! $this->is_buildable_type( $object_type ) ) {
+ WP_CLI::warning( sprintf( 'Nothing can build a sitemap for "%s", skipping.', $object_type ) );
+ continue;
+ }
+
+ $pages = max( 1, $count );
+ for ( $page = 1; $page <= $pages; $page++ ) {
+ $total_files += $this->store( $object_type, $page, $object_type );
+ }
+ }
+ }
+ } catch ( \Throwable $ex ) {
+ WP_CLI::error( $ex->getMessage() );
+ }
+
+ if ( $this->failed > 0 ) {
+ WP_CLI::error( sprintf( 'Generated %d sitemap cache file(s), %d failed.', $total_files, $this->failed ) );
+ }
+
+ WP_CLI::success( sprintf( 'Generated %d sitemap cache file(s).', $total_files ) );
+ }
+
+ /**
+ * Builds a single sitemap and writes it to the cache.
+ *
+ * @param string $type Sitemap type, or '1' for the index sitemap.
+ * @param int $page Page number to generate.
+ * @param string $label Human readable name used in the CLI output.
+ *
+ * @return int 1 when the sitemap was stored, 0 otherwise.
+ */
+ private function store( $type, $page, $label ) {
+ $sitemap = $this->get_output( $type, $page );
+ if ( '' === $sitemap ) {
+ WP_CLI::warning( sprintf( 'Empty output for "%s" page %d, nothing cached.', $label, $page ) );
+ ++$this->failed;
+ return 0;
+ }
+
+ if ( false === $this->cache->store_sitemap( $type, $page, $sitemap ) ) {
+ WP_CLI::warning( sprintf( 'Could not cache "%s" page %d.', $label, $page ) );
+ ++$this->failed;
+ return 0;
+ }
+
+ WP_CLI::log( sprintf( 'Generated sitemap for %s, page %d.', $label, $page ) );
+
+ return 1;
+ }
+}
diff --git a/wp-content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php b/wp-content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php
index f827ab2..438d6fa 100644
--- a/wp-content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php
+++ b/wp-content/plugins/seo-by-rank-math/includes/helpers/class-wordpress.php
@@ -830,10 +830,12 @@ trait WordPress {
* @return array
*/
public static function filetype_and_ext( $types, $file, $filename ) {
- if ( false !== strpos( $filename, '.json' ) ) {
+ // Validate the real trailing extension so names like `file.json.php` are rejected.
+ $extension = strtolower( pathinfo( $filename, PATHINFO_EXTENSION ) );
+ if ( 'json' === $extension ) {
$types['ext'] = 'json';
$types['type'] = 'application/json';
- } elseif ( false !== strpos( $filename, '.txt' ) ) {
+ } elseif ( 'txt' === $extension ) {
$types['ext'] = 'txt';
$types['type'] = 'text/plain';
}
diff --git a/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-db.php b/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-db.php
index ab27135..3ef494c 100644
--- a/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-db.php
+++ b/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-db.php
@@ -439,6 +439,9 @@ class DB {
return '';
}
+ $host = Helper::get_home_url();
+ $url = str_replace( $host, '', $url );
+
$url = urldecode( preg_replace( '/#.*$/', '', $url ) );
$url = self::remove_hash( $url );
@@ -446,22 +449,18 @@ class DB {
// Parse the URL to get the path component.
$parsed_url = wp_parse_url( $url );
if ( isset( $parsed_url['path'] ) ) {
- return $parsed_url['path'];
+ $page = $parsed_url['path'];
+ } else {
+ // Remove ASCII domain. idn_to_ascii() needs ext-intl, which isn't
+ // guaranteed to be installed on every host — fall back to the
+ // unconverted host rather than fatal-erroring when it's missing.
+ $host_ascii = function_exists( 'idn_to_ascii' ) ? idn_to_ascii( $host ) : $host;
+ $url = str_replace( $host_ascii, '', $url );
+
+ $page = preg_replace( '#^https?://(www\.)?#i', '', $url );
}
- // Fallback: try to extract path by removing domain.
- $host = Helper::get_home_url();
- $url = str_replace( $host, '', $url );
-
- // Remove ASCII domain. idn_to_ascii() needs ext-intl, which isn't
- // guaranteed to be installed on every host — fall back to the
- // unconverted host rather than fatal-erroring when it's missing.
- $host_ascii = function_exists( 'idn_to_ascii' ) ? idn_to_ascii( $host ) : $host;
- $url = str_replace( $host_ascii, '', $url );
-
- $url = preg_replace( '#^https?://(www\.)?#i', '', $url );
-
- return apply_filters( 'rank_math/analytics/get_page', $url );
+ return apply_filters( 'rank_math/analytics/get_page', $page );
}
/**
diff --git a/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-objects.php b/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-objects.php
index 3852d76..ab24235 100644
--- a/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-objects.php
+++ b/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-objects.php
@@ -61,8 +61,9 @@ class Objects extends Summary {
'noData' => $request->get_param( 'noData' ),
];
$field_name = 'seo_score';
- $per_page = $request->get_param( 'per_page' ) ? sanitize_text_field( $request->get_param( 'per_page' ) ) : 25;
- $offset = ( sanitize_text_field( $request->get_param( 'page' ) ) - 1 ) * $per_page;
+ $per_page = absint( $request->get_param( 'per_page' ) );
+ $per_page = $per_page ? min( $per_page, 100 ) : 25;
+ $offset = ( max( 1, absint( $request->get_param( 'page' ) ) ) - 1 ) * $per_page;
// Construct SQL condition based on filter parameters.
$conditions = [];
diff --git a/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/rest/class-rest.php b/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/rest/class-rest.php
index 2119a98..c816306 100644
--- a/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/rest/class-rest.php
+++ b/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/rest/class-rest.php
@@ -48,6 +48,20 @@ class Rest extends WP_REST_Controller {
],
'postsRowsByObjects' => [
'callback' => [ Stats::get(), 'get_posts_rows_by_objects' ],
+ 'args' => [
+ 'page' => [
+ 'description' => esc_html__( 'Page number.', 'seo-by-rank-math' ),
+ 'type' => 'integer',
+ 'required' => false,
+ 'sanitize_callback' => 'absint',
+ ],
+ 'per_page' => [
+ 'description' => esc_html__( 'Results per page.', 'seo-by-rank-math' ),
+ 'type' => 'integer',
+ 'required' => false,
+ 'sanitize_callback' => 'absint',
+ ],
+ ],
],
'post/(?P. + echo '', htmlspecialchars( print_r( $this->value, true ), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8' ), ''; } } @@ -476,6 +477,10 @@ class CMB2_Display_File_List extends CMB2_Display_File { echo '