/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-total.php (2471B)
context['query']['inherit'] ?? false ) { $query_to_use = $wp_query; $current_page = max( 1, (int) get_query_var( 'paged', 1 ) ); } else { $page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page'; $current_page = (int) ( $_GET[ $page_key ] ?? 1 ); $query_to_use = new WP_Query( build_query_vars_from_query_block( $block, $current_page ) ); } $max_rows = $query_to_use->found_posts; $posts_per_page = (int) $query_to_use->get( 'posts_per_page' ); // Calculate the range of posts being displayed. $start = ( 0 === $max_rows ) ? 0 : ( ( $current_page - 1 ) * $posts_per_page + 1 ); $end = min( $start + $posts_per_page - 1, $max_rows ); // Prepare the display based on the `displayType` attribute. $output = ''; switch ( $attributes['displayType'] ) { case 'range-display': if ( $start === $end ) { $output = sprintf( /* translators: 1: Start index of posts, 2: Total number of posts */ __( 'Displaying %1$s of %2$s' ), $start, $max_rows ); } else { $output = sprintf( /* translators: 1: Start index of posts, 2: End index of posts, 3: Total number of posts */ __( 'Displaying %1$s – %2$s of %3$s' ), $start, $end, $max_rows ); } break; case 'total-results': default: // translators: %d: number of results. $output = sprintf( _n( '%d result found', '%d results found', $max_rows ), $max_rows ); break; } return sprintf( '
%2$s
', $wrapper_attributes, $output ); } /** * Registers the `query-total` block. * * @since 6.8.0 */ function register_block_core_query_total() { register_block_type_from_metadata( __DIR__ . '/query-total', array( 'render_callback' => 'render_block_core_query_total', ) ); } add_action( 'init', 'register_block_core_query_total' );