Skip to content

Commit

Permalink
Merge pull request #1152 from publishpress/release-3.5.6
Browse files Browse the repository at this point in the history
Release 3.5.6
  • Loading branch information
agapetry authored Jan 2, 2024
2 parents 031935e + a0c7fd4 commit d3c4be9
Show file tree
Hide file tree
Showing 16 changed files with 338 additions and 249 deletions.
18 changes: 17 additions & 1 deletion admin/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function options_ui( $sitewide = false, $customize_defaults = false ) {
'display_hints' => esc_html__('Display Hints'),
'revision_preview_links' => esc_html__('Show Preview Links', 'revisionary'),
'preview_link_type' => esc_html__('Preview Link Type', 'revisionary'),
'preview_link_alternate_preview_arg' => esc_html__('Modify preview link for better theme compatibility', 'revisionary'),
'compare_revisions_direct_approval' => esc_html__('Approve Button on Compare Revisions screen', 'revisionary'),
'copy_revision_comments_to_post' => esc_html__('Copy revision comments to published post', 'revisionary'),
'past_revisions_order_by' => esc_html__('Compare Past Revisions ordering:'),
Expand Down Expand Up @@ -179,7 +180,7 @@ function options_ui( $sitewide = false, $customize_defaults = false ) {
'scheduled_revisions' => ['scheduled_revisions', 'scheduled_publish_cron', 'async_scheduled_publish', 'wp_cron_usage_detected', 'scheduled_revision_update_post_date', 'scheduled_revision_update_modified_date'],
'pending_revisions' => ['pending_revisions', 'revise_posts_capability', 'pending_revision_update_post_date', 'pending_revision_update_modified_date'],
'revision_queue' => ['revisor_lock_others_revisions', 'revisor_hide_others_revisions', 'admin_revisions_to_own_posts', 'list_unsubmitted_revisions'],
'preview' => ['revision_preview_links', 'preview_link_type', 'compare_revisions_direct_approval'],
'preview' => ['revision_preview_links', 'preview_link_type', 'preview_link_alternate_preview_arg', 'compare_revisions_direct_approval'],
'revisions' => ['trigger_post_update_actions', 'copy_revision_comments_to_post', 'diff_display_strip_tags', 'past_revisions_order_by', 'rev_publication_delete_ed_comments', 'deletion_queue', 'revision_archive_deletion', 'display_hints'],
'notification' => ['pending_rev_notify_admin', 'pending_rev_notify_author', 'revision_update_notifications', 'rev_approval_notify_admin', 'rev_approval_notify_author', 'rev_approval_notify_revisor', 'publish_scheduled_notify_admin', 'publish_scheduled_notify_author', 'publish_scheduled_notify_revisor', 'use_notification_buffer'],
]
Expand Down Expand Up @@ -676,6 +677,21 @@ function options_ui( $sitewide = false, $customize_defaults = false ) {
?>
</div>
<?php endif;

echo '<br />';

if (defined('RVY_PREVIEW_ARG_LOCKED') && defined('RVY_PREVIEW_ARG')) {
printf(
esc_html__(
'The revision preview argument is configured by constant definition: %s',
'revisionary'
),
RVY_PREVIEW_ARG
);
} else {
$hint = esc_html__('Adjust preview links to use "rv_preview" argument instead of "preview". Experiment to see which works best with your theme.', 'revisionary');
$this->option_checkbox( 'preview_link_alternate_preview_arg', $tab, $section, $hint, '' );
}
?>
</div>
<br />
Expand Down
4 changes: 4 additions & 0 deletions admin/rvy-revision-edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ box-shadow: inset 0 0 0 1px #6f1b1b;
span.revision-submitting {
font-weight: bold;
}

div.edit-post-post-status h2 {
margin-top: 10px !important;
}
5 changes: 5 additions & 0 deletions admin/rvy_revision-block-edit.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ jQuery(document).ready(function ($) {
var refSelector = 'div.edit-post-post-schedule';
} else {
var refSelector = 'div.edit-post-post-visibility';

if (!$(refSelector).length) {
refSelector = 'div.edit-post-post-status h2';
}
}

if (rvyObjEdit.ajaxurl && !$('div.edit-post-revision-status').length && $(refSelector).length) {
$(refSelector).before(
'<div class="components-panel__row rvy-creation-ui edit-post-revision-status">'
Expand Down
2 changes: 1 addition & 1 deletion admin/rvy_revision-block-edit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions defaults_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function rvy_default_options_sitewide() {
'edd_key' => true,
'revision_preview_links' => true,
'preview_link_type' => true,
'preview_link_alternate_preview_arg' => true,
'compare_revisions_direct_approval' => true,
'display_pp_branding' => true,
'revision_update_notifications' => true,
Expand Down Expand Up @@ -104,6 +105,7 @@ function rvy_default_options() {
'edd_key' => '',
'revision_preview_links' => 1,
'preview_link_type' => 'published_slug',
'preview_link_alternate_preview_arg' => 1,
'compare_revisions_direct_approval' => 0,
'display_pp_branding' => 1,
'revision_update_notifications' => 0,
Expand Down
Binary file modified languages/revisionary-es_ES.mo
Binary file not shown.
98 changes: 54 additions & 44 deletions languages/revisionary-es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: Plugins - PublishPress Revisions: Duplicate Posts, "
"Submit, Approve and Schedule Content Changes - Stable (latest release)\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
"POT-Creation-Date: 2023-10-21T02:00:27+00:00\n"
"PO-Revision-Date: 2023-10-26 16:40+0200\n"
"POT-Creation-Date: 2023-12-12T15:42:27+00:00\n"
"PO-Revision-Date: 2023-12-13 10:10+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
Expand Down Expand Up @@ -182,7 +182,7 @@ msgstr "Resultados de la búsqueda de «%s»"

#: admin/class-list-table-archive.php:384 admin/class-list-table_rvy.php:1023
#: admin/class-list-table_rvy.php:1290 admin/post-edit-block-ui_rvy.php:94
#: admin/post-edit_rvy.php:51 admin/RevisionEditSubmitMetabox.php:62
#: admin/post-edit_rvy.php:52 admin/RevisionEditSubmitMetabox.php:62
msgid "Delete Revision"
msgstr "Borrar revisión"

Expand Down Expand Up @@ -264,8 +264,8 @@ msgid "Compare Changes in %s"
msgstr "Comparar los cambios en %s"

#: admin/class-list-table-archive.php:759 admin/class-list-table_rvy.php:1331
#: admin/edit-revision-classic-ui_rvy.php:92 admin/post-edit_rvy.php:138
#: admin/post-edit_rvy.php:152
#: admin/edit-revision-classic-ui_rvy.php:92 admin/post-edit_rvy.php:178
#: admin/post-edit_rvy.php:192
msgctxt "revisions"
msgid "Compare"
msgstr "Comparar"
Expand Down Expand Up @@ -349,7 +349,7 @@ msgstr "Desprogramar"

#. translators: %s: post title
#: admin/class-list-table_rvy.php:1023 admin/class-list-table_rvy.php:1286
#: admin/post-edit-block-ui_rvy.php:94 admin/post-edit_rvy.php:51
#: admin/post-edit-block-ui_rvy.php:94 admin/post-edit_rvy.php:52
#: admin/RevisionEditSubmitMetabox.php:62
msgid "Discard Revision"
msgstr "Descartar la revisión"
Expand Down Expand Up @@ -444,7 +444,7 @@ msgctxt "revision date short format"
msgid "j M @ H:i"
msgstr "j M @ H:i"

#: admin/history_rvy.php:1070 front_rvy.php:356 front_rvy.php:381
#: admin/history_rvy.php:1070 front_rvy.php:433 front_rvy.php:458
#: rvy_init-functions.php:260 rvy_init-functions.php:278
#: rvy_init-functions.php:317 rvy_init-functions.php:334
#: rvy_init-functions.php:351
Expand All @@ -458,8 +458,7 @@ msgstr "Vista previa / Aprobar"
#: admin/history_rvy.php:1072 admin/post-editor-workflow-ui_rvy.php:52
#: admin/post-editor-workflow-ui_rvy.php:96
#: admin/post-editor-workflow-ui_rvy.php:192
#: admin/RevisionEditSubmitMetabox.php:124
#: admin/RevisionEditSubmitMetabox.php:127
#: admin/RevisionEditSubmitMetabox.php:123
msgid "Preview"
msgstr "Vista previa"

Expand Down Expand Up @@ -1073,7 +1072,7 @@ msgstr ""
"Todos los ajustes de este formulario (incluidos los de las pestañas no "
"seleccionadas) se restablecerán a los valores por defecto. ¿Estás seguro?"

#: admin/post-edit-block-ui_rvy.php:150 admin/post-edit_rvy.php:223
#: admin/post-edit-block-ui_rvy.php:150 admin/post-edit_rvy.php:263
msgid "Author"
msgstr "Autor"

Expand All @@ -1095,8 +1094,8 @@ msgid "View / Approve"
msgstr "Ver / Aprobar"

#: admin/post-editor-workflow-ui_rvy.php:57
msgid "View / Approve saved revision"
msgstr "Ver / Aprobar revisión guardada"
msgid "View / Moderate saved revision"
msgstr "Ver / moderar la revisión guardada"

#: admin/post-editor-workflow-ui_rvy.php:60
msgid "View / Submit saved revision"
Expand All @@ -1117,7 +1116,7 @@ msgid "Revision Submission Error"
msgstr "Error de envío de revisión"

#: admin/post-editor-workflow-ui_rvy.php:101
#: admin/post-editor-workflow-ui_rvy.php:193 front_rvy.php:314
#: admin/post-editor-workflow-ui_rvy.php:193 front_rvy.php:391
msgid "Edit"
msgstr "Editar"

Expand Down Expand Up @@ -1153,64 +1152,68 @@ msgstr "Actualizar"
msgid "For custom field changes, edit a scheduled %s."
msgstr "Para los cambios de campos personalizados, edita una %s programada."

#: admin/post-edit_rvy.php:26 admin/post-edit_rvy.php:84
#: admin/post-edit_rvy.php:27 admin/post-edit_rvy.php:85
msgid "Current Time"
msgstr "Hora actual"

#: admin/post-edit_rvy.php:113 admin/RevisionEditSubmitMetabox.php:125
#: admin/post-edit_rvy.php:111
msgid "View revision in progress"
msgstr "Ver la revisión en progreso"

#: admin/post-edit_rvy.php:150
msgid "View / moderate saved revision"
msgstr "Ver / moderar la revisión guardada"

#: admin/post-edit_rvy.php:116 admin/RevisionEditSubmitMetabox.php:128
#: admin/post-edit_rvy.php:153
msgid "View saved revision"
msgstr "Ver la revisión guardada"

#: admin/revision-action_rvy.php:416 admin/revision-action_rvy.php:502
#: admin/revision-action_rvy.php:417 admin/revision-action_rvy.php:503
msgid "[%s] Revision Approval Notice"
msgstr "[%s] Aviso de aprobación de revisión"

#: admin/revision-action_rvy.php:417
#: admin/revision-action_rvy.php:418
msgid "A revision to the %1$s \"%2$s\" has been approved."
msgstr "Una revisión para la %1$s «%2$s» ha sido aprobada."

#: admin/revision-action_rvy.php:421
#: admin/revision-action_rvy.php:422
msgid "The submitter was %1$s."
msgstr "El remitente fue %1$s."

#: admin/revision-action_rvy.php:425 admin/revision-action_rvy.php:507
#: admin/revision-action_rvy.php:426 admin/revision-action_rvy.php:508
msgid "It will be published on %s"
msgstr "Se publicará el %s"

#: admin/revision-action_rvy.php:429 admin/revision-action_rvy.php:511
#: admin/revision-action_rvy.php:430 admin/revision-action_rvy.php:512
msgid "Preview it here: "
msgstr "Una vista previa aquí: "

#: admin/revision-action_rvy.php:432 admin/revision-action_rvy.php:514
#: admin/revision-action_rvy.php:433 admin/revision-action_rvy.php:515
msgid "Editor: "
msgstr "Editor: "

#: admin/revision-action_rvy.php:434 admin/revision-action_rvy.php:516
#: admin/revision-action_rvy.php:1343 admin/revision-action_rvy.php:1368
#: admin/revision-action_rvy.php:1430
#: admin/revision-action_rvy.php:435 admin/revision-action_rvy.php:517
#: admin/revision-action_rvy.php:1346 admin/revision-action_rvy.php:1371
#: admin/revision-action_rvy.php:1433
msgid "View it online: "
msgstr "Ver en línea: "

#: admin/revision-action_rvy.php:503
#: admin/revision-action_rvy.php:504
msgid "The revision you submitted for the %1$s \"%2$s\" has been approved."
msgstr "La revisión que has enviado para la %1$s «%2$s» ha sido aprobada."

#: admin/revision-action_rvy.php:1339 admin/revision-action_rvy.php:1361
#: admin/revision-action_rvy.php:1342 admin/revision-action_rvy.php:1364
msgid "[%s] %s Publication Notice"
msgstr "[%s] %s aviso de publicación"

#: admin/revision-action_rvy.php:1340
#: admin/revision-action_rvy.php:1343
msgid ""
"The scheduled revision you submitted for the %1$s \"%2$s\" has been "
"published."
msgstr ""
"La revisión programada que has enviado para la %1$s «%2$s» ha sido publicada."

#: admin/revision-action_rvy.php:1362
#: admin/revision-action_rvy.php:1365
msgid "A scheduled revision to your %1$s \"%2$s\" has been published."
msgstr "Se ha publicado una revisión programada de tu %1$s «%2$s."

Expand Down Expand Up @@ -1321,20 +1324,24 @@ msgstr ""
"%1$s <span class=\"rvy-revision-pubish-date\">(Fecha de publicación: %2$s)</"
"span>"

#: admin/revision-ui_rvy.php:276
#: admin/revision-ui_rvy.php:277
msgid "The revision will be deleted. Are you sure?"
msgstr "La revisión será borrada. ¿Estás seguro?"

#: admin/revision-ui_rvy.php:369
#: admin/revision-ui_rvy.php:370
msgid "Modified Date"
msgstr "Fecha de modificación"

#: admin/RevisionEditSubmitMetabox.php:124
msgid "Preview revision in progress"
msgstr "Previsualizar la revisión en progreso"

#. translators: Publish box date formt, see http://php.net/date
#: admin/RevisionEditSubmitMetabox.php:183
#: admin/RevisionEditSubmitMetabox.php:180
msgid "M j, Y @ G:i"
msgstr "j \\d\\e F \\d\\e Y @ H:i"

#: admin/RevisionEditSubmitMetabox.php:194
#: admin/RevisionEditSubmitMetabox.php:191
msgid "Publish %son approval%s"
msgstr "Publicar %sprevia aprobación%s"

Expand Down Expand Up @@ -1376,47 +1383,47 @@ msgstr "%1$s %2$s (%3$s)%4$s"
msgid "no %s revisions available."
msgstr "no hay revisiones %s disponibles."

#: front_rvy.php:280
#: front_rvy.php:357
msgid "%sView Queue%s"
msgstr "%sVer cola%s"

#: front_rvy.php:289
#: front_rvy.php:366
msgid "%sCompare%s%sView Published Post%s"
msgstr "%sComparar%s%sVer entrada publicada%s"

#: front_rvy.php:303
#: front_rvy.php:380
msgid "%sView Published Post%s"
msgstr "%sVer entrada publicada%s"

#: front_rvy.php:359 rvy_init-functions.php:274 rvy_init-functions.php:330
#: front_rvy.php:436 rvy_init-functions.php:274 rvy_init-functions.php:330
msgid "Submit"
msgstr "Enviar"

#: front_rvy.php:366 front_rvy.php:395 front_rvy.php:411
#: front_rvy.php:443 front_rvy.php:472 front_rvy.php:488
msgid "Publish now"
msgstr "Publicar ahora"

#: front_rvy.php:371 front_rvy.php:373 front_rvy.php:399 front_rvy.php:401
#: front_rvy.php:448 front_rvy.php:450 front_rvy.php:476 front_rvy.php:478
msgid "This is a %s. %s %s %s"
msgstr "Esto es un %s. %s %s %s"

#: front_rvy.php:388 front_rvy.php:390
#: front_rvy.php:465 front_rvy.php:467
msgid "This is a %s (requested publish date: %s). %s %s %s"
msgstr "Esto es un %s (fecha de publicación solicitada: %s). %s %s %s"

#: front_rvy.php:414 front_rvy.php:416
#: front_rvy.php:491 front_rvy.php:493
msgid "This is a %s (for publication on %s). %s %s %s"
msgstr "Esto es un %s (para publicar en %s). %s %s %s"

#: front_rvy.php:431 front_rvy.php:433
#: front_rvy.php:508 front_rvy.php:510
msgid "This is the Current Revision. %s"
msgstr "Esta es la revisión actual. %s"

#: front_rvy.php:440
#: front_rvy.php:517
msgid "Restore"
msgstr "Restaurar"

#: front_rvy.php:443 front_rvy.php:445
#: front_rvy.php:520 front_rvy.php:522
msgid "This is a Past Revision (from %s). %s %s"
msgstr "Esta es una revisión anterior (de %s). %s %s"

Expand Down Expand Up @@ -1796,6 +1803,9 @@ msgstr "Revisor"
msgid "Revision Workflow"
msgstr "Flujo de trabajo de revisión"

#~ msgid "View / Approve saved revision"
#~ msgstr "Ver / Aprobar revisión guardada"

#~ msgid "Move to Trash"
#~ msgstr "Mover a la papelera"

Expand Down
Binary file modified languages/revisionary-fr_FR.mo
Binary file not shown.
Loading

0 comments on commit d3c4be9

Please sign in to comment.