IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
a
|
b
|
|
4142 | 4142 | * |
4143 | 4143 | * @since 2.1.0 |
4144 | 4144 | * @since 4.9.0 Added the `aria_current` argument. |
| 4145 | * @since 5.8.2 Added the `merge_query_vars` argument. |
4145 | 4146 | * |
4146 | 4147 | * @global WP_Query $wp_query WordPress Query object. |
4147 | 4148 | * @global WP_Rewrite $wp_rewrite WordPress rewrite component. |
… |
… |
|
4169 | 4170 | * @type string $add_fragment A string to append to each link. Default empty. |
4170 | 4171 | * @type string $before_page_number A string to appear before the page number. Default empty. |
4171 | 4172 | * @type string $after_page_number A string to append after the page number. Default empty. |
| 4173 | * @type bool $merge_query_vars Whether to merge additional query vars found in the original URL into 'add_args' array. Default true. |
4172 | 4174 | * } |
4173 | 4175 | * @return string|array|void String of page links or array of page links, depending on 'type' argument. |
4174 | 4176 | * Void if total number of pages is less than 2. |
… |
… |
|
4208 | 4210 | 'add_fragment' => '', |
4209 | 4211 | 'before_page_number' => '', |
4210 | 4212 | 'after_page_number' => '', |
| 4213 | 'merge_query_vars' => true, |
4211 | 4214 | ); |
4212 | 4215 | |
4213 | 4216 | $args = wp_parse_args( $args, $defaults ); |
… |
… |
|
4217 | 4220 | } |
4218 | 4221 | |
4219 | 4222 | // Merge additional query vars found in the original URL into 'add_args' array. |
4220 | | if ( isset( $url_parts[1] ) ) { |
| 4223 | if ( $args['merge_query_vars'] && isset( $url_parts[1] ) ) { |
4221 | 4224 | // Find the format argument. |
4222 | 4225 | $format = explode( '?', str_replace( '%_%', $args['format'], $args['base'] ) ); |
4223 | 4226 | $format_query = isset( $format[1] ) ? $format[1] : ''; |