GRAYBYTE WORDPRESS FILE MANAGER6659

Server IP : 3.104.188.249 / Your IP : 216.73.217.141
System : Linux ip-172-26-1-242 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
PHP Version : 8.3.31
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : ON | Pkexec : OFF
Directory : /var/www/html/wp-admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/www/html/wp-admin//revision.php
<?php
/**
 * Revisions administration panel
 *
 * Requires wp-admin/includes/revision.php.
 *
 * @package WordPress
 * @subpackage Administration
 * @since 2.6.0
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

require ABSPATH . 'wp-admin/includes/revision.php';

/**
 * @global int    $revision_id Optional. The revision ID.
 * @global string $action      The action to take. Accepts 'restore', 'view', or 'edit'.
 * @global int    $from        The revision to compare from.
 * @global int    $to          Optional, required if revision missing. The revision to compare to.
 */

$revision_id = ! empty( $_REQUEST['revision'] ) ? absint( $_REQUEST['revision'] ) : 0;
$action      = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
$from        = ! empty( $_REQUEST['from'] ) && is_numeric( $_REQUEST['from'] ) ? absint( $_REQUEST['from'] ) : null;
$to          = ! empty( $_REQUEST['to'] ) && is_numeric( $_REQUEST['to'] ) ? absint( $_REQUEST['to'] ) : null;

if ( ! $revision_id ) {
	$revision_id = $to;
}

$redirect = 'edit.php';

switch ( $action ) {
	case 'restore':
		$revision = wp_get_post_revision( $revision_id );
		if ( ! $revision ) {
			break;
		}

		if ( ! current_user_can( 'edit_post', $revision->post_parent ) ) {
			break;
		}

		$post = get_post( $revision->post_parent );
		if ( ! $post ) {
			break;
		}

		// Don't restore if revisions are disabled and this is not an autosave.
		if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) {
			$redirect = 'edit.php?post_type=' . $post->post_type;
			break;
		}

		// Don't restore if the post is locked.
		if ( wp_check_post_lock( $post->ID ) ) {
			break;
		}

		check_admin_referer( "restore-post_{$revision->ID}" );

		/*
		 * Ensure the global $post remains the same after revision is restored.
		 * Because wp_insert_post() and wp_transition_post_status() are called
		 * during the process, plugins can unexpectedly modify $post.
		 */
		$backup_global_post = clone $post;

		wp_restore_post_revision( $revision->ID );

		// Restore the global $post as it was before.
		$post = $backup_global_post;

		$redirect = add_query_arg(
			array(
				'message'  => 5,
				'revision' => $revision->ID,
			),
			get_edit_post_link( $post->ID, 'url' )
		);
		break;
	case 'view':
	case 'edit':
	default:
		$revision = wp_get_post_revision( $revision_id );
		if ( ! $revision ) {
			break;
		}

		$post = get_post( $revision->post_parent );
		if ( ! $post ) {
			break;
		}

		if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) ) {
			break;
		}

		// Bail if revisions are disabled and this is not an autosave.
		if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) {
			$redirect = 'edit.php?post_type=' . $post->post_type;
			break;
		}

		$post_edit_link = get_edit_post_link();
		$post_title     = '<a href="' . esc_url( $post_edit_link ) . '">' . _draft_or_post_title() . '</a>';
		/* translators: %s: Post title. */
		$h1             = sprintf( __( 'Compare Revisions of &#8220;%s&#8221;' ), $post_title );
		$return_to_post = '<a href="' . esc_url( $post_edit_link ) . '">' . __( '&larr; Go to editor' ) . '</a>';
		// Used in the HTML title tag.
		$title = __( 'Revisions' );

		$redirect = false;
		break;
}

// Empty post_type means either malformed object found, or no valid parent was found.
if ( ! $redirect && empty( $post->post_type ) ) {
	$redirect = 'edit.php';
}

if ( ! empty( $redirect ) ) {
	wp_redirect( $redirect );
	exit;
}

// This is so that the correct "Edit" menu item is selected.
if ( ! empty( $post->post_type ) && 'post' !== $post->post_type ) {
	$parent_file = 'edit.php?post_type=' . $post->post_type;
} else {
	$parent_file = 'edit.php';
}
$submenu_file = $parent_file;

wp_enqueue_script( 'revisions' );
wp_localize_script( 'revisions', '_wpRevisionsSettings', wp_prepare_revisions_for_js( $post, $revision_id, $from ) );

/* Revisions Help Tab */

