Permalinks: Revert [59966].

The original commit ignores some of the arguments that can be passed to the function, mainly `base` and `format`. Reverting for now.

Props peterwilsoncc.


Built from https://develop.svn.wordpress.org/trunk@60088


git-svn-id: http://core.svn.wordpress.org/trunk@59424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2025-03-25 15:18:12 +00:00
parent 4fa00adc34
commit 555dc83d90
2 changed files with 1 additions and 4 deletions

View File

@@ -4713,7 +4713,6 @@ function paginate_links( $args = '' ) {
$link = add_query_arg( $add_args, $link );
}
$link .= $args['add_fragment'];
$link = get_option( 'permalink_structure' ) ? user_trailingslashit( $link, 'paged' ) : $link;
$page_links[] = sprintf(
'<a class="prev page-numbers" href="%s">%s</a>',
@@ -4746,7 +4745,6 @@ function paginate_links( $args = '' ) {
$link = add_query_arg( $add_args, $link );
}
$link .= $args['add_fragment'];
$link = get_option( 'permalink_structure' ) ? user_trailingslashit( $link, 'paged' ) : $link;
$page_links[] = sprintf(
'<a class="page-numbers" href="%s">%s</a>',
@@ -4771,7 +4769,6 @@ function paginate_links( $args = '' ) {
$link = add_query_arg( $add_args, $link );
}
$link .= $args['add_fragment'];
$link = get_option( 'permalink_structure' ) ? user_trailingslashit( $link, 'paged' ) : $link;
$page_links[] = sprintf(
'<a class="next page-numbers" href="%s">%s</a>',

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-beta3-60087';
$wp_version = '6.8-beta3-60088';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.