WordPress 7.1.3
This commit is contained in:
@@ -61,6 +61,31 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<div class="about__section changelog has-subtle-background-color">
|
||||
<div class="column">
|
||||
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
|
||||
_n(
|
||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
|
||||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
|
||||
4
|
||||
),
|
||||
'7.1.3',
|
||||
'4'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL. */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '7.1.3' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
|
||||
@@ -183,11 +183,15 @@ function export_wp( $args = array() ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Cast thumbnail IDs to integers to prevent second-order SQL injection via user-controlled meta values.
|
||||
$thumbnails_ids = array_filter( array_map( 'absint', $thumbnails_ids ) );
|
||||
|
||||
$additional_ids = array_merge( $additional_ids, $attachment_ids, $thumbnails_ids );
|
||||
}
|
||||
|
||||
// Merge the additional IDs back with the original post IDs after processing all posts
|
||||
$post_ids = array_unique( array_merge( $post_ids, $additional_ids ) );
|
||||
// Merge the additional IDs back with the original post IDs after processing all posts.
|
||||
// Cast to integers as defense-in-depth, since $additional_ids may include values sourced from postmeta.
|
||||
$post_ids = array_unique( array_map( 'absint', array_merge( $post_ids, $additional_ids ) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -597,8 +601,10 @@ function export_wp( $args = array() ) {
|
||||
|
||||
// Fetch 20 posts at a time rather than loading the entire table into memory.
|
||||
while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) {
|
||||
$where = 'WHERE ID IN (' . implode( ',', $next_posts ) . ')';
|
||||
$posts = $wpdb->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 ) {
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -190,67 +190,67 @@ msgctxt "label for responsive previews group"
|
||||
msgid "Responsive Views"
|
||||
msgstr "Vistas adaptables"
|
||||
|
||||
#: wp-admin/about.php:199
|
||||
#: wp-admin/about.php:224
|
||||
msgid "WordPress 7.1 continues to polish accessibility across WordPress Core and Gutenberg, advancing the goals to meet accessibility standards. In this release, high impact changes include the new accessible tooltips API, improved predictability for screen readers, and improved labeling in many places in the admin. The editor adds extensive improvements to navigation and interaction."
|
||||
msgstr "WordPress 7.1 sigue puliendo la accesibilidad en el núcleo de WordPress y Gutenberg, avanzando en los objetivos para cumplir con los estándares de accesibilidad. En esta versión, los cambios de gran impacto incluyen la nueva API de información emergente accesible, una mejor previsibilidad para los lectores de pantalla y un etiquetado mejorado en muchos lugares de la administración. El editor añade mejoras extensas en la navegación y la interacción."
|
||||
|
||||
#: wp-admin/about.php:190
|
||||
#: wp-admin/about.php:215
|
||||
msgid "Image compression, resizing, and thumbnail generation now happen in the browser, via a WebAssembly build of libvips, so large uploads won’t hit PHP memory limits or time out on shared hosts. This also frees up server CPU and memory, while producing smaller files for visitors. Media handling includes built-in support for AVIF, HEIC and HDR gain maps."
|
||||
msgstr "La compresión de imágenes, el redimensionado y la generación de miniaturas ahora se realizan en el navegador, mediante una compilación de libvips en WebAssembly, por lo que las subidas grandes no alcanzarán los límites de memoria de PHP ni agotarán el tiempo de espera en servidores compartidos. Esto también libera CPU y memoria del servidor, a la vez que genera archivos más pequeños para los visitantes. El manejo de medios incluye compatibilidad nativa con AVIF, HEIC y mapas de ganancia HDR."
|
||||
|
||||
#: wp-admin/about.php:189
|
||||
#: wp-admin/about.php:214
|
||||
msgid "Improved media handling"
|
||||
msgstr "Gestión de medios mejorada"
|
||||
|
||||
#: wp-admin/about.php:174
|
||||
#: wp-admin/about.php:199
|
||||
msgid "Notes now support rich text and @mentions. Add bold, italic, code, and links so feedback reads clearly. Type “@” to pull up a list of collaborators to tag the right person directly, with built-in email notifications. Leave a note on a specific text selection instead of an entire block. Start more than one conversation on the same block. Collapse long notes to keep the margin tidy."
|
||||
msgstr "Las notas ahora admiten texto enriquecido y menciones con @. Añade negritas, cursivas, código y enlaces para que los comentarios se lean con claridad. Escribe \"@\" para que aparezca una lista de colaboradores y así etiquetar directamente a la persona adecuada, con avisos por correo electrónico integrados. Deja una nota en una selección de texto específica en lugar de en todo un bloque. Inicia más de una conversación en el mismo bloque. Colapsa las notas largas para mantener ordenado el margen."
|
||||
|
||||
#: wp-admin/about.php:173
|
||||
#: wp-admin/about.php:198
|
||||
msgid "More ways to leave feedback."
|
||||
msgstr "Más formas para enviar comentarios."
|
||||
|
||||
#: wp-admin/about.php:171
|
||||
#: wp-admin/about.php:196
|
||||
msgid "Inline notes with mentions and rich text"
|
||||
msgstr "Notas integradas, con menciones y texto enriquecido"
|
||||
|
||||
#: wp-admin/about.php:154
|
||||
#: wp-admin/about.php:179
|
||||
msgid "A new media editor modal replaces the old inline cropping tool, bringing freeform and aspect-ratio cropping, flip, precise rotation, and metadata editing together in a single streamlined workflow. The familiar Crop button still gets you there, now opening a dedicated space to crop, rotate, and adjust images before publishing."
|
||||
msgstr "Un nuevo emergente de editor de medios reemplaza la antigua herramienta de recorte en línea, y reúne el recorte de forma libre y por relación de aspecto, el volteo, la rotación precisa y la edición de metadatos en un único flujo de trabajo optimizado. El conocido botón de recortar sigue llevándote allí, y ahora abre un espacio dedicado para recortar, rotar y ajustar las imágenes antes de publicarlas."
|
||||
|
||||
#: wp-admin/about.php:153
|
||||
#: wp-admin/about.php:178
|
||||
msgid "One dedicated workflow for editing your images."
|
||||
msgstr "Un flujo de trabajo dedicado a editar tus imágenes."
|
||||
|
||||
#: wp-admin/about.php:151
|
||||
#: wp-admin/about.php:176
|
||||
msgid "A new way to crop"
|
||||
msgstr "Una nueva forma de recortar."
|
||||
|
||||
#: wp-admin/about.php:144
|
||||
#: wp-admin/about.php:169
|
||||
msgid "The admin bar now stays with you across all editors, so you always know where you are. The admin bar also gets a small visual refresh."
|
||||
msgstr "La barra de administración ahora te acompaña en todos los editores, para que siempre sepas dónde estás. Además, la barra de administración recibe un pequeño lavado de cara visual."
|
||||
|
||||
#: wp-admin/about.php:143
|
||||
#: wp-admin/about.php:168
|
||||
msgid "Consistent navigation, from dashboard to editor."
|
||||
msgstr "Navegación coherente, del Escritorio al editor."
|
||||
|
||||
#: wp-admin/about.php:141
|
||||
#: wp-admin/about.php:166
|
||||
msgid "Admin bar, now in every editor"
|
||||
msgstr "Barra de administración, ahora en todos los editores."
|
||||
|
||||
#: wp-admin/about.php:124
|
||||
#: wp-admin/about.php:149
|
||||
msgid "WordPress 7.1 takes a major step toward built-in responsive design. Set how a block looks at different screen sizes directly in the editor, for both Global Styles and individual blocks, all without writing custom CSS."
|
||||
msgstr "WordPress 7.1 da un paso importante hacia el diseño adaptable integrado. Puedes establecer cómo se ve un bloque en diferentes tamaños de pantalla directamente en el editor, tanto para los estilos globales como para los bloques individuales, todo sin necesidad de escribir CSS personalizado."
|
||||
|
||||
#: wp-admin/about.php:123
|
||||
#: wp-admin/about.php:148
|
||||
msgid "Style content your way, on every screen."
|
||||
msgstr "Dale tu estilo al contenido, en todas las pantallas."
|
||||
|
||||
#: wp-admin/about.php:121
|
||||
#: wp-admin/about.php:146
|
||||
msgid "Apply responsive styles"
|
||||
msgstr "Aplica estilos adaptables"
|
||||
|
||||
#: wp-admin/about.php:115
|
||||
#: wp-admin/about.php:140
|
||||
msgid "WordPress 7.1 makes styling and collaborating easier. Style how all blocks look across screen sizes and how the Button block responds to hover, focus, and active states, all without writing custom CSS. A streamlined media editor brings cropping, rotation, and metadata editing together in one workflow. Notes now support rich text and @mentions, and the admin bar travels with you into every editor, so the tools you rely on stay with you wherever you’re working."
|
||||
msgstr "WordPress 7.1 facilita el diseño y la colaboración. Puedes definir cómo se ven todos los bloques en diferentes tamaños de pantalla y cómo responde el bloque de botón a los estados de pasar el cursor, enfoque y activación, todo sin escribir CSS personalizado. Un editor de medios optimizado unifica el recorte, la rotación y la edición de metadatos en un mismo flujo de trabajo. Las notas ahora admiten texto enriquecido y menciones con @, y la barra de administración te acompaña a todos los editores, para que las herramientas que usas estén siempre a mano, estés donde estés."
|
||||
|
||||
@@ -778,12 +778,12 @@ msgid "Skip to Editor"
|
||||
msgstr "Saltar al editor"
|
||||
|
||||
#. translators: %s: WordPress version number.
|
||||
#: wp-admin/about.php:294
|
||||
#: wp-admin/about.php:319
|
||||
msgid "WordPress %s Field Guide"
|
||||
msgstr "Guía de campo de WordPress %s"
|
||||
|
||||
#. translators: %s: WordPress version number.
|
||||
#: wp-admin/about.php:267
|
||||
#: wp-admin/about.php:292
|
||||
msgid "WordPress %s Release Notes"
|
||||
msgstr "Notas de la versión de WordPress %s"
|
||||
|
||||
@@ -946,16 +946,16 @@ msgstr "Si eres autor de un plugin, puedes obtener más información sobre <a hr
|
||||
msgid "If you are a plugin author, you can learn more about <a href=\"https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/\">how to add the Personal Data Eraser to a plugin</a>."
|
||||
msgstr "Si eres autor de un plugin, puedes obtener más información sobre <a href=\"https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/\">cómo añadir el borrado de datos personales a un plugin</a>."
|
||||
|
||||
#: wp-admin/about.php:220
|
||||
#: wp-admin/about.php:245
|
||||
msgid "See everything new"
|
||||
msgstr "Ver todo lo nuevo"
|
||||
|
||||
#: wp-admin/about.php:206
|
||||
#: wp-admin/about.php:231
|
||||
msgid "And much more"
|
||||
msgstr "Y mucho más"
|
||||
|
||||
#. translators: %s: Version number.
|
||||
#: wp-admin/about.php:212
|
||||
#: wp-admin/about.php:237
|
||||
msgid "For a comprehensive overview of all the new features and enhancements in WordPress %s, please visit the feature-showcase website."
|
||||
msgstr "Para obtener una visión general de todas las nuevas características y mejoras de WordPress %s, visita el sitio web de presentación de características."
|
||||
|
||||
@@ -1166,12 +1166,12 @@ msgstr[0] "%s patrón eliminado permanentemente."
|
||||
msgstr[1] "%s patrones eliminados permanentemente."
|
||||
|
||||
#. translators: %s: WordPress version number.
|
||||
#: wp-admin/about.php:277
|
||||
#: wp-admin/about.php:302
|
||||
msgid "Read the WordPress %s Release Notes for information on installation, enhancements, fixed issues, release contributors, learning resources, and the list of file changes."
|
||||
msgstr "Lee las notas de la versión de WordPress %s para obtener información sobre la instalación, las mejoras, los problemas corregidos, los colaboradores de la versión, los recursos de aprendizaje y la lista de cambios en los archivos."
|
||||
|
||||
#. translators: %s: WordPress version number.
|
||||
#: wp-admin/about.php:304
|
||||
#: wp-admin/about.php:329
|
||||
msgid "Explore the WordPress %s Field Guide. Learn about the changes in this release with detailed developer notes to help you build with WordPress."
|
||||
msgstr "Explora la Guía de campo de WordPress %s. Infórmate sobre los cambios en esta versión con notas detalladas para desarrolladores que te ayudarán a construir con WordPress."
|
||||
|
||||
@@ -1650,7 +1650,7 @@ msgid "<strong>Translate</strong> WordPress into your local language."
|
||||
msgstr "<strong>Traduce</strong> WordPress a tu idioma local."
|
||||
|
||||
#. translators: 1: Learn WordPress link, 2: Workshops link.
|
||||
#: wp-admin/about.php:245
|
||||
#: wp-admin/about.php:270
|
||||
msgid "<a href=\"%1$s\">Learn WordPress</a> is a free resource for new and experienced WordPress users. Learn is stocked with how-to videos on using various features in WordPress, <a href=\"%2$s\">interactive workshops</a> for exploring topics in-depth, and lesson plans for diving deep into specific areas of WordPress."
|
||||
msgstr "<a href=\"%1$s\">Aprende WordPress</a> es un recurso gratuito para usuarios nuevos y experimentados de WordPress. Está repleto de vídeos sobre cómo utilizar las distintas características de WordPress, <a href=\"%2$s\">eventos interactivos</a> para explorar temáticas en profundidad, y planes de lecciones para sumergirse en áreas específicas de WordPress."
|
||||
|
||||
@@ -1800,12 +1800,12 @@ msgid "<a href=\"https://wordpress.org/documentation/article/customizer/\">Docum
|
||||
msgstr "<a href=\"https://wordpress.org/documentation/article/customizer/\">Documentación sobre el personalizador</a>"
|
||||
|
||||
#. translators: The localized WordPress download URL.
|
||||
#: wp-admin/about.php:385
|
||||
#: wp-admin/about.php:410
|
||||
msgid "https://wordpress.org/download/"
|
||||
msgstr "https://es-mx.wordpress.org/download/"
|
||||
|
||||
#. translators: %s: The major version of WordPress for this branch.
|
||||
#: wp-admin/about.php:382
|
||||
#: wp-admin/about.php:407
|
||||
msgid "This is the final release of WordPress %s"
|
||||
msgstr "Esta es la versión final de WordPress %s"
|
||||
|
||||
@@ -2125,12 +2125,12 @@ msgid "Reach out to WordPress Core developers to ensure you'll never have this p
|
||||
msgstr "Contacta con nuestros desarrolladores del núcleo de WordPress para asegurar que nunca vuelvas a tener este problema."
|
||||
|
||||
#. translators: 1: WordPress version number, 2: Link to update WordPress
|
||||
#: wp-admin/about.php:379
|
||||
#: wp-admin/about.php:404
|
||||
msgid "Important! Your version of WordPress (%1$s) will stop receiving security updates in the near future. To keep your site secure, please <a href=\"%2$s\">update to the latest version of WordPress</a>."
|
||||
msgstr "¡Importante! Tu versión de WordPress (%1$s) dejará de recibir actualizaciones en un futuro próximo. Para mantener seguro tu sitio, por favor, <a href=\"%2$s\">actualiza a la última versión de WordPress</a>."
|
||||
|
||||
#. translators: 1: WordPress version number, 2: Link to update WordPress
|
||||
#: wp-admin/about.php:376
|
||||
#: wp-admin/about.php:401
|
||||
msgid "Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href=\"%2$s\">update to the latest version of WordPress</a>."
|
||||
msgstr "¡Importante! Tu versión de WordPress (%1$s) ya no recibe soporte, y no recibirá ninguna actualización de seguridad para tu web. Para mantener seguro tu sitio, por favor, <a href=\"%2$s\">actualiza a la última versión de WordPress</a>."
|
||||
|
||||
@@ -2140,7 +2140,7 @@ msgid "https://make.wordpress.org/core/wordpress-%s-field-guide/"
|
||||
msgstr "https://make.wordpress.org/core/wordpress-%s-field-guide/"
|
||||
|
||||
#. translators: %s: Version number.
|
||||
#: wp-admin/about.php:236
|
||||
#: wp-admin/about.php:261
|
||||
msgid "Learn more about WordPress %s"
|
||||
msgstr "Aprende más sobre WordPress %s"
|
||||
|
||||
@@ -3053,7 +3053,7 @@ msgstr "← Ir al editor"
|
||||
msgid "← Go to Users"
|
||||
msgstr "← Ir a los usuarios"
|
||||
|
||||
#: wp-admin/about.php:320
|
||||
#: wp-admin/about.php:345
|
||||
msgid "Go to Updates"
|
||||
msgstr "Ir a las actualizaciones"
|
||||
|
||||
@@ -6144,9 +6144,10 @@ msgstr "Este plugin no funciona con tus versiones de WordPress y PHP."
|
||||
|
||||
#. translators: %s: WordPress version number.
|
||||
#. translators: %s: WordPress version.
|
||||
#: wp-admin/about.php:21 wp-admin/about.php:78 wp-admin/about.php:103
|
||||
#: wp-admin/includes/update.php:321 wp-admin/index.php:119
|
||||
#: wp-admin/install.php:242 wp-admin/update-core.php:94 wp-admin/upgrade.php:96
|
||||
#: wp-admin/about.php:21 wp-admin/about.php:83 wp-admin/about.php:103
|
||||
#: wp-admin/about.php:128 wp-admin/includes/update.php:321
|
||||
#: wp-admin/index.php:119 wp-admin/install.php:242 wp-admin/update-core.php:94
|
||||
#: wp-admin/upgrade.php:96
|
||||
msgid "https://wordpress.org/documentation/wordpress-version/version-%s/"
|
||||
msgstr "https://wordpress.org/documentation/wordpress-version/version-%s/"
|
||||
|
||||
@@ -8400,7 +8401,7 @@ msgstr "(Actualmente como: %s) "
|
||||
|
||||
#. translators: %s: WordPress version.
|
||||
#. translators: %s: WordPress version number.
|
||||
#: wp-admin/about.php:68 wp-admin/about.php:350
|
||||
#: wp-admin/about.php:93 wp-admin/about.php:375
|
||||
msgid "<strong>Version %s</strong> addressed one security issue."
|
||||
msgstr "<strong>Versión %s</strong> mostró un problema de seguridad."
|
||||
|
||||
@@ -8413,15 +8414,15 @@ msgstr "https://gravatar.com/"
|
||||
msgid "Profile Picture"
|
||||
msgstr "Imagen de perfil"
|
||||
|
||||
#: wp-admin/about.php:63 wp-admin/about.php:347
|
||||
#: wp-admin/about.php:63 wp-admin/about.php:372
|
||||
msgid "Maintenance and Security Releases"
|
||||
msgstr "Versiones de mantenimiento y seguridad"
|
||||
|
||||
#: wp-admin/about.php:344
|
||||
#: wp-admin/about.php:369
|
||||
msgid "Security Releases"
|
||||
msgstr "Versiones de seguridad"
|
||||
|
||||
#: wp-admin/about.php:341
|
||||
#: wp-admin/about.php:366
|
||||
msgid "Maintenance Releases"
|
||||
msgstr "Versiones de mantenimiento"
|
||||
|
||||
@@ -11641,15 +11642,16 @@ msgid "Show Toolbar when viewing site"
|
||||
msgstr "Mostrar la barra de herramientas al ver el sitio"
|
||||
|
||||
#. translators: 1: WordPress version number, 2: Plural number of bugs.
|
||||
#: wp-admin/about.php:355
|
||||
#: wp-admin/about.php:380
|
||||
msgid "<strong>Version %1$s</strong> addressed %2$s bug."
|
||||
msgid_plural "<strong>Version %1$s</strong> addressed %2$s bugs."
|
||||
msgstr[0] "La <strong>versión %1$s</strong> soluciona %2$s fallo."
|
||||
msgstr[1] "La <strong>versión %1$s</strong> soluciona %2$s fallos."
|
||||
|
||||
#. translators: 1: WordPress version number, 2: Plural number of bugs.
|
||||
#. translators: 1: WordPress version number, 2: Plural number of bugs. More
|
||||
#. than one security issue.
|
||||
#: wp-admin/about.php:88 wp-admin/about.php:367
|
||||
#: wp-admin/about.php:68 wp-admin/about.php:113 wp-admin/about.php:392
|
||||
msgid "<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug."
|
||||
msgid_plural "<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs."
|
||||
msgstr[0] "La <strong>versión %1$s</strong> soluciona algunos problemas de seguridad y soluciona %2$s fallo."
|
||||
@@ -11657,28 +11659,29 @@ msgstr[1] "La <strong>versión %1$s</strong> soluciona algunos problemas de segu
|
||||
|
||||
#. translators: %s: HelpHub URL.
|
||||
#. translators: %s: Documentation URL.
|
||||
#: wp-admin/about.php:75 wp-admin/about.php:100 wp-admin/about.php:373
|
||||
#: wp-admin/about.php:80 wp-admin/about.php:100 wp-admin/about.php:125
|
||||
#: wp-admin/about.php:398
|
||||
msgid "For more information, see <a href=\"%s\">the release notes</a>."
|
||||
msgstr "Para más información, lee <a href=\"%s\">las notas de la versión</a>."
|
||||
|
||||
#. translators: 1: WordPress version number, 2: Plural number of bugs. Singular
|
||||
#. security issue.
|
||||
#: wp-admin/about.php:361
|
||||
#: wp-admin/about.php:386
|
||||
msgid "<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug."
|
||||
msgid_plural "<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs."
|
||||
msgstr[0] "La <strong>versión %1$s</strong> soluciona un problema de seguridad y soluciona %2$s fallo."
|
||||
msgstr[1] "La <strong>versión %1$s</strong> soluciona un problema de seguridad y soluciona %2$s fallos."
|
||||
|
||||
#. translators: %s: WordPress version number.
|
||||
#: wp-admin/about.php:352
|
||||
#: wp-admin/about.php:377
|
||||
msgid "<strong>Version %s</strong> addressed some security issues."
|
||||
msgstr "<strong>La versión %s</strong> soluciona algunos problemas de seguridad."
|
||||
|
||||
#: wp-admin/about.php:340
|
||||
#: wp-admin/about.php:365
|
||||
msgid "Maintenance Release"
|
||||
msgstr "Versión de mantenimiento"
|
||||
|
||||
#: wp-admin/about.php:343
|
||||
#: wp-admin/about.php:368
|
||||
msgid "Security Release"
|
||||
msgstr "Versión de seguridad"
|
||||
|
||||
@@ -11687,7 +11690,7 @@ msgstr "Versión de seguridad"
|
||||
msgid "What’s New"
|
||||
msgstr "Novedades"
|
||||
|
||||
#: wp-admin/about.php:346
|
||||
#: wp-admin/about.php:371
|
||||
msgid "Maintenance and Security Release"
|
||||
msgstr "Versión de mantenimiento y seguridad"
|
||||
|
||||
@@ -11957,15 +11960,15 @@ msgstr "<strong>Previsualizacón</strong> mostrará cómo se verá tu borrador s
|
||||
msgid "Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user’s name to Edit the user profile under Network Admin > All Users."
|
||||
msgstr "En una instalación multisitio puedes añadir cuentas que ya existen en la Red especificando el nombre de usuario o la contraseña con la que están registrados en la misma, y definiendo un rol. Para más opciones, como especificar una contraseña, debes ser Administrador de la Red y utilizar el enlace que aparece al pasar sobre los nombres de usuario. Puedes encontrar esta opción bajo Administración de Red > Todos los Usuarios."
|
||||
|
||||
#: wp-admin/about.php:114
|
||||
#: wp-admin/about.php:139
|
||||
msgid "Welcome to WordPress 7.1"
|
||||
msgstr "Te damos la bienvenida a WordPress 7.1"
|
||||
|
||||
#: wp-admin/about.php:327
|
||||
#: wp-admin/about.php:352
|
||||
msgid "Go to Dashboard → Home"
|
||||
msgstr "Ve a Escritorio → Inicio"
|
||||
|
||||
#: wp-admin/about.php:320
|
||||
#: wp-admin/about.php:345
|
||||
msgid "Go to Dashboard → Updates"
|
||||
msgstr "Ir a \"Escritorio → Actualizaciones\""
|
||||
|
||||
@@ -13675,7 +13678,7 @@ msgstr "Eliminar Plugin"
|
||||
msgid "You are about to remove the following plugin:"
|
||||
msgstr "Estás a punto de eliminar el siguiente plugin:"
|
||||
|
||||
#: wp-admin/about.php:327
|
||||
#: wp-admin/about.php:352
|
||||
msgid "Go to Dashboard"
|
||||
msgstr "Ir al Escritorio"
|
||||
|
||||
|
||||
@@ -778,7 +778,7 @@ msgid "A view configuration patch must declare a supported schema version."
|
||||
msgstr "Un parche de configuración de vista debe indicar una versión de esquema compatible."
|
||||
|
||||
#. translators: 1: oembed_providers, 2: The oEmbed provider URL pattern.
|
||||
#: wp-includes/class-wp-oembed.php:240
|
||||
#: wp-includes/class-wp-oembed.php:236
|
||||
msgid "The oEmbed provider data returned by the %1$s filter at key %2$s is malformed. The providers array must be a mapping of provider URL patterns to a tuple array consisting of a provider endpoint URL string at index 0 and an optional boolean regex flag at index 1."
|
||||
msgstr "Los datos del proveedor de oEmbed devueltos por el filtro %1$s en la clave %2$s están mal formados. El array de proveedores debe asociar cada patrón de URL de proveedor con un array formado por una cadena con la URL de la API del proveedor en el índice 0 y un indicador booleano opcional de expresión regular en el índice 1."
|
||||
|
||||
@@ -3900,7 +3900,7 @@ msgctxt "block description"
|
||||
msgid "Reuse this design across your site."
|
||||
msgstr "Reutiliza este diseño en toda tu web."
|
||||
|
||||
#: wp-includes/js/dist/editor.js:101469 wp-admin/about.php:198
|
||||
#: wp-includes/js/dist/editor.js:101469 wp-admin/about.php:223
|
||||
msgid "Accessibility"
|
||||
msgstr "Accesibilidad"
|
||||
|
||||
@@ -22875,7 +22875,7 @@ msgid "Sun"
|
||||
msgstr "dom"
|
||||
|
||||
#: wp-includes/class-wp-http-curl.php:257
|
||||
#: wp-includes/class-wp-http-curl.php:324 wp-includes/class-wp-http.php:1070
|
||||
#: wp-includes/class-wp-http-curl.php:324 wp-includes/class-wp-http.php:1073
|
||||
msgid "Too many redirects."
|
||||
msgstr "Demasiadas redirecciones."
|
||||
|
||||
|
||||
@@ -336,16 +336,20 @@ msgstr "Añadir suscripción a %s"
|
||||
msgid "Your Akismet usage has been over your plan’s limit for two consecutive months. Next month, we will restrict your account after you reach the limit. 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 dos meses consecutivos. El próximo mes, restringiremos tu cuenta cuando alcances el límite. Aumenta tu límite para asegurarte de que tu sitio esté protegido contra el spam."
|
||||
|
||||
#: 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."
|
||||
|
||||
#: views/notice.php:113
|
||||
msgid "Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> function."
|
||||
msgstr "Tu proveedor de hosting o administrador del servidor ha desactivado la función <code>gethostbynamel</code> 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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">contact Akismet support%2$s</a>"
|
||||
msgstr "Introduce una nueva clave o <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">contacta con el soporte de Akismet%2$s</a>."
|
||||
|
||||
#: 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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\
|
||||
msgid "Please contact your web host or firewall administrator and give them <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">this information about Akismet’s system requirements%2$s</a>"
|
||||
msgstr "Ponte en contacto con tu proveedor de alojamiento o administrador del cortafuegos y dales <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">esta información sobre los requisitos del sistema de Akismet%2$s</a>"
|
||||
|
||||
#: views/notice.php:113
|
||||
msgid "Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> function."
|
||||
msgstr "Tu proveedor de hosting o administrador del servidor ha desactivado la función <code>gethostbynamel</code> 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. <a href=\"%s\" target=\"_blank\" rel=\"nofollow noopener\">Learn how your comment data is processed.</a>"
|
||||
msgstr "Este sitio usa Akismet para reducir el spam. <a href=\"%s\" target=\"_blank\" rel=\"nofollow noopener\">Aprende cómo se procesan los datos de tus comentarios</a>."
|
||||
|
||||
#: 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 <strong>protect your blog from spam</strong>. 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 <strong>proteger tu blog del spam</strong>. 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 <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started, just go to <a href=\"admin.php?page=akismet-key-config\">your Akismet Settings page</a> to set up your API key."
|
||||
msgstr "Utilizado por millones de personas, Akismet es posiblemente la mejor manera de <strong>proteger tu blog del spam</strong>. Mantiene tu sitio protegido incluso mientras duermes. Para comenzar, sólo ve a <a href=\"admin.php?page=akismet-key-config\">tu página de configuración de Akismet</a> 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 <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started, just go to <a href=\"admin.php?page=akismet-key-config\">your Akismet Settings page</a> to set up your API key."
|
||||
msgstr "Utilizado por millones de personas, Akismet es posiblemente la mejor manera de <strong>proteger tu blog del spam</strong>. Mantiene tu sitio protegido incluso mientras duermes. Para comenzar, sólo ve a <a href=\"admin.php?page=akismet-key-config\">tu página de configuración de Akismet</a> 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 <strong>protect your blog from spam</strong>. 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 <strong>proteger tu blog del spam</strong>. 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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">our guide about firewalls%2$s</a> and check your server configuration."
|
||||
msgstr "No se ha podido establecer la conexión con akismet.com. Consulta <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">nuestra guía sobre cortafuegos%2$s</a> 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 <a href=\"%s\">Akismet configuration</a> and contact your web host if problems persist."
|
||||
msgstr "Por favor revisa tu <a href=\"%s\">Configuración de Akismet</a> 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 "<strong class=\"count\">%1$s spam</strong> blocked by <strong>Akismet</strong>"
|
||||
msgid_plural "<strong class=\"count\">%1$s spam</strong> blocked by <strong>Akismet</strong>"
|
||||
msgstr[0] "<strong class=\"count\">%1$s mensaje spam</strong> bloqueado por <strong>Akismet</strong>"
|
||||
msgstr[1] "<strong class=\"count\">%1$s mensajes de spam</strong> bloqueados por <strong>Akismet</strong>"
|
||||
|
||||
#: 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 "<a href=\"%1$s\">Akismet</a> has protected your site from %2$s spam comment already. "
|
||||
msgid_plural "<a href=\"%1$s\">Akismet</a> has protected your site from %2$s spam comments already. "
|
||||
msgstr[0] "<a href=\"%1$s\">Akismet</a> ha protegido su sitio de %2$s comentario de spam hasta ahora."
|
||||
msgstr[1] "<a href=\"%1$s\">Akismet</a> 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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">our guide about firewalls%2$s</a>"
|
||||
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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">nuestra guía sobre cortafuegos%2$s</a>"
|
||||
|
||||
#: 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 <a href=\"%1$s\">upgrade WordPress</a> to a current version, or <a href=\"%2$s\">downgrade to version 2.4 of the Akismet plugin</a>."
|
||||
msgstr "Por favor, <a href=\"%1$s\">actualiza WordPress</a> a una versión actualizada o <a href=\"%2$s\">instala la versión 2.4 del plugin Akismet</a>."
|
||||
|
||||
#. 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 "<strong class=\"count\">%1$s spam</strong> blocked by <strong>Akismet</strong>"
|
||||
msgid_plural "<strong class=\"count\">%1$s spam</strong> blocked by <strong>Akismet</strong>"
|
||||
msgstr[0] "<strong class=\"count\">%1$s mensaje spam</strong> bloqueado por <strong>Akismet</strong>"
|
||||
msgstr[1] "<strong class=\"count\">%1$s mensajes de spam</strong> bloqueados por <strong>Akismet</strong>"
|
||||
|
||||
#: 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 <a href=\"%s\">Akismet configuration</a> and contact your web host if problems persist."
|
||||
msgstr "Por favor revisa tu <a href=\"%s\">Configuración de Akismet</a> 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 <a href='%s'>spam queue</a> at the moment."
|
||||
@@ -1210,13 +1214,6 @@ msgstr[1] "Ahora mismo hay <a href=\"%2$s\">%1$s comentarios</a> en tu cola de s
|
||||
msgid "<a href=\"%s\">Akismet</a> blocks spam from getting to your blog. "
|
||||
msgstr "<a href=\"%s\">Akismet</a> bloquea el spam que aparezca en tu blog. "
|
||||
|
||||
#. translators: 1: Akismet website URL, 2: Number of spam comments.
|
||||
#: class.akismet-admin.php:442
|
||||
msgid "<a href=\"%1$s\">Akismet</a> has protected your site from %2$s spam comment already. "
|
||||
msgid_plural "<a href=\"%1$s\">Akismet</a> has protected your site from %2$s spam comments already. "
|
||||
msgstr[0] "<a href=\"%1$s\">Akismet</a> ha protegido su sitio de %2$s comentario de spam hasta ahora."
|
||||
msgstr[1] "<a href=\"%1$s\">Akismet</a> 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 "<a href=\"%1$s\">Akismet</a> has protected your site from <a href=
|
||||
msgstr[0] "<a href=\"%1$s\">Akismet</a> ha protegido tu sitio de <a href=\"%2$s\">%3$s comentario spam</a>."
|
||||
msgstr[1] "<a href=\"%1$s\">Akismet</a> ha protegido tu sitio de <a href=\"%2$s\">%3$s comentarios spam</a>."
|
||||
|
||||
#: 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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">our guide about firewalls%2$s</a>"
|
||||
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 <a class=\"akismet-external-link\" href=\"%1$s\" target=\"_blank\" rel=\"noopener\">nuestra guía sobre cortafuegos%2$s</a>"
|
||||
|
||||
#: class.akismet-admin.php:103
|
||||
msgid "Comment History"
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,225 @@
|
||||
<?php
|
||||
/**
|
||||
* Rank Math sitemap CLI commands.
|
||||
*
|
||||
* @since 1.0.280
|
||||
* @package RankMath
|
||||
* @subpackage RankMath\WP_CLI
|
||||
* @author Rank Math <support@rankmath.com>
|
||||
*/
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
@@ -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<id>\d+)' => [
|
||||
'callback' => [ $this, 'get_post' ],
|
||||
|
||||
@@ -250,7 +250,7 @@ class Table extends List_Table {
|
||||
'deactivate' => '<a href="' . $url . '" data-action="deactivate" class="rank-math-redirection-action">' . esc_html__( 'Deactivate', 'seo-by-rank-math' ) . '</a>',
|
||||
'activate' => '<a href="' . $url . '" data-action="activate" class="rank-math-redirection-action">' . esc_html__( 'Activate', 'seo-by-rank-math' ) . '</a>',
|
||||
'trash' => '<a href="' . $url . '" data-action="trash" class="rank-math-redirection-action">' . esc_html__( 'Trash', 'seo-by-rank-math' ) . '</a>',
|
||||
'view' => '<a href="' . $view_url . '" rel="bookmark">' . esc_html__( 'View', 'seo-by-rank-math' ) . '</a>',
|
||||
'view' => '<a href="' . esc_url( $view_url ) . '" rel="bookmark">' . esc_html__( 'View', 'seo-by-rank-math' ) . '</a>',
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -58,8 +58,11 @@ class DB {
|
||||
'usermeta' => 'user_id',
|
||||
];
|
||||
$key = isset( $keys_by_table[ $table ] ) ? $keys_by_table[ $table ] : 'post_id';
|
||||
$data = self::table( $table )
|
||||
->select( 'meta_id' )
|
||||
|
||||
// The wp_usermeta table's primary key column is umeta_id, unlike post/term/comment meta tables which use meta_id.
|
||||
$id_column = 'usermeta' === $table ? 'umeta_id' : 'meta_id';
|
||||
$data = self::table( $table )
|
||||
->select( [ $id_column => 'meta_id' ] )
|
||||
->select( 'meta_value' )
|
||||
->where( $key, $object_id )
|
||||
->whereLike( 'meta_key', 'rank_math_schema', '' )
|
||||
|
||||
+16
-7
@@ -89,7 +89,7 @@ class SEO_Analyzer {
|
||||
$this->analyse_url = home_url();
|
||||
|
||||
$this->action( 'init', 'set_url' );
|
||||
$this->maybe_clear_storage();
|
||||
$this->action( 'admin_init', 'maybe_clear_storage' );
|
||||
|
||||
$this->ajax( 'analyze', 'analyze_me' );
|
||||
$this->ajax( 'enable_auto_update', 'enable_auto_update' );
|
||||
@@ -235,13 +235,22 @@ class SEO_Analyzer {
|
||||
/**
|
||||
* Clear stored results if needed.
|
||||
*/
|
||||
private function maybe_clear_storage() {
|
||||
if ( '1' === Param::request( 'clear_results' ) ) {
|
||||
delete_option( 'rank_math_seo_analysis_results' );
|
||||
delete_option( 'rank_math_seo_analysis_date' );
|
||||
Helper::redirect( Security::remove_query_arg_raw( 'clear_results' ) );
|
||||
exit;
|
||||
public function maybe_clear_storage() {
|
||||
if ( '1' !== Param::request( 'clear_results' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
! Helper::has_cap( 'site_analysis' ) ||
|
||||
! wp_verify_nonce( Param::request( 'security' ), 'rank-math-ajax-nonce' )
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
delete_option( 'rank_math_seo_analysis_results' );
|
||||
delete_option( 'rank_math_seo_analysis_date' );
|
||||
Helper::redirect( Security::remove_query_arg_raw( [ 'clear_results', 'security' ] ) );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -307,6 +307,9 @@ class Sitemap {
|
||||
* @param int $max_entries Entries per sitemap.
|
||||
*/
|
||||
public static function maybe_redirect( $count, $max_entries ) {
|
||||
if ( ! apply_filters( 'rank_math/sitemap/maybe_redirect', true ) ) {
|
||||
return;
|
||||
}
|
||||
$current_page = (int) get_query_var( 'sitemap_n' );
|
||||
if ( ! $current_page && $count > $max_entries ) {
|
||||
Helper::redirect( preg_replace( '/\.xml$/', '1.xml', Helper::get_current_page_url() ) );
|
||||
|
||||
+1
@@ -50,6 +50,7 @@ class Import_Export_Settings {
|
||||
// Parse Options.
|
||||
$wp_filesystem = Helper::get_filesystem();
|
||||
if ( is_null( $wp_filesystem ) || ! Helper::is_filesystem_direct() ) {
|
||||
\wp_delete_file( $file['file'] );
|
||||
return [
|
||||
'error' => esc_html__( 'Uploaded file could not be read.', 'seo-by-rank-math' ),
|
||||
];
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
# This file is distributed under the GPL-3.0+.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Rank Math SEO 1.0.279\n"
|
||||
"Project-Id-Version: Rank Math SEO 1.0.280\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/seo-by-rank-math\n"
|
||||
"Last-Translator: Rank Math <support@rankmath.com>\n"
|
||||
"Language-Team: Rank Math <support@rankmath.com>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"POT-Creation-Date: 2026-09-22T04:13:08+00:00\n"
|
||||
"POT-Creation-Date: 2026-10-06T05:13:11+00:00\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"X-Generator: WP-CLI 2.12.0\n"
|
||||
"X-Domain: seo-by-rank-math\n"
|
||||
@@ -3152,18 +3152,18 @@ msgstr ""
|
||||
msgid "Unknown error, call get_response() to find out what happened."
|
||||
msgstr ""
|
||||
|
||||
msgid "Post ID."
|
||||
msgstr ""
|
||||
|
||||
msgid "Post Type."
|
||||
msgstr ""
|
||||
|
||||
msgid "Page number."
|
||||
msgstr ""
|
||||
|
||||
msgid "Results per page."
|
||||
msgstr ""
|
||||
|
||||
msgid "Post ID."
|
||||
msgstr ""
|
||||
|
||||
msgid "Post Type."
|
||||
msgstr ""
|
||||
|
||||
msgid "Order by."
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Rank Math SEO
|
||||
* Version: 1.0.279
|
||||
* Version: 1.0.280
|
||||
* Plugin URI: https://rankmath.com/
|
||||
* Description: Rank Math SEO is the Best WordPress SEO plugin with the features of many SEO and AI SEO tools in a single package to help multiply your SEO traffic.
|
||||
* Author: Rank Math SEO
|
||||
@@ -34,7 +34,7 @@ final class RankMath {
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $version = '1.0.279';
|
||||
public $version = '1.0.280';
|
||||
|
||||
/**
|
||||
* Rank Math database version.
|
||||
@@ -422,8 +422,8 @@ final class RankMath {
|
||||
new \RankMath\ThirdParty\WPML();
|
||||
}
|
||||
|
||||
// Hook into `pll_init` when Polylang is active, unless the manual KB integration is already enabled.
|
||||
if ( is_plugin_active( 'polylang/polylang.php' ) && ! class_exists( 'PLL_RankMath' ) ) {
|
||||
// Hook into `pll_init` when Polylang (Free or Pro) is active, unless the manual KB integration is already enabled.
|
||||
if ( ( is_plugin_active( 'polylang/polylang.php' ) || is_plugin_active( 'polylang-pro/polylang.php' ) ) && ! class_exists( 'PLL_RankMath' ) ) {
|
||||
new \RankMath\ThirdParty\Polylang\Polylang();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ Tags: seo, google search console, schema, redirection, xml sitemap
|
||||
Tested up to: 7.1
|
||||
Requires at least: 6.7
|
||||
Requires PHP: 7.4
|
||||
Stable tag: 1.0.279
|
||||
Stable tag: 1.0.280
|
||||
License: GPLv3 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
@@ -428,14 +428,12 @@ Terms of service: https://developers.facebook.com/terms/
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.279 [Sep 22, 2026] =
|
||||
- [HUGE!] Added Gemini Tracking, Multi-Language Support, and Daily/Weekly/Monthly refresh options to [AI Visibility] (https://rankmath.com/ai-visibility/?play-video=gS5-DFQrSxs).
|
||||
- Added `rank-math/get-404-logs` and `rank-math/get-sitemap-status` MCP tools to expose [404 Monitor](https://rankmath.com/kb/monitor-404-errors/) log data and sitemap status/sub-type data to AI assistants.
|
||||
- Improved [llms.txt](https://rankmath.com/kb/llms-txt/) output to conform to the latest llms.txt specification.
|
||||
- Fixed AI Visibility Brand detail page was missing data shown on the dashboard, and the "Analyses in last 24h" label was misleading.
|
||||
- Fixed `rank-math/get-post-links` MCP tool to correctly enforce per-post capability checks.
|
||||
- Fixed Link Suggestions was building link HTML by unescaped string concatenation, allowing unsafe URL and link text values into block content.
|
||||
- Fixed Analytics Objects table `page` column was not showing accurate values for WPML translated pages.
|
||||
= 1.0.280 [Oct 06, 2026] =
|
||||
- Improved [Sitemaps](https://rankmath.com/kb/configure-sitemaps/) can now be fully pre-generated with the `wp rankmath sitemap generate` WP-CLI command, so large sites serve cached sitemap files instead of building them on every visit.
|
||||
- Improved plugin security with additional input validation and output escaping hardening.
|
||||
- Fixed [Analytics](https://rankmath.com/kb/analytics/) dashboard sections showing `N/A` after data fetching was completed.
|
||||
- Fixed [Polylang](https://rankmath.com/kb/polylang-compatibility/) meta translations that were not showing for secondary languages when Polylang PRO was active.
|
||||
- Fixed a database error being logged when saving user profiles with SEO Controls enabled for [Author Archives](https://rankmath.com/kb/titles-and-meta/#author-archives).
|
||||
|
||||
|
||||
Full changelog can be found here - **[Rank Math changelog](https://rankmath.com/changelog/?utm_source=Plugin&utm_medium=Changelog&utm_campaign=WP)**
|
||||
+1
-1
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitda5118e07739bcc2a9ee8b03eeea8972::getLoader();
|
||||
return ComposerAutoloaderInit1a6db0eae96225599b2819e07037bb60::getLoader();
|
||||
|
||||
@@ -1,167 +0,0 @@
|
||||
# CMB2 Conventions & Blast-Radius Notes
|
||||
|
||||
CMB2 is an opinionated, 10+-year-old library bundled inside hundreds of themes
|
||||
and plugins. This file is the compounding knowledge base of its conventions,
|
||||
architectural seams, and back-compat blast radii — written for both human
|
||||
contributors and AI agents.
|
||||
|
||||
**Reading rule:** consult this file before changing anything under `includes/`,
|
||||
`bootstrap.php`, or `init.php`.
|
||||
|
||||
**Capture rule:** when a code review catches a convention violation or a
|
||||
back-compat near-miss, the fix must land alongside a new or updated entry here,
|
||||
on the same branch. Each entry cites the canonical in-code example — the code
|
||||
is the spec; this file is the index to it.
|
||||
|
||||
**Delegation rule (AI agents):** subagents don't inherit this context. Work
|
||||
orders delegating changes must quote the relevant entries verbatim.
|
||||
|
||||
---
|
||||
|
||||
## C1 — Per-box features hook up via `cmb2_init_hookup_{$cmb_id}`
|
||||
|
||||
**Rule:** A feature that attaches to boxes (hookup, REST, notices, anything
|
||||
box-aware) registers a `maybe_init_and_hookup( CMB2 $cmb )` static on the
|
||||
box-specific `cmb2_init_hookup_{$cmb_id}` action, added in the `CMB2`
|
||||
constructor. The feature class *self-guards*: it receives every box and decides
|
||||
for itself whether it applies (e.g. `CMB2_REST` checks `show_in_rest`).
|
||||
|
||||
**Canonical example:** `includes/CMB2.php` constructor (the
|
||||
`CMB2_Hookup`/`CMB2_REST` `add_action` pair); fired from `bootstrap.php`'s
|
||||
`cmb2_init_hookup_{$cmb->cmb_id}` loop; contract in
|
||||
`CMB2_Hookup_Base::maybe_init_and_hookup()`.
|
||||
|
||||
**Anti-pattern:** registering a global hook elsewhere and scanning
|
||||
`CMB2_Boxes::get_all()` to find relevant boxes. Two sources of truth for
|
||||
"which boxes does this apply to", misses late-registered boxes, and bypasses
|
||||
the per-box action seam developers use to unhook features from a single box.
|
||||
|
||||
**Blast radius:** extenders unhook/re-order `cmb2_init_hookup_*` callbacks per
|
||||
box; a feature wired outside that seam won't respect their customizations.
|
||||
|
||||
## C2 — `bootstrap.php` is generic lifecycle only
|
||||
|
||||
**Rule:** `bootstrap.php` contains only the init ceremony: `do_action` /
|
||||
`apply_filters` lifecycle events and the box-instantiation loops. No
|
||||
feature-specific class references, ever. Feature wiring belongs in the `CMB2`
|
||||
constructor (per-box features, see C1) or in the feature's own file.
|
||||
|
||||
**Canonical example:** `bootstrap.php` — note it ends "End. That's it, folks!"
|
||||
and has barely changed since 2.2.0.
|
||||
|
||||
## C3 — The self-electing loader makes every behavior change site-wide
|
||||
|
||||
**Rule:** `init.php` version-elects: when multiple copies of CMB2 are bundled
|
||||
(themes + plugins commonly each ship one), the *newest* copy wins and serves
|
||||
ALL registered boxes on the site. Any default-behavior change therefore
|
||||
propagates to every bundling product the moment one of them updates.
|
||||
|
||||
**Consequence:** behavior flips ship staged — opt-in first (default-off filter
|
||||
+ notice + docs), default-on only in a later release. Never flip a default in
|
||||
the same release that introduces the switch.
|
||||
|
||||
**Canonical example:** `init.php` (the `CMB2_Bootstrap_*` priority dance);
|
||||
staged-rollout example: the `cmb2_rest_enforce_options_page_read_permissions`
|
||||
filter (default false).
|
||||
|
||||
## C4 — REST reads are public by design; permission filters are the escape hatch
|
||||
|
||||
**Rule:** Boxes with `show_in_rest` readable expose reads publicly — this
|
||||
mirrors WP core's `show_in_rest` semantics for object meta and is intentional,
|
||||
not an oversight. Per-request overrides go through the existing
|
||||
`cmb2_api_get_box_permissions_check` / `cmb2_api_get_field_permissions_check`
|
||||
filters, which always run last and have final say. New permission logic must
|
||||
run *before* them and must not remove them.
|
||||
|
||||
**Canonical example:** `CMB2_REST_Controller_Boxes::get_item_permissions_check_filter()`;
|
||||
pinned by tests in `tests/test-cmb-rest-controllers.php`.
|
||||
|
||||
**Blast radius:** headless/decoupled front-ends read box data anonymously for
|
||||
public display. Tightening reads by default breaks them — hence the staged
|
||||
approach in C3, scoped only to options-page boxes (matching core's
|
||||
settings-vs-meta distinction).
|
||||
|
||||
## C5 — The `capability` box prop means "who sees the admin screen"
|
||||
|
||||
**Rule:** `capability` (default `manage_options` for options pages) governs the
|
||||
admin page. Reusing it for other gates (REST, front-end) conflates concerns —
|
||||
acceptable only where the semantic genuinely matches (e.g. options-page REST
|
||||
reads mirror the settings screen), and even then behind its own switch.
|
||||
|
||||
**Canonical example:** `includes/CMB2.php` `$mb_defaults['capability']` usage in
|
||||
`CMB2_Options_Hookup`.
|
||||
|
||||
**Where the semantic does match:** an options-page target's *object id is the
|
||||
option name* the data lands in, so "may write this option" and "may use this
|
||||
settings screen" are the same question — see
|
||||
`CMB2_Ajax::can_cache_for_options_page()`. Note the shape: the box that
|
||||
declared the option key is also the only place a capability for it exists, so
|
||||
looking the box up both supplies the check and bounds the accepted option keys
|
||||
to ones a box declared. An id no box claims has no capability to consult, and
|
||||
is therefore not a target.
|
||||
|
||||
## C6 — Autoloader paths are case-sensitive by prefix
|
||||
|
||||
**Rule:** `cmb2_autoload_classes()` maps `CMB2_REST`/`CMB2_REST_*` (exact case)
|
||||
to `includes/rest-api/`, `CMB2_Type*` to `includes/types/`, everything else to
|
||||
`includes/`. A class named `CMB2_Rest_Foo` (lowercase "est") deliberately lands
|
||||
in `includes/` — name classes with full awareness of which directory the prefix
|
||||
routes to, and match filename to class name exactly.
|
||||
|
||||
**Canonical example:** `includes/helper-functions.php` `cmb2_autoload_classes()`.
|
||||
|
||||
## C7 — PHP floor is 7.4; local tests don't prove it
|
||||
|
||||
**Rule:** All code must run on PHP 7.4. Local `npm run phptests` runs PHP 8.3
|
||||
only; the 7.4 floor is guarded exclusively by the CI matrix (`phpunit.yml`).
|
||||
"Passes locally" is necessary, never sufficient. (Tooling details: CLAUDE.md
|
||||
"Testing Strategy".)
|
||||
|
||||
## C8 — Configuration over code: box props are the primary interface
|
||||
|
||||
**Rule:** A new per-box behavior must be reachable as a **box registration
|
||||
property**. The registration array is the interface CMB2 developers actually
|
||||
use — and the one a bundling theme/plugin can ship per box — so it is the
|
||||
primary layer; filters are the secondary, site-wide layer for cross-cutting
|
||||
policy. When a behavior has both, the box prop wins outright and the filter
|
||||
governs only the boxes that left the prop unset. That way a box declares its
|
||||
intent once, in the array where it was registered, and keeps it across a later
|
||||
default flip (C3).
|
||||
|
||||
**Canonical examples:** `includes/CMB2.php` `$mb_defaults` — `show_in_rest`,
|
||||
`capability`, and `rest_read_capability`. The last one is the shape to copy,
|
||||
reading exactly as plain English: `false` = "no" (REST reads disabled for
|
||||
everyone, via core's `do_not_allow`); `true` = "yes, everyone" (alias of
|
||||
`'exist'`, the capability WP grants every visitor); `'box-capability'` = the
|
||||
box's own `capability` prop (the only non-duplicating spelling — naming the cap
|
||||
copies a value that lives elsewhere and can drift); any other capability string
|
||||
= only its holders; unset = the default policy (and the staged flip, C3). It
|
||||
cascades field → box → default like `show_in_rest`. Precedence is resolved in one
|
||||
place, `CMB2_REST::get_rest_read_capability()`, and consumed by
|
||||
`CMB2_REST_Controller::maybe_gate_read_by_capability()`.
|
||||
|
||||
**Value semantics — a prop value must read correctly in plain English.** A
|
||||
config value is documentation; if its plain-English reading is ambiguous or
|
||||
contradicts its behavior, it's the wrong value. `rest_read_capability` went
|
||||
through this exact wringer: `false` originally meant "reads are public (no
|
||||
capability required)" — but it *reads* as "REST read capability? no", i.e.
|
||||
reads disabled. The fix wasn't banning the boolean; it was making the meaning
|
||||
match the reading (`false` now disables reads; `true` now means everyone).
|
||||
Corollaries: booleans are fine only when yes/no is the honest answer to the
|
||||
prop's name read as a question; when the answer is a *which* (which
|
||||
capability?), every value is a real answer; and prefer WP-canonical vocabulary
|
||||
over invented sentinels — `'exist'` (granted to everyone) and `do_not_allow`
|
||||
(denied to everyone) bound the range, so neither "public" nor "disabled" needs
|
||||
special-casing.
|
||||
|
||||
**Anti-pattern:** shipping a filter-only interface for per-box behavior. It
|
||||
forces every developer to write a callback that re-derives "which box is this?"
|
||||
from the filter args, cannot be expressed in the registration array a theme or
|
||||
plugin already ships, and leaves no way to declare per-box intent — the filter
|
||||
answers site-wide, so a site with a single box needing the old behavior has to
|
||||
special-case every box by hand.
|
||||
|
||||
**Blast radius:** props are public API forever — name them for the behavior,
|
||||
not the implementation. Adding one to `$mb_defaults` also changes the array
|
||||
pinned by `Test_CMB2_Core::test_defaults_set()`; update that fixture in the same
|
||||
commit.
|
||||
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* CMB2 - v2.13.0 - 2026-09-20
|
||||
* CMB2 - v2.13.3 - 2026-10-03
|
||||
* https://cmb2.io
|
||||
* Copyright (c) 2026
|
||||
* Licensed GPLv2+
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*! CMB2 - v2.13.0 - 2026-09-20 | https://cmb2.io | Copyright (c) 2026 CMB2 team | Licensed GPLv2 */
|
||||
/*! CMB2 - v2.13.3 - 2026-10-03 | https://cmb2.io | Copyright (c) 2026 CMB2 team | Licensed GPLv2 */
|
||||
/*!
|
||||
* CMB2 - v2.13.0 - 2026-09-20
|
||||
* CMB2 - v2.13.3 - 2026-10-03
|
||||
* https://cmb2.io
|
||||
* Copyright (c) 2026
|
||||
* Licensed GPLv2+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* CMB2 - v2.13.0 - 2026-09-20
|
||||
* CMB2 - v2.13.3 - 2026-10-03
|
||||
* https://cmb2.io
|
||||
* Copyright (c) 2026
|
||||
* Licensed GPLv2+
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*! CMB2 - v2.13.0 - 2026-09-20 | https://cmb2.io | Copyright (c) 2026 CMB2 team | Licensed GPLv2 */
|
||||
/*! CMB2 - v2.13.3 - 2026-10-03 | https://cmb2.io | Copyright (c) 2026 CMB2 team | Licensed GPLv2 */
|
||||
/*!
|
||||
* CMB2 - v2.13.0 - 2026-09-20
|
||||
* CMB2 - v2.13.3 - 2026-10-03
|
||||
* https://cmb2.io
|
||||
* Copyright (c) 2026
|
||||
* Licensed GPLv2+
|
||||
|
||||
+8
-3
@@ -169,7 +169,7 @@ class CMB2_Field_Display {
|
||||
* @since 2.2.2
|
||||
*/
|
||||
protected function _display() {
|
||||
print_r( $this->value );
|
||||
echo esc_html( print_r( $this->value, true ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ class CMB2_Display_Text_Money extends CMB2_Field_Display {
|
||||
*/
|
||||
protected function _display() {
|
||||
$this->value = $this->value ? $this->value : '0';
|
||||
echo ( ! $this->field->get_param_callback_result( 'before_field' ) ? '$' : ' ' ), $this->value;
|
||||
echo ( ! $this->field->get_param_callback_result( 'before_field' ) ? '$' : ' ' ), esc_html( print_r( $this->value, true ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,7 +285,8 @@ class CMB2_Display_Textarea_Code extends CMB2_Field_Display {
|
||||
* @since 2.2.2
|
||||
*/
|
||||
protected function _display() {
|
||||
echo '<xmp class="cmb2-code">' . print_r( $this->value, true ) . '</xmp>';
|
||||
// Double-encode entities so the browser displays the stored source literally inside <pre>.
|
||||
echo '<pre class="cmb2-code">', htmlspecialchars( print_r( $this->value, true ), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8' ), '</pre>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -476,6 +477,10 @@ class CMB2_Display_File_List extends CMB2_Display_File {
|
||||
|
||||
echo '<ul class="cmb2-display-file-list">';
|
||||
foreach ( $this->value as $id => $fullurl ) {
|
||||
if ( ! is_scalar( $fullurl ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
echo '<li>', $this->file_output( esc_url_raw( $fullurl ), $id, $type ), '</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
+4
-1
@@ -59,7 +59,10 @@ class CMB2_Options_Hookup extends CMB2_Hookup {
|
||||
}
|
||||
|
||||
// Register setting to cmb2 group.
|
||||
register_setting( 'cmb2', $this->option_key );
|
||||
register_setting( 'cmb2', $this->option_key, array(
|
||||
'type' => 'array',
|
||||
'sanitize_callback' => 'cmb2_sanitize_option_passthrough',
|
||||
) );
|
||||
|
||||
// Handle saving the data.
|
||||
add_action( 'admin_post_' . $this->option_key, array( $this, 'save_options' ) );
|
||||
|
||||
+19
-2
@@ -97,11 +97,24 @@ class CMB2_Sanitize {
|
||||
break;
|
||||
case 'multicheck':
|
||||
case 'multicheck_inline':
|
||||
case 'file_list':
|
||||
case 'group':
|
||||
// no filtering
|
||||
$sanitized_value = $this->value;
|
||||
break;
|
||||
case 'file_list':
|
||||
$sanitized_value = array();
|
||||
$protocols = $this->field->args( 'protocols' );
|
||||
foreach ( (array) $this->value as $attachment_id => $url ) {
|
||||
if ( ! is_int( $attachment_id ) || $attachment_id < 1 || ! is_scalar( $url ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$url = self::sanitize_and_secure_url( $url, $protocols, '' );
|
||||
if ( '' !== $url ) {
|
||||
$sanitized_value[ $attachment_id ] = $url;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// Handle repeatable fields array
|
||||
// We'll fallback to 'sanitize_text_field'
|
||||
@@ -448,7 +461,11 @@ class CMB2_Sanitize {
|
||||
return $repeat_value;
|
||||
}
|
||||
|
||||
return htmlspecialchars_decode( stripslashes( $this->value ), ENT_COMPAT );
|
||||
if ( ! is_scalar( $this->value ) ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return htmlspecialchars_decode( stripslashes( (string) $this->value ), ENT_COMPAT );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+19
@@ -425,3 +425,22 @@ if ( ! function_exists( 'date_timestamp_get' ) ) {
|
||||
return $date->format( 'U' );
|
||||
}
|
||||
}// End if.
|
||||
|
||||
/**
|
||||
* Passthrough sanitize_callback for the option CMB2_Options_Hookup registers.
|
||||
*
|
||||
* Deliberately a passthrough. Each value is sanitized by CMB2_Sanitize on the
|
||||
* way in, per field type, before the option array is assembled — re-sanitizing
|
||||
* the assembled array here would apply one field type's rule to all of them.
|
||||
* The callback exists so register_setting() has one, which wp.org's Plugin
|
||||
* Check requires of every registered setting.
|
||||
*
|
||||
* @since 2.13.1
|
||||
*
|
||||
* @param mixed $value The option value, already sanitized per-field.
|
||||
*
|
||||
* @return mixed The unmodified value.
|
||||
*/
|
||||
function cmb2_sanitize_option_passthrough( $value ) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
Vendored
+88
-4
@@ -340,16 +340,100 @@ abstract class CMB2_REST_Controller extends WP_REST_Controller {
|
||||
|
||||
} else {
|
||||
|
||||
if ( isset( $this->request['object_id'] ) ) {
|
||||
$this->rest_box->cmb->object_id( sanitize_text_field( $this->request['object_id'] ) );
|
||||
$object_id = isset( $this->request['object_id'] ) ? sanitize_text_field( $this->request['object_id'] ) : null;
|
||||
$object_type = isset( $this->request['object_type'] ) ? sanitize_text_field( $this->request['object_type'] ) : null;
|
||||
|
||||
$error = $this->validate_request_object( $object_type, $object_id );
|
||||
if ( is_wp_error( $error ) ) {
|
||||
$this->rest_box = $error;
|
||||
return;
|
||||
}
|
||||
|
||||
if ( isset( $this->request['object_type'] ) ) {
|
||||
$this->rest_box->cmb->object_type( sanitize_text_field( $this->request['object_type'] ) );
|
||||
if ( null !== $object_id ) {
|
||||
$this->rest_box->cmb->object_id( $object_id );
|
||||
}
|
||||
|
||||
if ( null !== $object_type ) {
|
||||
$this->rest_box->cmb->object_type( $object_type );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the requested object_type/object_id against the box's registration.
|
||||
*
|
||||
* The requested object_type selects the storage the box reads from and writes
|
||||
* to, so it has to be a storage type the box was registered for. For the
|
||||
* options-page type, the object_id is the option name, so it has to be one of
|
||||
* the box's own option keys. This is request validation, so it is applied
|
||||
* regardless of the permissions filters.
|
||||
*
|
||||
* @since 2.13.3
|
||||
*
|
||||
* @param string|null $object_type The requested object type, if any.
|
||||
* @param string|null $object_id The requested object id, if any.
|
||||
*
|
||||
* @return true|WP_Error True if valid, or a WP_Error.
|
||||
*/
|
||||
protected function validate_request_object( $object_type, $object_id ) {
|
||||
if ( null === $object_type || '' === $object_type ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$cmb = $this->rest_box->cmb;
|
||||
|
||||
if ( ! in_array( $object_type, $this->get_box_storage_types( $cmb ), true ) ) {
|
||||
return new WP_Error( 'cmb2_rest_invalid_object_type', __( 'The object_type parameter does not match an object type this box is registered for.', 'cmb2' ), array(
|
||||
'status' => 400,
|
||||
) );
|
||||
}
|
||||
|
||||
if (
|
||||
'options-page' === $object_type
|
||||
&& null !== $object_id
|
||||
&& '' !== $object_id
|
||||
&& ! in_array( $object_id, array_map( 'strval', (array) $cmb->options_page_keys() ), true )
|
||||
) {
|
||||
return new WP_Error( 'cmb2_rest_invalid_object_id', __( 'The object_id parameter does not match an option key this box is registered for.', 'cmb2' ), array(
|
||||
'status' => 400,
|
||||
) );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the storage object types for a box's registered object types.
|
||||
*
|
||||
* Registered types that are not core object types (post types) store as 'post',
|
||||
* matching CMB2::mb_object_type().
|
||||
*
|
||||
* @since 2.13.3
|
||||
*
|
||||
* @param CMB2 $cmb The box.
|
||||
*
|
||||
* @return array The storage object types.
|
||||
*/
|
||||
protected function get_box_storage_types( CMB2 $cmb ) {
|
||||
$types = array();
|
||||
|
||||
if ( $cmb->is_options_page_mb() ) {
|
||||
$types[] = 'options-page';
|
||||
}
|
||||
|
||||
foreach ( $cmb->box_types( array( 'post' ) ) as $type ) {
|
||||
$types[] = $cmb->is_supported_core_object_type( $type ) ? $type : 'post';
|
||||
}
|
||||
|
||||
// A non-core type from the `cmb2_set_box_object_type` filter is the box's own declaration.
|
||||
$mb_object_type = $cmb->mb_object_type();
|
||||
if ( ! $cmb->is_supported_core_object_type( $mb_object_type ) ) {
|
||||
$types[] = $mb_object_type;
|
||||
}
|
||||
|
||||
return array_unique( $types );
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiates the request property and sets up the initial static properties.
|
||||
*
|
||||
|
||||
+3
-3
@@ -329,9 +329,9 @@ class CMB2_REST_Controller_Fields extends CMB2_REST_Controller_Boxes {
|
||||
? $this->field->remove_data()
|
||||
: $this->field->save_field( $this->request['value'] );
|
||||
|
||||
// If options page, save the $activity options
|
||||
if ( 'options-page' == $this->request['object_type'] ) {
|
||||
$this->field->args[ "value_{$activity}" ] = cmb2_options( $this->request['object_id'] )->set();
|
||||
// If options page, save the $activity options to the validated option key.
|
||||
if ( 'options-page' === $this->rest_box->cmb->object_type() ) {
|
||||
$this->field->args[ "value_{$activity}" ] = cmb2_options( $this->rest_box->cmb->object_id() )->set();
|
||||
}
|
||||
|
||||
return $this->prepare_read_field( $this->field );
|
||||
|
||||
Vendored
+11
-1
@@ -17,6 +17,7 @@ class CMB2_Type_File_List extends CMB2_Type_File_Base {
|
||||
$meta_value = $field->escaped_value();
|
||||
$name = $this->_name();
|
||||
$img_size = $field->args( 'preview_size' );
|
||||
$protocols = $field->args( 'protocols' );
|
||||
$query_args = $field->args( 'query_args' );
|
||||
$output = '';
|
||||
|
||||
@@ -48,9 +49,18 @@ class CMB2_Type_File_List extends CMB2_Type_File_Base {
|
||||
if ( $meta_value && is_array( $meta_value ) ) {
|
||||
|
||||
foreach ( $meta_value as $id => $fullurl ) {
|
||||
if ( ! is_int( $id ) || $id < 1 || ! is_scalar( $fullurl ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$fullurl = CMB2_Sanitize::sanitize_and_secure_url( (string) $fullurl, $protocols, '' );
|
||||
if ( '' === $fullurl ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$id_input = parent::render( array(
|
||||
'type' => 'hidden',
|
||||
'value' => $fullurl,
|
||||
'value' => esc_attr( $fullurl ),
|
||||
'name' => $name . '[' . $id . ']',
|
||||
'id' => 'filelist-' . $id,
|
||||
'data-id' => $id,
|
||||
|
||||
+10
-10
@@ -20,7 +20,7 @@
|
||||
* Bill Erickson (@billerickson / billerickson.net)
|
||||
* Andrew Norcross (@norcross / andrewnorcross.com)
|
||||
*
|
||||
* Version: 2.13.0
|
||||
* Version: 2.13.3
|
||||
*
|
||||
* Text Domain: cmb2
|
||||
* Domain Path: languages
|
||||
@@ -53,7 +53,7 @@
|
||||
* ***********************************************************************
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'CMB2_Bootstrap_2130', false ) ) {
|
||||
if ( ! class_exists( 'CMB2_Bootstrap_2133', false ) ) {
|
||||
|
||||
/**
|
||||
* Handles checking for and loading the newest version of CMB2
|
||||
@@ -66,7 +66,7 @@ if ( ! class_exists( 'CMB2_Bootstrap_2130', false ) ) {
|
||||
* @license GPL-2.0+
|
||||
* @link https://cmb2.io
|
||||
*/
|
||||
class CMB2_Bootstrap_2130 {
|
||||
class CMB2_Bootstrap_2133 {
|
||||
|
||||
/**
|
||||
* Current version number
|
||||
@@ -74,7 +74,7 @@ if ( ! class_exists( 'CMB2_Bootstrap_2130', false ) ) {
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
const VERSION = '2.13.0';
|
||||
const VERSION = '2.13.3';
|
||||
|
||||
/**
|
||||
* Current version hook priority.
|
||||
@@ -83,20 +83,20 @@ if ( ! class_exists( 'CMB2_Bootstrap_2130', false ) ) {
|
||||
* @var int
|
||||
* @since 2.0.0
|
||||
*/
|
||||
const PRIORITY = 9955;
|
||||
const PRIORITY = 9952;
|
||||
|
||||
/**
|
||||
* Single instance of the CMB2_Bootstrap_2130 object
|
||||
* Single instance of the CMB2_Bootstrap_2133 object
|
||||
*
|
||||
* @var CMB2_Bootstrap_2130
|
||||
* @var CMB2_Bootstrap_2133
|
||||
*/
|
||||
public static $single_instance = null;
|
||||
|
||||
/**
|
||||
* Creates/returns the single instance CMB2_Bootstrap_2130 object
|
||||
* Creates/returns the single instance CMB2_Bootstrap_2133 object
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return CMB2_Bootstrap_2130 Single instance object
|
||||
* @return CMB2_Bootstrap_2133 Single instance object
|
||||
*/
|
||||
public static function initiate() {
|
||||
if ( null === self::$single_instance ) {
|
||||
@@ -192,6 +192,6 @@ if ( ! class_exists( 'CMB2_Bootstrap_2130', false ) ) {
|
||||
}
|
||||
|
||||
// Make it so...
|
||||
CMB2_Bootstrap_2130::initiate();
|
||||
CMB2_Bootstrap_2133::initiate();
|
||||
|
||||
}// End if().
|
||||
|
||||
@@ -152,6 +152,7 @@ return array(
|
||||
'RankMath\\BuddyPress\\Admin' => $baseDir . '/includes/modules/buddypress/class-admin.php',
|
||||
'RankMath\\BuddyPress\\BuddyPress' => $baseDir . '/includes/modules/buddypress/class-buddypress.php',
|
||||
'RankMath\\CLI\\Commands' => $baseDir . '/includes/cli/class-commands.php',
|
||||
'RankMath\\CLI\\Sitemap_WPCLI' => $baseDir . '/includes/cli/class-sitemap-wpcli.php',
|
||||
'RankMath\\CMB2' => $baseDir . '/includes/class-cmb2.php',
|
||||
'RankMath\\Common' => $baseDir . '/includes/class-common.php',
|
||||
'RankMath\\Compatibility' => $baseDir . '/includes/class-compatibility.php',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitda5118e07739bcc2a9ee8b03eeea8972
|
||||
class ComposerAutoloaderInit1a6db0eae96225599b2819e07037bb60
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@@ -24,18 +24,18 @@ class ComposerAutoloaderInitda5118e07739bcc2a9ee8b03eeea8972
|
||||
|
||||
require __DIR__ . '/platform_check.php';
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitda5118e07739bcc2a9ee8b03eeea8972', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1a6db0eae96225599b2819e07037bb60', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitda5118e07739bcc2a9ee8b03eeea8972', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1a6db0eae96225599b2819e07037bb60', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1a6db0eae96225599b2819e07037bb60::getInitializer($loader));
|
||||
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit1a6db0eae96225599b2819e07037bb60::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireda5118e07739bcc2a9ee8b03eeea8972($fileIdentifier, $file);
|
||||
composerRequire1a6db0eae96225599b2819e07037bb60($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@@ -47,7 +47,7 @@ class ComposerAutoloaderInitda5118e07739bcc2a9ee8b03eeea8972
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequireda5118e07739bcc2a9ee8b03eeea8972($fileIdentifier, $file)
|
||||
function composerRequire1a6db0eae96225599b2819e07037bb60($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972
|
||||
class ComposerStaticInit1a6db0eae96225599b2819e07037bb60
|
||||
{
|
||||
public static $files = array (
|
||||
'6c592737b91137905268e9a0eb968869' => __DIR__ . '/..' . '/wp-media/apply-filters-typed/functions.php',
|
||||
@@ -198,6 +198,7 @@ class ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972
|
||||
'RankMath\\BuddyPress\\Admin' => __DIR__ . '/../..' . '/includes/modules/buddypress/class-admin.php',
|
||||
'RankMath\\BuddyPress\\BuddyPress' => __DIR__ . '/../..' . '/includes/modules/buddypress/class-buddypress.php',
|
||||
'RankMath\\CLI\\Commands' => __DIR__ . '/../..' . '/includes/cli/class-commands.php',
|
||||
'RankMath\\CLI\\Sitemap_WPCLI' => __DIR__ . '/../..' . '/includes/cli/class-sitemap-wpcli.php',
|
||||
'RankMath\\CMB2' => __DIR__ . '/../..' . '/includes/class-cmb2.php',
|
||||
'RankMath\\Common' => __DIR__ . '/../..' . '/includes/class-common.php',
|
||||
'RankMath\\Compatibility' => __DIR__ . '/../..' . '/includes/class-compatibility.php',
|
||||
@@ -748,9 +749,9 @@ class ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitda5118e07739bcc2a9ee8b03eeea8972::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1a6db0eae96225599b2819e07037bb60::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1a6db0eae96225599b2819e07037bb60::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1a6db0eae96225599b2819e07037bb60::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
||||
@@ -55,17 +55,17 @@
|
||||
},
|
||||
{
|
||||
"name": "cmb2/cmb2",
|
||||
"version": "v2.13.0",
|
||||
"version_normalized": "2.13.0.0",
|
||||
"version": "v2.13.3",
|
||||
"version_normalized": "2.13.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CMB2/CMB2.git",
|
||||
"reference": "06783dbfdde0f23e89e088652451525d07bcd03a"
|
||||
"reference": "0f2498434d97876f6f141fa1de99c8ec87840a4a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/CMB2/CMB2/zipball/06783dbfdde0f23e89e088652451525d07bcd03a",
|
||||
"reference": "06783dbfdde0f23e89e088652451525d07bcd03a",
|
||||
"url": "https://api.github.com/repos/CMB2/CMB2/zipball/0f2498434d97876f6f141fa1de99c8ec87840a4a",
|
||||
"reference": "0f2498434d97876f6f141fa1de99c8ec87840a4a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -78,7 +78,7 @@
|
||||
"suggest": {
|
||||
"composer/installers": "~1.0"
|
||||
},
|
||||
"time": "2026-09-21T01:10:54+00:00",
|
||||
"time": "2026-10-03T19:02:06+00:00",
|
||||
"type": "wordpress-plugin",
|
||||
"installation-source": "dist",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php return array(
|
||||
'root' => array(
|
||||
'name' => 'rankmath/seo-by-rank-math',
|
||||
'pretty_version' => 'v1.0.279',
|
||||
'version' => '1.0.279.0',
|
||||
'reference' => 'f9c63fe7ff6c3cf2d90470a6a60b2fbcfbd48f99',
|
||||
'pretty_version' => 'v1.0.280',
|
||||
'version' => '1.0.280.0',
|
||||
'reference' => '5f39f15d5bba2cc2e2134ec52bb55272fff3042b',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
@@ -20,9 +20,9 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'cmb2/cmb2' => array(
|
||||
'pretty_version' => 'v2.13.0',
|
||||
'version' => '2.13.0.0',
|
||||
'reference' => '06783dbfdde0f23e89e088652451525d07bcd03a',
|
||||
'pretty_version' => 'v2.13.3',
|
||||
'version' => '2.13.3.0',
|
||||
'reference' => '0f2498434d97876f6f141fa1de99c8ec87840a4a',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../cmb2/cmb2',
|
||||
'aliases' => array(),
|
||||
@@ -38,9 +38,9 @@
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'rankmath/seo-by-rank-math' => array(
|
||||
'pretty_version' => 'v1.0.279',
|
||||
'version' => '1.0.279.0',
|
||||
'reference' => 'f9c63fe7ff6c3cf2d90470a6a60b2fbcfbd48f99',
|
||||
'pretty_version' => 'v1.0.280',
|
||||
'version' => '1.0.280.0',
|
||||
'reference' => '5f39f15d5bba2cc2e2134ec52bb55272fff3042b',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
|
||||
@@ -1023,7 +1023,10 @@ class WP_Http {
|
||||
|
||||
// Strip all /path/../ out of the path.
|
||||
while ( strpos( $path, '../' ) > 1 ) {
|
||||
$path = preg_replace( '![^/]+/\.\./!', '', $path );
|
||||
$path = preg_replace( '![^/]+/\.\./!', '', $path, -1, $segment_replacement_count );
|
||||
if ( 0 === $segment_replacement_count ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Strip any final leading ../ from the path.
|
||||
|
||||
@@ -79,7 +79,6 @@ class WP_oEmbed {
|
||||
'#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||
'#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ),
|
||||
'#https?://(open|play)\.spotify\.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ),
|
||||
'#https?://(.+\.)?imgur\.com/.*#i' => array( 'https://api.imgur.com/oembed', true ),
|
||||
'#https?://(www\.)?issuu\.com/.+/docs/.+#i' => array( 'https://issuu.com/oembed_wp', true ),
|
||||
'#https?://(www\.)?mixcloud\.com/.*#i' => array( 'https://app.mixcloud.com/oembed/', true ),
|
||||
'#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'https://www.ted.com/services/v1/oembed.{format}', true ),
|
||||
@@ -88,7 +87,7 @@ class WP_oEmbed {
|
||||
'#https?://(www\.)?kickstarter\.com/projects/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ),
|
||||
'#https?://kck\.st/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ),
|
||||
'#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ),
|
||||
'#https?://(www\.)?reverbnation\.com/.*#i' => array( 'https://www.reverbnation.com/oembed', true ),
|
||||
'#https?://((legacy|www)\.)?reverbnation\.com/.*#i' => array( 'https://legacy.reverbnation.com/oembed', true ),
|
||||
'#https?://videopress\.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/?for=' . $host, true ),
|
||||
'#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ),
|
||||
'#https?://(www\.)?speakerdeck\.com/.*#i' => array( 'https://speakerdeck.com/oembed.{format}', true ),
|
||||
@@ -102,9 +101,6 @@ class WP_oEmbed {
|
||||
'#https?://(www\.)?amzn\.in/.*#i' => array( 'https://read.amazon.in/kp/api/oembed', true ),
|
||||
'#https?://(www\.)?amzn\.asia/.*#i' => array( 'https://read.amazon.com.au/kp/api/oembed', true ),
|
||||
'#https?://(www\.)?z\.cn/.*#i' => array( 'https://read.amazon.cn/kp/api/oembed', true ),
|
||||
'#https?://www\.someecards\.com/.+-cards/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
|
||||
'#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
|
||||
'#https?://some\.ly\/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
|
||||
'#https?://(www\.)?tiktok\.com/.*/video/.*#i' => array( 'https://www.tiktok.com/oembed', true ),
|
||||
'#https?://(www\.)?tiktok\.com/@.*#i' => array( 'https://www.tiktok.com/oembed', true ),
|
||||
'#https?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ),
|
||||
@@ -154,7 +150,6 @@ class WP_oEmbed {
|
||||
* | Dailymotion | dai.ly | 3.6.0 |
|
||||
* | Flickr | flic.kr | 3.6.0 |
|
||||
* | Spotify | spotify.com | 3.6.0 |
|
||||
* | Imgur | imgur.com | 3.9.0 |
|
||||
* | Animoto | animoto.com | 4.0.0 |
|
||||
* | Animoto | video214.com | 4.0.0 |
|
||||
* | Issuu | issuu.com | 4.0.0 |
|
||||
@@ -183,8 +178,6 @@ class WP_oEmbed {
|
||||
* | Amazon | a.co | 4.9.0 |
|
||||
* | Amazon | amzn.to (eu, in, asia) | 4.9.0 |
|
||||
* | Amazon | z.cn | 4.9.0 |
|
||||
* | Someecards | someecards.com | 4.9.0 |
|
||||
* | Someecards | some.ly | 4.9.0 |
|
||||
* | Crowdsignal | survey.fm | 5.1.0 |
|
||||
* | TikTok | tiktok.com | 5.4.0 |
|
||||
* | Pinterest | pinterest.com | 5.9.0 |
|
||||
@@ -219,6 +212,9 @@ class WP_oEmbed {
|
||||
* | Meetup.com | meetu.ps | 3.9.0 | 6.0.1 |
|
||||
* | SlideShare | slideshare.net | 3.5.0 | 6.6.0 |
|
||||
* | Screencast | screencast.com | 4.8.0 | 6.8.2 |
|
||||
* | Imgur | imgur.com | 3.9.0 | 7.1.3 |
|
||||
* | Someecards | someecards.com | 4.9.0 | 7.1.3 |
|
||||
* | Someecards | some.ly | 4.9.0 | 7.1.3 |
|
||||
*
|
||||
* @see wp_oembed_add_provider()
|
||||
*
|
||||
|
||||
@@ -3484,43 +3484,6 @@ class WP_Query {
|
||||
$this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) );
|
||||
}
|
||||
|
||||
if ( ! empty( $this->posts ) && $this->is_comment_feed && $this->is_singular ) {
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$cjoin = apply_filters_ref_array( 'comment_feed_join', array( '', &$this ) );
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$cwhere = apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1' AND {$wpdb->comments}.comment_type != 'note'", &$this ) );
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( '', &$this ) );
|
||||
$cgroupby = ( ! empty( $cgroupby ) ) ? 'GROUP BY ' . $cgroupby : '';
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) );
|
||||
$corderby = ( ! empty( $corderby ) ) ? 'ORDER BY ' . $corderby : '';
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );
|
||||
|
||||
$comments_request = "SELECT {$wpdb->comments}.comment_ID FROM {$wpdb->comments} $cjoin $cwhere $cgroupby $corderby $climits";
|
||||
|
||||
$comment_key = md5( $comments_request );
|
||||
$comment_last_changed = wp_cache_get_last_changed( 'comment' );
|
||||
|
||||
$comment_cache_key = "comment_feed:$comment_key";
|
||||
$comment_ids = wp_cache_get_salted( $comment_cache_key, 'comment-queries', $comment_last_changed );
|
||||
if ( false === $comment_ids ) {
|
||||
$comment_ids = $wpdb->get_col( $comments_request );
|
||||
wp_cache_set_salted( $comment_cache_key, $comment_ids, 'comment-queries', $comment_last_changed );
|
||||
}
|
||||
_prime_comment_caches( $comment_ids );
|
||||
|
||||
// Convert to WP_Comment.
|
||||
/** @var WP_Comment[] */
|
||||
$this->comments = array_map( 'get_comment', $comment_ids );
|
||||
$this->comment_count = count( $this->comments );
|
||||
}
|
||||
|
||||
// Check post status to determine if post should be displayed.
|
||||
if ( ! empty( $this->posts ) && ( $this->is_single || $this->is_page ) ) {
|
||||
$status = get_post_status( $this->posts[0] );
|
||||
@@ -3579,6 +3542,43 @@ class WP_Query {
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $this->posts ) && $this->is_comment_feed && $this->is_singular ) {
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$cjoin = apply_filters_ref_array( 'comment_feed_join', array( '', &$this ) );
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$cwhere = apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1' AND {$wpdb->comments}.comment_type != 'note'", &$this ) );
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( '', &$this ) );
|
||||
$cgroupby = ( ! empty( $cgroupby ) ) ? 'GROUP BY ' . $cgroupby : '';
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) );
|
||||
$corderby = ( ! empty( $corderby ) ) ? 'ORDER BY ' . $corderby : '';
|
||||
|
||||
/** This filter is documented in wp-includes/class-wp-query.php */
|
||||
$climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) );
|
||||
|
||||
$comments_request = "SELECT {$wpdb->comments}.comment_ID FROM {$wpdb->comments} $cjoin $cwhere $cgroupby $corderby $climits";
|
||||
|
||||
$comment_key = md5( $comments_request );
|
||||
$comment_last_changed = wp_cache_get_last_changed( 'comment' );
|
||||
|
||||
$comment_cache_key = "comment_feed:$comment_key";
|
||||
$comment_ids = wp_cache_get_salted( $comment_cache_key, 'comment-queries', $comment_last_changed );
|
||||
if ( false === $comment_ids ) {
|
||||
$comment_ids = $wpdb->get_col( $comments_request );
|
||||
wp_cache_set_salted( $comment_cache_key, $comment_ids, 'comment-queries', $comment_last_changed );
|
||||
}
|
||||
_prime_comment_caches( $comment_ids );
|
||||
|
||||
// Convert to WP_Comment.
|
||||
/** @var WP_Comment[] */
|
||||
$this->comments = array_map( 'get_comment', $comment_ids );
|
||||
$this->comment_count = count( $this->comments );
|
||||
}
|
||||
|
||||
// Put sticky posts at the top of the posts array.
|
||||
$sticky_posts = get_option( 'sticky_posts' );
|
||||
if ( $this->is_home && $page <= 1 && is_array( $sticky_posts ) && ! empty( $sticky_posts ) && ! $query_vars['ignore_sticky_posts'] ) {
|
||||
|
||||
@@ -599,9 +599,14 @@ html:lang(he-il) .rtl #wpadminbar * {
|
||||
content: none;
|
||||
}
|
||||
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon {
|
||||
/* The adminbar icon needs additional styling to prevent 3rd party styles from overriding the size. */
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item img.site-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
max-width: 20px;
|
||||
max-height: 20px;
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
@@ -947,12 +952,16 @@ html:lang(he-il) .rtl #wpadminbar * {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon {
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item img.site-icon {
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
right: 12px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
max-width: 28px;
|
||||
max-height: 28px;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
margin: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -598,9 +598,14 @@ html:lang(he-il) .rtl #wpadminbar * {
|
||||
content: none;
|
||||
}
|
||||
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon {
|
||||
/* The adminbar icon needs additional styling to prevent 3rd party styles from overriding the size. */
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item img.site-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
max-width: 20px;
|
||||
max-height: 20px;
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
@@ -946,12 +951,16 @@ html:lang(he-il) .rtl #wpadminbar * {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon {
|
||||
#wpadminbar #wp-admin-bar-site-name > .ab-item img.site-icon {
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
left: 12px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
max-width: 28px;
|
||||
max-height: 28px;
|
||||
min-width: 28px;
|
||||
min-height: 28px;
|
||||
margin: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+64
-56
@@ -5921,63 +5921,71 @@ function wp_transition_post_status( $new_status, $old_status, $post ) {
|
||||
*/
|
||||
do_action( 'transition_post_status', $new_status, $old_status, $post );
|
||||
|
||||
/**
|
||||
* Fires when a post is transitioned from one status to another.
|
||||
*
|
||||
* The dynamic portions of the hook name, `$new_status` and `$old_status`,
|
||||
* refer to the old and new post statuses, respectively.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `draft_to_publish`
|
||||
* - `publish_to_trash`
|
||||
* - `pending_to_draft`
|
||||
*
|
||||
* @since 2.3.0
|
||||
*
|
||||
* @param WP_Post $post Post object.
|
||||
*/
|
||||
do_action( "{$old_status}_to_{$new_status}", $post );
|
||||
$new_status_object = get_post_status_object( $new_status );
|
||||
$old_status_valid = get_post_status_object( $old_status ) || 'new' === $old_status;
|
||||
$post_type_object = get_post_type_object( $post->post_type );
|
||||
|
||||
/**
|
||||
* Fires when a post is transitioned from one status to another.
|
||||
*
|
||||
* The dynamic portions of the hook name, `$new_status` and `$post->post_type`,
|
||||
* refer to the new post status and post type, respectively.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `draft_post`
|
||||
* - `future_post`
|
||||
* - `pending_post`
|
||||
* - `private_post`
|
||||
* - `publish_post`
|
||||
* - `trash_post`
|
||||
* - `draft_page`
|
||||
* - `future_page`
|
||||
* - `pending_page`
|
||||
* - `private_page`
|
||||
* - `publish_page`
|
||||
* - `trash_page`
|
||||
* - `publish_attachment`
|
||||
* - `trash_attachment`
|
||||
*
|
||||
* Please note: When this action is hooked using a particular post status (like
|
||||
* 'publish', as `publish_{$post->post_type}`), it will fire both when a post is
|
||||
* first transitioned to that status from something else, as well as upon
|
||||
* subsequent post updates (old and new status are both the same).
|
||||
*
|
||||
* Therefore, if you are looking to only fire a callback when a post is first
|
||||
* transitioned to a status, use the {@see 'transition_post_status'} hook instead.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @since 5.9.0 Added `$old_status` parameter.
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param WP_Post $post Post object.
|
||||
* @param string $old_status Old post status.
|
||||
*/
|
||||
do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status );
|
||||
if ( $new_status_object && $old_status_valid ) {
|
||||
/**
|
||||
* Fires when a post is transitioned from one status to another.
|
||||
*
|
||||
* The dynamic portions of the hook name, `$new_status` and `$old_status`,
|
||||
* refer to the old and new post statuses, respectively.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `draft_to_publish`
|
||||
* - `publish_to_trash`
|
||||
* - `pending_to_draft`
|
||||
*
|
||||
* @since 2.3.0
|
||||
*
|
||||
* @param WP_Post $post Post object.
|
||||
*/
|
||||
do_action( "{$old_status}_to_{$new_status}", $post );
|
||||
}
|
||||
|
||||
if ( $new_status_object && $post_type_object ) {
|
||||
/**
|
||||
* Fires when a post is transitioned from one status to another.
|
||||
*
|
||||
* The dynamic portions of the hook name, `$new_status` and `$post->post_type`,
|
||||
* refer to the new post status and post type, respectively.
|
||||
*
|
||||
* Possible hook names include:
|
||||
*
|
||||
* - `draft_post`
|
||||
* - `future_post`
|
||||
* - `pending_post`
|
||||
* - `private_post`
|
||||
* - `publish_post`
|
||||
* - `trash_post`
|
||||
* - `draft_page`
|
||||
* - `future_page`
|
||||
* - `pending_page`
|
||||
* - `private_page`
|
||||
* - `publish_page`
|
||||
* - `trash_page`
|
||||
* - `publish_attachment`
|
||||
* - `trash_attachment`
|
||||
*
|
||||
* Please note: When this action is hooked using a particular post status (like
|
||||
* 'publish', as `publish_{$post->post_type}`), it will fire both when a post is
|
||||
* first transitioned to that status from something else, as well as upon
|
||||
* subsequent post updates (old and new status are both the same).
|
||||
*
|
||||
* Therefore, if you are looking to only fire a callback when a post is first
|
||||
* transitioned to a status, use the {@see 'transition_post_status'} hook instead.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @since 5.9.0 Added `$old_status` parameter.
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param WP_Post $post Post object.
|
||||
* @param string $old_status Old post status.
|
||||
*/
|
||||
do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -703,7 +703,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! empty( $request['sticky'] ) && ! current_user_can( $post_type->cap->edit_others_posts ) && ! current_user_can( $post_type->cap->publish_posts ) ) {
|
||||
if ( ! empty( $request['sticky'] ) && ( ! current_user_can( $post_type->cap->edit_others_posts ) || ! current_user_can( $post_type->cap->publish_posts ) ) ) {
|
||||
return new WP_Error(
|
||||
'rest_cannot_assign_sticky',
|
||||
__( 'Sorry, you are not allowed to make posts sticky.' ),
|
||||
@@ -914,7 +914,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! empty( $request['sticky'] ) && ! current_user_can( $post_type->cap->edit_others_posts ) && ! current_user_can( $post_type->cap->publish_posts ) ) {
|
||||
if ( isset( $request['sticky'] ) && is_sticky( $post->ID ) !== (bool) $request['sticky'] && ( ! current_user_can( $post_type->cap->edit_others_posts ) || ! current_user_can( $post_type->cap->publish_posts ) ) ) {
|
||||
return new WP_Error(
|
||||
'rest_cannot_assign_sticky',
|
||||
__( 'Sorry, you are not allowed to make posts sticky.' ),
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.1.2';
|
||||
$wp_version = '7.1.3';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user