Skip to content

Commit

Permalink
Normalize whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
agapetry committed Jul 3, 2024
1 parent 5e87873 commit 9e0dafd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion admin/admin-init_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function rvy_admin_init() {
|| (isset($_REQUEST['action']) && in_array($_REQUEST['action'], ['decline_revision']))
) {
$doaction = (!empty($_REQUEST['action']) && !is_numeric($_REQUEST['action'])) ? sanitize_key($_REQUEST['action']) : sanitize_key($_REQUEST['action2']);

if (empty($_POST) && in_array($_REQUEST['action'], ['decline_revision'])) {
check_admin_referer('decline-revision');
} else {
Expand Down
2 changes: 1 addition & 1 deletion admin/class-list-table_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct($args = []) {
}
}
}

foreach ($triggered_deletions as $revision_id => $post_id) {
if ($revision_id) {
wp_delete_post($revision_id, true);
Expand Down
10 changes: 5 additions & 5 deletions admin/history_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ function actCompareRevisionsTweakUI() {
|| (rvy_get_option('revision_restore_require_cap') && !current_user_can('administrator') && !is_super_admin() && !current_user_can('restore_revisions'))
) :
?>
<style type='text/css'>
input.restore-revision {display:none !important;}
</style>
<?php
<style type='text/css'>
input.restore-revision {display:none !important;}
</style>
<?php

endif;
endif;
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions admin/rvy_post-classic-edit.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jQuery(document).ready( function($) {
}

function rvySchedulePost() {
var revisionaryScheduleDone = function () {
var revisionaryScheduleDone = function () {
$('.revision-schedule').hide();
$('.revision-scheduled-wrapper').show();

Expand All @@ -138,15 +138,15 @@ jQuery(document).ready( function($) {
$('div.rvy-creation-ui').html(rvyObjEdit.errorCaption);
}

var data = {'rvy_ajax_field': 'create_scheduled_revision', 'rvy_ajax_value': rvyObjEdit.postID, 'rvy_date_selection': RvyTimeSelection, 'nc': RvyGetRandomInt(99999999)};
var data = {'rvy_ajax_field': 'create_scheduled_revision', 'rvy_ajax_value': rvyObjEdit.postID, 'rvy_date_selection': RvyTimeSelection, 'nc': RvyGetRandomInt(99999999)};

$.ajax({
url: rvyObjEdit.ajaxurl,
data: data,
dataType: "html",
success: revisionaryScheduleDone,
error: revisionaryScheduleError
});
$.ajax({
url: rvyObjEdit.ajaxurl,
data: data,
dataType: "html",
success: revisionaryScheduleDone,
error: revisionaryScheduleError
});
}

$(document).on('click', '#normal-sortables input, #normal-sortables select', function() {
Expand Down Expand Up @@ -175,7 +175,7 @@ jQuery(document).ready( function($) {
wp.autosave.server.triggerSave();
} else {
rvySchedulePost();
}
}
});

$(document).on('click', '#post-body-content *, #content_ifr *, #wp-content-editor-container *, #tinymce *, #submitpost, span.revision-created', function() {
Expand Down
3 changes: 2 additions & 1 deletion admin/rvy_revision-classic-edit.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ jQuery(document).ready( function($) {
$(document).on('click', 'div.postbox-container', function() {
$('a.revision-approve, a.rvy-direct-approve').attr('disabled', 'disabled');
});
var rvyThumbnail = $('#set-post-thumbnail img').attr('src');

var rvyThumbnail = $('#set-post-thumbnail img').attr('src');

setInterval(function() {
if ($('#set-post-thumbnail img').attr('src') != rvyThumbnail) {
Expand Down
2 changes: 1 addition & 1 deletion revisionary_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function addFilters() {
}

add_action( 'wpmu_new_blog', array( $this, 'act_new_blog'), 10, 2 );

add_action('trashed_post', [$this, 'actTrashedPost']);

add_action( 'deleted_post', [$this, 'actDeletedPost']);
Expand Down

0 comments on commit 9e0dafd

Please sign in to comment.