芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/wp-content/plugins/uicore-framework/includes/templates/pagination.php
2, 'prev_next' => true, 'prev_text' => null, 'next_text' => null, 'screen_reader_text' => _x('Posts navigation', 'Frontend - Pagination', 'uicore-framework'), 'type' => 'array', 'current' => max(1, get_query_var('paged')), ]); if (class_exists('WooCommerce') && isset($query->query['post_type']) && $query->query['post_type'] == 'product' ) { if ( ! wc_get_loop_prop( 'is_paginated' ) || ! woocommerce_products_will_display() ) { return; } $total = wc_get_loop_prop('total_pages',false); if ($total && $total <= 1) { return; } elseif ($total) { $args = apply_filters('woocommerce_pagination_args', [ // WPCS: XSS ok. 'current' => max(1, wc_get_loop_prop('current_page')), 'total' => $total, 'prev_text' => '', 'next_text' => '', 'type' => 'array', 'base' => esc_url_raw( add_query_arg( 'product-page', '%#%', false ) ), 'screen_reader_text' => _x('Products navigation', 'Frontend - Pagination', 'uicore-framework'), ]); if ( ! wc_get_loop_prop( 'is_shortcode' ) ) { $args['format'] = ''; $args['base'] = esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ); } } } $links = paginate_links($args); if (is_array($links) || is_object($links)) { ?>