/home/techb158/public_html/wp-includes/blocks
NameSizeModeActions
accordion/-0755rm
accordion-heading/-0755rm
accordion-item/-0755rm
accordion-panel/-0755rm
archives/-0777rm
audio/-0777rm
avatar/-0777rm
block/-0777rm
breadcrumbs/-0755rm
button/-0777rm
buttons/-0777rm
calendar/-0777rm
categories/-0777rm
code/-0777rm
column/-0777rm
columns/-0777rm
comment-author-name/-0777rm
comment-content/-0777rm
comment-date/-0777rm
comment-edit-link/-0777rm
comment-reply-link/-0777rm
comment-template/-0777rm
comments/-0777rm
comments-pagination/-0777rm
comments-pagination-next/-0777rm
comments-pagination-numbers/-0777rm
comments-pagination-previous/-0777rm
comments-title/-0777rm
cover/-0777rm
details/-0755rm
embed/-0777rm
file/-0777rm
footnotes/-0755rm
freeform/-0777rm
gallery/-0777rm
group/-0777rm
heading/-0777rm
home-link/-0777rm
html/-0777rm
icon/-0755rm
image/-0777rm
latest-comments/-0777rm
latest-posts/-0777rm
legacy-widget/-0777rm
list/-0777rm
list-item/-0777rm
loginout/-0777rm
math/-0755rm
media-text/-0777rm
missing/-0777rm
more/-0777rm
navigation/-0777rm
navigation-link/-0777rm
navigation-overlay-close/-0755rm
navigation-submenu/-0777rm
nextpage/-0777rm
page-list/-0777rm
page-list-item/-0755rm
paragraph/-0777rm
pattern/-0777rm
playlist/-0755rm
playlist-track/-0755rm
post-author/-0777rm
post-author-biography/-0777rm
post-author-name/-0755rm
post-comments-count/-0755rm
post-comments-form/-0777rm
post-comments-link/-0755rm
post-content/-0777rm
post-date/-0777rm
post-excerpt/-0777rm
post-featured-image/-0777rm
post-navigation-link/-0777rm
post-template/-0777rm
post-terms/-0777rm
post-time-to-read/-0755rm
post-title/-0777rm
preformatted/-0777rm
pullquote/-0777rm
query/-0777rm
query-no-results/-0777rm
query-pagination/-0777rm
query-pagination-next/-0777rm
query-pagination-numbers/-0777rm
query-pagination-previous/-0777rm
query-title/-0777rm
query-total/-0755rm
quote/-0777rm
read-more/-0777rm
rss/-0777rm
search/-0777rm
separator/-0777rm
shortcode/-0777rm
site-logo/-0777rm
site-tagline/-0777rm
site-title/-0777rm
social-link/-0777rm
social-links/-0777rm
spacer/-0777rm
tab-list/-0755rm
tab-panel/-0755rm
tab-panels/-0755rm
table/-0777rm
tabs/-0755rm
tag-cloud/-0777rm
template-part/-0777rm
term-count/-0755rm
term-description/-0777rm
term-name/-0755rm
term-template/-0755rm
terms-query/-0755rm
text-columns/-0777rm
verse/-0777rm
video/-0777rm
widget-group/-0777rm
accordion-item.php30520666editdlrm
accordion.php11470666editdlrm
archives.php43850666editdlrm
avatar.php56380666editdlrm
block.php31220666editdlrm
blocks-json.php2106610666editdlrm
breadcrumbs.php190570666editdlrm
button.php42110666editdlrm
calendar.php60750666editdlrm
categories.php49380666editdlrm
comment-author-name.php21360666editdlrm
comment-content.php24590666editdlrm
comment-date.php18650666editdlrm
comment-edit-link.php17130666editdlrm
comment-reply-link.php20750666editdlrm
comment-template.php44940666editdlrm
comments-pagination-next.php19240666editdlrm
comments-pagination-numbers.php16320666editdlrm
comments-pagination-previous.php17900666editdlrm
comments-pagination.php12610666editdlrm
comments-title.php27870666editdlrm
comments.php67840666editdlrm
cover.php74040666editdlrm
details.php14980666editdlrm
file.php18790666editdlrm
footnotes.php38180666editdlrm
gallery.php223450666editdlrm
heading.php13010666editdlrm
home-link.php47030666editdlrm
icon.php43740666editdlrm
image.php176420666editdlrm
index.php51040666editdlrm
latest-comments.php56220666editdlrm
latest-posts.php104590666editdlrm
legacy-widget.php40110666editdlrm
list.php12730666editdlrm
loginout.php21230666editdlrm
media-text.php42980666editdlrm
navigation-link.php166540666editdlrm
navigation-overlay-close.php17650666editdlrm
navigation-submenu.php110500666editdlrm
navigation.php708920666editdlrm
page-list-item.php3610666editdlrm
page-list.php138630666editdlrm
paragraph.php11390666editdlrm
pattern.php17880666editdlrm
playlist-track.php24870666editdlrm
playlist.php66160666editdlrm
post-author-biography.php15240666editdlrm
post-author-name.php19620666editdlrm
post-author.php27340666editdlrm
post-comments-count.php12750666editdlrm
post-comments-form.php28050666editdlrm
post-comments-link.php22370666editdlrm
post-content.php26680666editdlrm
post-date.php36920666editdlrm
post-excerpt.php43150666editdlrm
post-featured-image.php94520666editdlrm
post-navigation-link.php48070666editdlrm
post-template.php59400666editdlrm
post-terms.php36400666editdlrm
post-time-to-read.php64110666editdlrm
post-title.php21380666editdlrm
query-no-results.php18470666editdlrm
query-pagination-next.php36760666editdlrm
query-pagination-numbers.php47000666editdlrm
query-pagination-previous.php34730666editdlrm
query-pagination.php11760666editdlrm
query-title.php27710666editdlrm
query-total.php24710666editdlrm
query.php56900666editdlrm
read-more.php18460666editdlrm
require-dynamic-blocks.php52560666editdlrm
require-static-blocks.php5350666editdlrm
rss.php46090666editdlrm
search.php256000666editdlrm
shortcode.php7350666editdlrm
site-logo.php63340666editdlrm
site-tagline.php12030666editdlrm
site-title.php18640666editdlrm
social-link.php676020666editdlrm
tab-list.php23220666editdlrm
tab-panel.php16690666editdlrm
tabs.php39490666editdlrm
tag-cloud.php15860666editdlrm
template-part.php99640666editdlrm
term-count.php18430666editdlrm
term-description.php17700666editdlrm
term-name.php20380666editdlrm
term-template.php45180666editdlrm
video.php27330666editdlrm
widget-group.php24380666editdlrm
Edit: /home/techb158/public_html/wp-includes/blocks/query.php (5690B)
next_tag() ) { // Add the necessary directives. $p->set_attribute( 'data-wp-interactive', 'core/query' ); $p->set_attribute( 'data-wp-router-region', 'query-' . $attributes['queryId'] ); $p->set_attribute( 'data-wp-context', '{}' ); $p->set_attribute( 'data-wp-key', $attributes['queryId'] ); $content = $p->get_updated_html(); } } // Add the styles to the block type if the block is interactive and remove // them if it's not. $style_asset = 'wp-block-query'; if ( ! wp_style_is( $style_asset ) ) { $style_handles = $block->block_type->style_handles; // If the styles are not needed, and they are still in the `style_handles`, remove them. if ( ! $is_interactive && in_array( $style_asset, $style_handles, true ) ) { $block->block_type->style_handles = array_diff( $style_handles, array( $style_asset ) ); } // If the styles are needed, but they were previously removed, add them again. if ( $is_interactive && ! in_array( $style_asset, $style_handles, true ) ) { $block->block_type->style_handles = array_merge( $style_handles, array( $style_asset ) ); } } return $content; } /** * Registers the `core/query` block on the server. * * @since 5.8.0 */ function register_block_core_query() { register_block_type_from_metadata( __DIR__ . '/query', array( 'render_callback' => 'render_block_core_query', ) ); } add_action( 'init', 'register_block_core_query' ); /** * Traverse the tree of blocks looking for any plugin block (i.e., a block from * an installed plugin) inside a Query block with the enhanced pagination * enabled. If at least one is found, the enhanced pagination is effectively * disabled to prevent any potential incompatibilities. * * @since 6.4.0 * * @param array $parsed_block The block being rendered. * @return array Returns the parsed block, unmodified. */ function block_core_query_disable_enhanced_pagination( $parsed_block ) { static $enhanced_query_stack = array(); static $dirty_enhanced_queries = array(); static $render_query_callback = null; $block_name = $parsed_block['blockName']; $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name ); $has_enhanced_pagination = isset( $parsed_block['attrs']['enhancedPagination'] ) && true === $parsed_block['attrs']['enhancedPagination'] && isset( $parsed_block['attrs']['queryId'] ); /* * Client side navigation can be true in two states: * - supports.interactivity = true; * - supports.interactivity.clientNavigation = true; */ $supports_client_navigation = ( isset( $block_type->supports['interactivity']['clientNavigation'] ) && true === $block_type->supports['interactivity']['clientNavigation'] ) || ( isset( $block_type->supports['interactivity'] ) && true === $block_type->supports['interactivity'] ); if ( 'core/query' === $block_name && $has_enhanced_pagination ) { $enhanced_query_stack[] = $parsed_block['attrs']['queryId']; if ( ! isset( $render_query_callback ) ) { /** * Filter that disables the enhanced pagination feature during block * rendering when a plugin block has been found inside. It does so * by adding an attribute called `data-wp-navigation-disabled` which * is later handled by the front-end logic. * * @param string $content The block content. * @param array $block The full block, including name and attributes. * @return string Returns the modified output of the query block. */ $render_query_callback = static function ( $content, $block ) use ( &$enhanced_query_stack, &$dirty_enhanced_queries, &$render_query_callback ) { $has_enhanced_pagination = isset( $block['attrs']['enhancedPagination'] ) && true === $block['attrs']['enhancedPagination'] && isset( $block['attrs']['queryId'] ); if ( ! $has_enhanced_pagination ) { return $content; } if ( isset( $dirty_enhanced_queries[ $block['attrs']['queryId'] ] ) ) { // Disable navigation in the router store config. wp_interactivity_config( 'core/router', array( 'clientNavigationDisabled' => true ) ); $dirty_enhanced_queries[ $block['attrs']['queryId'] ] = null; } array_pop( $enhanced_query_stack ); if ( empty( $enhanced_query_stack ) ) { remove_filter( 'render_block_core/query', $render_query_callback ); $render_query_callback = null; } return $content; }; add_filter( 'render_block_core/query', $render_query_callback, 10, 2 ); } } elseif ( ! empty( $enhanced_query_stack ) && isset( $block_name ) && ( ! $supports_client_navigation ) ) { foreach ( $enhanced_query_stack as $query_id ) { $dirty_enhanced_queries[ $query_id ] = true; } } return $parsed_block; } add_filter( 'render_block_data', 'block_core_query_disable_enhanced_pagination', 10, 1 );