$revisions_overview  = '<p>' . __( 'This screen is used for managing your content revisions.' ) . '</p>';
$revisions_overview .= '<p>' . __( 'Revisions are saved copies of your post or page, which are periodically created as you update your content. The red text on the left shows the content that was removed. The green text on the right shows the content that was added.' ) . '</p>';
$revisions_overview .= '<p>' . __( 'From this screen you can review, compare, and restore revisions:' ) . '</p>';
$revisions_overview .= '<ul><li>' . __( 'To navigate between revisions, <strong>drag the slider handle left or right</strong> or <strong>use the Previous or Next buttons</strong>.' ) . '</li>';
$revisions_overview .= '<li>' . __( 'Compare two different revisions by <strong>selecting the &#8220;Compare any two revisions&#8221; box</strong> to the side.' ) . '</li>';
$revisions_overview .= '<li>' . __( 'To restore a revision, <strong>click Restore This Revision</strong>.' ) . '</li></ul>';

get_current_screen()->add_help_tab(
	array(
		'id'      => 'revisions-overview',
		'title'   => __( 'Overview' ),
		'content' => $revisions_overview,
	)
);

$revisions_sidebar  = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
$revisions_sidebar .= '<p>' . __( '<a href="https://wordpress.org/documentation/article/revisions/">Revisions Management</a>' ) . '</p>';
$revisions_sidebar .= '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>';

get_current_screen()->set_help_sidebar( $revisions_sidebar );

require_once ABSPATH . 'wp-admin/admin-header.php';

?>

<div class="wrap">
	<h1 class="long-header"><?php echo $h1; ?></h1>
	<?php echo $return_to_post; ?>
</div>
<?php
wp_print_revision_templates();

