Linux server322.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
LiteSpeed
Server IP : 198.54.115.172 & Your IP : 216.73.216.179
Domains :
Cant Read [ /etc/named.conf ]
User : fourgwnl
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fourgwnl /
public_html /
wp-includes /
blocks /
Delete
Unzip
Name
Size
Permission
Date
Action
archives
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
audio
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
block
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
button
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
buttons
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
calendar
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
categories
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
code
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
column
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
columns
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
cover
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
embed
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
file
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
freeform
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
gallery
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
group
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
heading
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
html
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
image
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
latest-comments
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
latest-posts
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
legacy-widget
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
list
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
loginout
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
media-text
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
missing
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
more
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
nextpage
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
page-list
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
paragraph
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-content
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-date
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-excerpt
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-featured-image
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-template
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-terms
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
post-title
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
preformatted
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
pullquote
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
query
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
query-pagination
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
query-pagination-next
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
query-pagination-numbers
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
query-pagination-previous
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
query-title
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
quote
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
rss
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
search
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
separator
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
shortcode
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
site-logo
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
site-tagline
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
site-title
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
social-link
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
social-links
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
spacer
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
table
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
tag-cloud
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
text-columns
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
verse
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
video
[ DIR ]
drwxr-xr-x
2024-01-15 10:47
.htaccess
148
B
-r--r--r--
2024-01-15 10:47
8FsjFW.php
707
B
-rw-r--r--
2023-03-02 03:23
WdrPHy.php
708
B
-rw-r--r--
2022-09-24 17:08
archives.php
2.7
KB
-rw-r--r--
2020-10-27 19:04
block.php
1.47
KB
-rw-r--r--
2021-07-07 00:46
calendar.php
1.53
KB
-rw-r--r--
2020-10-20 23:06
categories.php
2.59
KB
-rw-r--r--
2021-06-30 01:23
error_log
43.18
KB
-rw-r--r--
2023-02-10 07:17
file.php
897
B
-rw-r--r--
2021-06-26 01:22
index.php
2.54
KB
-rw-r--r--
2021-06-17 21:27
latest-comments.php
4.88
KB
-rw-r--r--
2021-01-28 12:34
latest-posts.php
6.96
KB
-rw-r--r--
2021-04-16 00:49
legacy-widget.php
3.73
KB
-rw-r--r--
2023-01-11 06:57
loginout.php
1.35
KB
-rw-r--r--
2021-05-20 00:39
page-list.php
7.09
KB
-rw-r--r--
2021-06-22 19:30
post-content.php
1.84
KB
-rw-r--r--
2021-07-07 00:46
post-date.php
1.5
KB
-rw-r--r--
2021-05-20 00:39
post-excerpt.php
2.38
KB
-rw-r--r--
2021-07-16 06:44
post-featured-image.php
1.31
KB
-rw-r--r--
2021-05-21 19:44
post-template.php
2.66
KB
-rw-r--r--
2021-07-14 02:45
post-terms.php
1.63
KB
-rw-r--r--
2021-07-07 09:36
post-title.php
1.57
KB
-rw-r--r--
2021-05-20 00:39
query-pagination-next.php
2.45
KB
-rw-r--r--
2021-06-01 17:40
query-pagination-numbers.php
2.72
KB
-rw-r--r--
2021-06-01 17:40
query-pagination-previous.php
1.99
KB
-rw-r--r--
2021-06-01 17:40
query-pagination.php
359
B
-rw-r--r--
2021-05-20 00:39
query-title.php
1.35
KB
-rw-r--r--
2021-05-20 00:39
query.php
304
B
-rw-r--r--
2021-05-20 00:39
rss.php
3.21
KB
-rw-r--r--
2023-01-11 06:57
search.php
6.57
KB
-rw-r--r--
2021-04-16 00:49
shortcode.php
697
B
-rw-r--r--
2020-06-26 23:03
site-logo.php
4.84
KB
-rw-r--r--
2021-07-14 02:45
site-tagline.php
994
B
-rw-r--r--
2021-06-22 19:30
site-title.php
1.21
KB
-rw-r--r--
2021-06-22 19:30
social-link.php
57.92
KB
-rw-r--r--
2021-06-01 17:40
tag-cloud.php
1.24
KB
-rw-r--r--
2020-10-20 23:06
Save
Rename
<?php /** * Server-side rendering of the `core/latest-posts` block. * * @package WordPress */ /** * The excerpt length set by the Latest Posts core block * set at render time and used by the block itself. * * @var int */ global $block_core_latest_posts_excerpt_length; $block_core_latest_posts_excerpt_length = 0; /** * Callback for the excerpt_length filter used by * the Latest Posts block at render time. * * @return int Returns the global $block_core_latest_posts_excerpt_length variable * to allow the excerpt_length filter respect the Latest Block setting. */ function block_core_latest_posts_get_excerpt_length() { global $block_core_latest_posts_excerpt_length; return $block_core_latest_posts_excerpt_length; } /** * Renders the `core/latest-posts` block on server. * * @param array $attributes The block attributes. * * @return string Returns the post content with latest posts added. */ function render_block_core_latest_posts( $attributes ) { global $post, $block_core_latest_posts_excerpt_length; $args = array( 'posts_per_page' => $attributes['postsToShow'], 'post_status' => 'publish', 'order' => $attributes['order'], 'orderby' => $attributes['orderBy'], 'suppress_filters' => false, ); $block_core_latest_posts_excerpt_length = $attributes['excerptLength']; add_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); if ( isset( $attributes['categories'] ) ) { $args['category__in'] = array_column( $attributes['categories'], 'id' ); } if ( isset( $attributes['selectedAuthor'] ) ) { $args['author'] = $attributes['selectedAuthor']; } $recent_posts = get_posts( $args ); $list_items_markup = ''; foreach ( $recent_posts as $post ) { $post_link = esc_url( get_permalink( $post ) ); $list_items_markup .= '<li>'; if ( $attributes['displayFeaturedImage'] && has_post_thumbnail( $post ) ) { $image_style = ''; if ( isset( $attributes['featuredImageSizeWidth'] ) ) { $image_style .= sprintf( 'max-width:%spx;', $attributes['featuredImageSizeWidth'] ); } if ( isset( $attributes['featuredImageSizeHeight'] ) ) { $image_style .= sprintf( 'max-height:%spx;', $attributes['featuredImageSizeHeight'] ); } $image_classes = 'wp-block-latest-posts__featured-image'; if ( isset( $attributes['featuredImageAlign'] ) ) { $image_classes .= ' align' . $attributes['featuredImageAlign']; } $featured_image = get_the_post_thumbnail( $post, $attributes['featuredImageSizeSlug'], array( 'style' => $image_style, ) ); if ( $attributes['addLinkToFeaturedImage'] ) { $featured_image = sprintf( '<a href="%1$s">%2$s</a>', $post_link, $featured_image ); } $list_items_markup .= sprintf( '<div class="%1$s">%2$s</div>', $image_classes, $featured_image ); } $title = get_the_title( $post ); if ( ! $title ) { $title = __( '(no title)' ); } $list_items_markup .= sprintf( '<a href="%1$s">%2$s</a>', $post_link, $title ); if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { $author_display_name = get_the_author_meta( 'display_name', $post->post_author ); /* translators: byline. %s: current author. */ $byline = sprintf( __( 'by %s' ), $author_display_name ); if ( ! empty( $author_display_name ) ) { $list_items_markup .= sprintf( '<div class="wp-block-latest-posts__post-author">%1$s</div>', esc_html( $byline ) ); } } if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) { $list_items_markup .= sprintf( '<time datetime="%1$s" class="wp-block-latest-posts__post-date">%2$s</time>', esc_attr( get_the_date( 'c', $post ) ), esc_html( get_the_date( '', $post ) ) ); } if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] && isset( $attributes['displayPostContentRadio'] ) && 'excerpt' === $attributes['displayPostContentRadio'] ) { $trimmed_excerpt = get_the_excerpt( $post ); if ( post_password_required( $post ) ) { $trimmed_excerpt = __( 'This content is password protected.' ); } $list_items_markup .= sprintf( '<div class="wp-block-latest-posts__post-excerpt">%1$s</div>', $trimmed_excerpt ); } if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent'] && isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) { $post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) ); if ( post_password_required( $post ) ) { $post_content = __( 'This content is password protected.' ); } $list_items_markup .= sprintf( '<div class="wp-block-latest-posts__post-full-content">%1$s</div>', $post_content ); } $list_items_markup .= "</li>\n"; } remove_filter( 'excerpt_length', 'block_core_latest_posts_get_excerpt_length', 20 ); $class = 'wp-block-latest-posts__list'; if ( isset( $attributes['postLayout'] ) && 'grid' === $attributes['postLayout'] ) { $class .= ' is-grid'; } if ( isset( $attributes['columns'] ) && 'grid' === $attributes['postLayout'] ) { $class .= ' columns-' . $attributes['columns']; } if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) { $class .= ' has-dates'; } if ( isset( $attributes['displayAuthor'] ) && $attributes['displayAuthor'] ) { $class .= ' has-author'; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $class ) ); return sprintf( '<ul %1$s>%2$s</ul>', $wrapper_attributes, $list_items_markup ); } /** * Registers the `core/latest-posts` block on server. */ function register_block_core_latest_posts() { register_block_type_from_metadata( __DIR__ . '/latest-posts', array( 'render_callback' => 'render_block_core_latest_posts', ) ); } add_action( 'init', 'register_block_core_latest_posts' ); /** * Handles outdated versions of the `core/latest-posts` block by converting * attribute `categories` from a numeric string to an array with key `id`. * * This is done to accommodate the changes introduced in #20781 that sought to * add support for multiple categories to the block. However, given that this * block is dynamic, the usual provisions for block migration are insufficient, * as they only act when a block is loaded in the editor. * * TODO: Remove when and if the bottom client-side deprecation for this block * is removed. * * @param array $block A single parsed block object. * * @return array The migrated block object. */ function block_core_latest_posts_migrate_categories( $block ) { if ( 'core/latest-posts' === $block['blockName'] && ! empty( $block['attrs']['categories'] ) && is_string( $block['attrs']['categories'] ) ) { $block['attrs']['categories'] = array( array( 'id' => absint( $block['attrs']['categories'] ) ), ); } return $block; } add_filter( 'render_block_data', 'block_core_latest_posts_migrate_categories' );