require_once ABSPATH . 'wp-admin/admin-footer.php';

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 10 2026 19:40:36
www-data / www-data
2775
css
--
June 04 2026 19:23:20
www-data / www-data
2775
images
--
June 04 2026 19:23:20
www-data / www-data
2775
includes
--
June 04 2026 19:23:20
www-data / www-data
2775
js
--
June 04 2026 19:23:20
www-data / www-data
2775
maint
--
June 04 2026 19:23:20
www-data / www-data
2775
network
--
June 04 2026 19:23:20
www-data / www-data
2775
user
--
June 04 2026 19:23:20
www-data / www-data
2775
.htaccess
1.997 KB
June 04 2026 19:23:20
www-data / www-data
0444
about.php
16.017 KB
May 27 2026 03:19:33
www-data / www-data
0664
admin-ajax.php
5.025 KB
May 27 2026 03:19:33
www-data / www-data
0664
admin-footer.php
2.745 KB
May 27 2026 03:19:33
www-data / www-data
0664
admin-functions.php
0.468 KB
May 27 2026 03:19:33
www-data / www-data
0664
admin-header.php
9.073 KB
May 27 2026 03:19:33
www-data / www-data
0664
admin-post.php
1.974 KB
May 27 2026 03:19:33
www-data / www-data
0664
admin.php
12.632 KB
May 27 2026 03:19:33
www-data / www-data
0664
async-upload.php
5.473 KB
May 27 2026 03:19:33
www-data / www-data
0664
authorize-application.php
10.093 KB
May 27 2026 03:19:33
www-data / www-data
0664
comment.php
11.37 KB
May 27 2026 03:19:33
www-data / www-data
0664
contribute.php
5.857 KB
May 27 2026 03:19:33
www-data / www-data
0664
credits.php
4.378 KB
May 27 2026 03:19:33
www-data / www-data
0664
custom-background.php
0.478 KB
May 27 2026 03:19:33
www-data / www-data
0664
custom-header.php
0.487 KB
May 27 2026 03:19:33
www-data / www-data
0664
customize.php
11.207 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-comments.php
14.145 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-form-advanced.php
28.795 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-form-blocks.php
14.73 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-form-comment.php
8.333 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-link-form.php
6.205 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-tag-form.php
10.415 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit-tags.php
21.982 KB
May 27 2026 03:19:33
www-data / www-data
0664
edit.php
19.484 KB
May 27 2026 03:19:33
www-data / www-data
0664
erase-personal-data.php
7.329 KB
May 27 2026 03:19:33
www-data / www-data
0664
export-personal-data.php
7.755 KB
May 27 2026 03:19:33
www-data / www-data
0664
export.php
11.001 KB
May 27 2026 03:19:33
www-data / www-data
0664
font-library.php
1.012 KB
May 27 2026 03:19:33
www-data / www-data
0664
freedoms.php
4.801 KB
May 27 2026 03:19:33
www-data / www-data
0664
import.php
7.584 KB
May 27 2026 03:19:33
www-data / www-data
0664
index.php
7.68 KB
May 27 2026 03:19:33
www-data / www-data
0664
install-helper.php
6.798 KB
May 27 2026 03:19:33
www-data / www-data
0664
install.php
17.907 KB
May 27 2026 03:19:33
www-data / www-data
0664
link-add.php
0.912 KB
May 27 2026 03:19:33
www-data / www-data
0664
link-manager.php
4.259 KB
May 27 2026 03:19:33
www-data / www-data
0664
link-parse-opml.php
2.635 KB
May 27 2026 03:19:33
www-data / www-data
0664
link.php
2.888 KB
May 27 2026 03:19:33
www-data / www-data
0664
load-scripts.php
2.021 KB
May 27 2026 03:19:33
www-data / www-data
0664
load-styles.php
2.925 KB
May 27 2026 03:19:33
www-data / www-data
0664
media-new.php
3.173 KB
May 27 2026 03:19:33
www-data / www-data
0664
media-upload.php
3.582 KB
May 27 2026 03:19:33
www-data / www-data
0664
media.php
0.8 KB
May 27 2026 03:19:33
www-data / www-data
0664
menu-header.php
9.823 KB
May 27 2026 03:19:33
www-data / www-data
0664
menu.php
17.716 KB
May 27 2026 03:19:33
www-data / www-data
0664
moderation.php
0.3 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-admin.php
0.191 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-delete-site.php
4.505 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-edit.php
0.211 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-options.php
0.224 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-sites.php
0.21 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-themes.php
0.212 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-upgrade-network.php
0.214 KB
May 27 2026 03:19:33
www-data / www-data
0664
ms-users.php
0.21 KB
May 27 2026 03:19:33
www-data / www-data
0664
my-sites.php
4.718 KB
May 27 2026 03:19:33
www-data / www-data
0664
nav-menus.php
49.073 KB
May 27 2026 03:19:33
www-data / www-data
0664
network.php
5.393 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-connectors.php
1.07 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-discussion.php
15.915 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-general.php
22.315 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-head.php
0.606 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-media.php
6.377 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-permalink.php
21.891 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-privacy.php
9.925 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-reading.php
9.974 KB
May 27 2026 03:19:33
www-data / www-data
0664
options-writing.php
9.104 KB
May 27 2026 03:19:33
www-data / www-data
0664
options.php
13.932 KB
May 27 2026 03:19:33
www-data / www-data
0664
plugin-editor.php
13.752 KB
May 27 2026 03:19:33
www-data / www-data
0664
plugin-install.php
6.957 KB
May 27 2026 03:19:33
www-data / www-data
0664
plugins.php
30.004 KB
May 27 2026 03:19:33
www-data / www-data
0664
post-new.php
2.703 KB
May 27 2026 03:19:33
www-data / www-data
0664
post.php
10.033 KB
May 27 2026 03:19:33
www-data / www-data
0664
press-this.php
2.412 KB
May 27 2026 03:19:33
www-data / www-data
0664
privacy-policy-guide.php
3.668 KB
May 27 2026 03:19:33
www-data / www-data
0664
privacy.php
2.787 KB
May 27 2026 03:19:33
www-data / www-data
0664
profile.php
0.276 KB
May 27 2026 03:19:33
www-data / www-data
0664
revision.php
5.699 KB
May 27 2026 03:19:33
www-data / www-data
0664
setup-config.php
17.524 KB
May 27 2026 03:19:33
www-data / www-data
0664
site-editor.php
12.072 KB
May 27 2026 03:19:33
www-data / www-data
0664
site-health-info.php
4.053 KB
May 27 2026 03:19:33
www-data / www-data
0664
site-health.php
10.177 KB
May 27 2026 03:19:33
www-data / www-data
0664
term.php
2.196 KB
May 27 2026 03:19:33
www-data / www-data
0664
theme-editor.php
16.874 KB
May 27 2026 03:19:33
www-data / www-data
0664
theme-install.php
23.552 KB
May 27 2026 03:19:33
www-data / www-data
0664
themes.php
47.925 KB
May 27 2026 03:19:33
www-data / www-data
0664
tools.php
3.432 KB
May 27 2026 03:19:33
www-data / www-data
0664
update-core.php
45.119 KB
May 27 2026 03:19:33
www-data / www-data
0664
update.php
12.756 KB
May 27 2026 03:19:33
www-data / www-data
0664
upgrade-functions.php
0.333 KB
May 27 2026 03:19:33
www-data / www-data
0664
upgrade.php
6.24 KB
May 27 2026 03:19:33
www-data / www-data
0664
upload.php
14.899 KB
May 27 2026 03:19:33
www-data / www-data
0664
user-edit.php
40.351 KB
May 27 2026 03:19:33
www-data / www-data
0664
user-new.php
24.062 KB
May 27 2026 03:19:33
www-data / www-data
0664
users.php
23.439 KB
May 27 2026 03:19:33
www-data / www-data
0664
widgets-form-blocks.php
5.119 KB
May 27 2026 03:19:33
www-data / www-data
0664
widgets-form.php
19.136 KB
May 27 2026 03:19:33
www-data / www-data
0664
widgets.php
1.086 KB
May 27 2026 03:19:33
www-data / www-data
0664

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF